/* Geral */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --fundo: #D11944; 
    --letras: #3D1600;
    --sombra: #800600;
    --card: #FFCCC7;
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--fundo);
    font-family: 'Lato';
    color: var(--letras);
}


/* Footer */

footer {
    display: flex;
    height: 108px;
    width: 100%;
    align-items: center;
    position: fixed;
    bottom: 0;
}

#links {
    display: flex;
    gap: 24px;
    position: fixed;
    right: 24px;
}

#links > a {
    height: 48px;
}

#links > a:hover {
    transform: scale(1.1);
    transition: transform 0.1s linear 0s;
}


/* Timer */

#card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 440px;
    height: 440px;
    background-color: var(--card);
    border-radius: 16px;
    box-shadow: 8px 8px 8px var(--sombra);
    margin-top: 80px; 
}

#timer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#timer-header > h1 {
    font-size: 40px;
    position: relative;
    left: 18px;
    bottom: 4px;
}

#timer-settings-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    left: 72px;
    bottom: 68px;
}

#timer-settings-icon > img:hover {
    cursor: pointer;
    transform: scale(1.2);
    transition: transform 0.1s linear 0s;
}

#timer {
    font-size: 112px;
    font-weight: 400;
}

#control-buttons {
    display: flex;
    gap: 8px;
}

#timer-type {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 48px;
    margin: 0 auto;
    margin-top: 32px;
    background-color: var(--card);
    color: var(--letras);
    font-size: 20px;
    border-radius: 8px;
    box-shadow: 4px 4px 8px var(--sombra);
}

#timer-type:empty {
    opacity: 0;
}


/* Botões */

.button {
    font-family: 'Lato';
    font-size: 24px;
    width: 120px;
    height: 40px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    color: var(--letras);
    transition: transform 0.1s linear 0s,
                box-shadow 0.1s linear 0s;
}

.button:hover {
    transform: scale(1.04);
    box-shadow: 1px 2px 4px var(--sombra);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button:disabled:hover {
    transform: none;
    box-shadow: none;
}


/* Modals */

.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#modal-overlay { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#modal-time-content {
    background-color: var(--card);
    height: 200px;
    width: 400px;
    border-radius: 8px;
    box-shadow: 1px 2px 4px var(--sombra);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    font-size: 40px;
    font-weight: 440;
    color: var(--letras);
    opacity: 1;
    pointer-events: auto; 
    transition: opacity 0.1s ease-out, visibility 0.1s ease-out;
    transform: scale(1); 
    transition: transform 0.2s ease-out;
}

#modal-overlay.hidden > #modal {
    transform: scale(0.2);
}

#modal-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

#modal-settings-content {
    background-color: var(--card);
    height: auto;
    width: 400px;
    border-radius: 8px;
    box-shadow: 1px 2px 4px var(--sombra);
    color: var(--letras);   
    padding: 24px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#modal-settings-content label {
    font-size: 24px;
    font-weight: 600;
}

#modal-settings-content input {
    width: 96px;
    height: 32px;
    border-radius: 4px;
    border: 2px solid var(--sombra);
    padding: 8px;
    font-size: 20px;
}

#modal-settings-content input:focus {
    outline: none;
    border-color: var(--fundo);
}

#modal-settings-content button {
    margin-top: 24px;
}

#settings-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}
