@import url('https://fonts.googleapis.com/css2?family=Comme:wght@300;400;700&display=swap');

:root {
    --ff: 'Comme', sans-serif;
}

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

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    font-family: var(--ff);
    font-size: 1.2rem;
    color: hsla(210, 81%, 22%, 1);
    position: relative;

    background: hsla(148, 89%, 78%, 1);
    background: linear-gradient(90deg, hsla(148, 89%, 78%, 1) 0%, hsla(210, 81%, 22%, 1) 100%);
    background: -moz-linear-gradient(90deg, hsla(148, 89%, 78%, 1) 0%, hsla(210, 81%, 22%, 1) 100%);
    background: -webkit-linear-gradient(90deg, hsla(148, 89%, 78%, 1) 0%, hsla(210, 81%, 22%, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr="#95F9C3", endColorstr="#0B3866", GradientType=1);
}

body::after {
    content: "";
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background-image: url("../../public/images/blob.svg");
    background-position: center;
    background-size: 800px;
    background-repeat: no-repeat;
    z-index: -1;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    display: grid;
    gap: 30px;
    box-shadow: 0 0 20px rgba(11, 57, 102, 0.526);
    width: min(90%, 500px);
}

main {
    display: grid;
    gap: 50px;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#input-date {
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid rgba(11, 57, 102, 0.212);
    font-family: var(--ff);
    color: hsla(210, 81%, 22%, 1);
    transition: 0.3s;
}

#input-date:focus {
    border: 2px solid rgb(11, 57, 102);
    outline: none;
}

.result {
    background-color: hsla(148, 89%, 78%, 1);
    color: rgb(11, 57, 102);
    padding: 10px;
    border-radius: 25px;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.8px;
    user-select: none;
}

@media (min-width:400px) {
    .result {
        font-size: 1.3rem;
    }
}

.actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-direction: column;
}

@media (min-width:430px) {
    .actions {
        flex-direction: row;
        justify-content: space-between;
    }
}

.btn {
    background-color: #293462;
    color: rgb(255, 255, 255);
    letter-spacing: 0.5px;
    font-size: 1.2rem;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    user-select: none;
    transition: 0.5s;
}

.btn:hover {
    opacity: 0.8;
}

.btn-calculate {
    background-color: #279EFF;
}

.hide {
    display: none;
}

#input-date.error {
    border: 2px solid rgb(255, 51, 0);
}

#error-txt {
    color: rgb(255, 51, 0);
}