#root {
    width: 100%;
    height: 100%;
    margin: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
    font-family: 'Inter', sans-serif;
}

#root div[hide="true"] {
    animation: fade-out 0.3s both;
}

#root div[hide="false"], #root div#home[hide="false"] {
    animation: fade-in 0.3s normal;
}

#root #home {
    width: 70%;
    height: 50%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    font-weight: bold;
    animation: initial-state 0.5s;
}

#root #options {
    width: 70%;
    height: 50%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

#options .cards {
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

#options .card {
    border-radius: 5px;
    background-color: #d9d9d93d;
    padding: 15px 10px;
    display: flex;
    width: 180px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.card img {
    max-width: 80px;
}

#root #name {
    position: relative;
    width: 70%;
    height: 50%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}

#root #time {
    position: relative;
    width: 70%;
    height: 50%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}


#time .time-input {
    margin-top: 10px;
    font-size: 30px;
}

#time input {
    width: 70px;
    border: 2px solid #a0a0a0;
}

#root #dormiu {
    position: relative;
    width: 70%;
    height: 50%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}

#root .facial-cards {
    width: 80%;
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: auto;
    margin-top: 20px;
}

#root .facial {
    width: 100px;
    display: flex;
    flex-direction: column;
    font-size: 20px;
    border-radius: 8px;
    background-color: #FFF;
    border: 2px dashed #b3b3b3;
    color: #333;
    justify-content: center;
    align-items: center;
    padding: 12px 15px;
    width: 150px;
    font-weight: 600;
}

.facial img {
    max-width: 30px;
}

#root #alimento, #root #doente, #estresse {
    position: relative;
    width: 70%;
    height: 50%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}

#root #cabine {
    position: relative;
    width: 70%;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-direction: column;
    align-items: center; 
}

#avaliar-1, #avaliar-2 {
    text-align: left;
    position: relative;
    width: 70%;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-direction: column;
    align-items: center; 
}

.button-area {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

button.button {
    border-radius: 6px;
    background-color: #4ADE80;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    max-width: fit-content;
    color: #FFF;
    font-weight: bold;
}

button img {
    max-width: 30px;
}

input {
    padding: 15px 18px;
    border-radius: 6px;
    width: 70%;
    border: none;
}

.home-button {
    background-color: #6D28D9;
    border-radius: 6px;
    border: 2px solid #FFF;
    color: #FFF;
    display: flex;
    align-items: center;
    padding: 8px 4px;
    justify-content: center;
    gap: 5px;
    position: absolute;
    transform: translateY(-100%);
    top: -5px;
    left: 0px;
}

.home-button img {
    max-width: 15px;
}

#loading {
    margin-top: 20px;
    color: #b9b9b9;
}

#loading svg {
    animation: loading 1s infinite linear;
    width: 40px;
}

@keyframes loading {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0%);
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-100%);
        display: none;
    }
}

@keyframes initial-state {
    from {
        opacity: 0;
        transform: translateY(30%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}