* {
    font-family: 'Arial', sans-serif;
}
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 98vh;
    background-color: #f5f5f5;
    overflow: hidden;
}

.container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 90%;
    max-width: 600px;
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 32px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 10px;
}
.action-button:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.value-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 20px 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}

.value-button:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.value-button.selected {
    background-color: #1abc9c;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(26, 188, 156, 0.5);
}

.value-button.symbol {
    background-color: #9b59b6;
}

.value-button.symbol:hover {
    background-color: #8e44ad;
}

.value-button.symbol.selected {
    background-color: #37b987;
    box-shadow: 0 0 10px rgba(142, 68, 173, 0.5);
}

.total-display {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 20px;
    margin: 15px 0;
    display: inline-block;
}

button.action-button:hover {
    background-color: #2980b9;
}

button.action-button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.planning-screen {
    display: none;
}

.hour-display {
    font-size: 300px;
    font-weight: bold;
    margin: 20px 0;
    color: #2c3e50;
    filter: blur(20px);
    transition: filter 0.5s;
    user-select: none;
}
@media screen and (max-width: 1025px) {
    .hour-display {
        font-size: 280px;
    }
}
@media screen and (max-width: 825px) {
    .hour-display {
        font-size: 280px;
    }
}
@media screen and (max-width: 525px) {
    .hour-display {
        font-size: 200px;
    }
}
@media screen and (max-width: 400px) {
    .hour-display {
        font-size: 160px;
    }
}
@media screen and (max-width: 325px) {
    .hour-display {
        font-size: 120px;
    }
}

.hour-display-container {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    margin: 20px 0;
}

.revealed {
    filter: blur(0);
}

.planning-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.back-btn {
    background-color: #e74c3c;
    border-radius: 5px;
    width:30%;
    height: 45px;
    border: 1px gray solid;
}

.back-btn:hover {
    background-color: #c0392b;
}

.show-btn {
    background-color: #2ecc71;
    font-size: 20px;
    font-weight: 600;
    border-radius: 5px;
    width: 200px;
    height: 45px;
    border: 1px gray solid;
}

.show-btn:hover {
    background-color: #27ae60;
}

.loop-btn {
    background-color: #9341ca;
    border-radius: 5px;
    height: 45px;
    border: 1px gray solid;
    width: 10%;
}

.loop-btn:hover {
    background-color: #27ae60;
}
#goToPlanning {
    background-color: #f39c12;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
    width: 100px;
    border: 1px gray solid;

}
#goToPlanning:hover {
    background-color: #d35400;
}

.clear-btn {
    background-color: #f39c12;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
    width: 100px;
    border: 1px gray solid;
}

.clear-btn:hover {
    background-color: #d35400;
}

/* Estilos para o modo escuro */
body.dark-mode {
    background-color: #2c3e50;
    color: #ecf0f1;
}

body.dark-mode .container {
    background-color: #34495e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode h1 {
    color: #ecf0f1;
}

body.dark-mode .value-button {
    background-color: #1abc9c;
}

body.dark-mode .value-button:hover {
    background-color: #16a085;
}

body.dark-mode .value-button.selected {
    background-color: #9341ca;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}

body.dark-mode .total-display {
    background-color: #2c3e50;
    color: #ecf0f1;
}

body.dark-mode button.action-button {
    background-color: #16a085;
}

body.dark-mode button.action-button:hover {
    background-color: #1abc9c;
}
/* Final do Modo Escuro */