/* Main Styles */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --terciary-color: #9b59b6;
    --accent-color: #195983;
    --text-color: #f7f7f7;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --transparent-accent: rgba(25, 89, 131, 0.8);
    background-color: var(--primary-color);
}

main {
    max-width: 100%;
    max-height: 80vh;
    height: 80vh;
    margin: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2vh;

}

header {
    background-color: var(--accent-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 12vh;
}

footer {
    background-color: var(--accent-color);
    color: var(--text-color);
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 7vh;
    bottom: 0;
}

/* Buttons Styles */

.roll-button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 15px 30px;
    border: none;
    border-radius: 10px; 
    font-size: 20px; 
    font-weight: bold; 
    cursor: pointer;
    transition: all 0.3s ease; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); 
    width: 150px; 
    text-align: center; 
}

.roll-button:hover {
    background-color: var(--terciary-color); 
    transform: translateY(-3px); 
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); 
}

.roll-button:active {
    transform: translateY(1px); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
}


/* Modal Styles */

.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--transparent-accent); 
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    width: 80vw; 
    max-width: 500px; 
    padding: 30px;
    border-radius: 15px; 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); 
    text-align: center;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #000; 
}

#diceText {
    font-size: 24px; 
    margin-bottom: 10px; 
    color: var(--accent-color);
    font-weight: bold;
}

#diceResult {
    font-size: 48px; 
    font-weight: bold;
    color: var(--accent-color); 
}

#diceImage {
    display: none; 
}