body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

#buttonsContainer,
#timersContainer {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 80%;
    box-sizing: border-box;
    justify-content: center;
    flex-wrap: wrap;
}

.draggable{
    border-color: lightblue !important;
}

#toggleDragButton{
    border: 1px solid;
    border-color: green;
    color: green;
}

.timer-container {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    max-width: 250px;
    min-width: 250px;
    max-height: 175px;
    min-height: 175px;
    transition: box-shadow 0.3s ease;
    /* Adiciona transição suave */
}

.timer-container:not(.active):hover {
    /* Aplica o hover apenas se não estiver ativo */
    box-shadow: 0 0 10px 5px rgba(0, 191, 255, 0.5);
    /* Glow azul */
}

.timer-container.active {
    box-shadow: 0 0 10px 5px rgba(0, 191, 255, 0.75);
    /* Azul mais forte */
    animation: pulse 2s infinite;
    /* Adiciona a animação de pulso */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 10px 5px rgba(0, 191, 255, 0.75);
    }

    50% {
        box-shadow: 0 0 10px 5px rgba(0, 191, 255, 0.4);
        /* Azul mais fraco no meio do pulso */
    }

    100% {
        box-shadow: 0 0 10px 5px rgba(0, 191, 255, 0.75);
    }
}

#totalTimeContainer {
    display: flex;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;
    max-height: 10px;
}

.timer-name-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 25%;
    min-height: 25%;
    font-size: 1.2em;
    max-width: 80%;
    min-width: 80%;
    max-height: 25%;
    min-height: 25%;
    text-align: center;
    align-items: center;
    display: none;
}

.timer-title {
    font-size: 1.2em;
    margin-top: 1px;
    margin-bottom: 5px;
    max-width: 80%;
    min-width: 80%;
    max-height: 25%;
    min-height: 25%;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.timer-display {
    font-size: 1.8em;
}

.timer-inDecimal {
    font-size: 1.0em;
}

.controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

button {
    padding: 8px 10px;
    border: 2px solid;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 0;
    background-color: transparent;
}

.start-button {
    border-color: #4CAF50;
    color: #4CAF50;
}

.start-button:hover {
    background-color: #4CAF50;
    color: white;
}

.pause-button {
    border-color: #f44336;
    color: #f44336;
    display: none;
}

.pause-button:hover {
    background-color: #f44336;
    color: white;
}

.reset-button {
    border-color: #008CBA;
    color: #008CBA;
}

.reset-button:hover {
    background-color: #008CBA;
    color: white;
}

.remove-button {
    border-color: red;
    color: red;
}

.remove-button:hover {
    background-color: red;
    color: white;
}

#addTimerButton {
    border-color: #2196F3;
    color: #2196F3;
}

#addTimerButton:hover {
    background-color: #2196F3;
    color: white;
}

#clearStorageButton {
    border-color: #9e9e9e;
    color: #9e9e9e;
}

#clearStorageButton:hover {
    background-color: #9e9e9e;
    color: white;
}

#clearUnusedTimersButton {
    border-color: red;
    color: red;
}

#clearUnusedTimersButton:hover {
    background-color: red;
    color: white;
}

#versionInfoContainer {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 1200px;
    width: calc(100% - 40px);
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
    box-sizing: border-box;
}

#versionInfoButton {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

#versionInfoButton:hover {
    background-color: #e0e0e0;
}

#versionInfoPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: left;
    max-width: 600px;
    max-height: 75%;
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close-button:hover {
    color: #000;
}

.popup-content h2 {
    margin-top: 0;
    color: #2196F3;
}

.popup-content h3 {
    margin-top: 15px;
    color: #555;
}

.popup-content ul {
    padding-left: 20px;
}

.popup-content li {
    margin-bottom: 5px;
}

.ghost {
    opacity: 0;
}