:root {
    --first-colror: #00C96B;
    --hover-color: #4da079;
    --gray-color: #dedede;
    --font-family: sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

html {
    font-family: sans-serif;
    font-size: 17px;
}

h2,
label {
    font-weight: bold;
    font-size: 2rem;
}

h1 {
    font-weight: bold;
    font-size: 2.8rem;
    color: var(--first-colror);
}

a {
    transition: ease 0.2s;
    color: var(--first-colror);
}

.button,
button {
    text-decoration: none;
    padding: 16px 32px;
    text-align: center;
    border-radius: 150px;
    cursor: pointer;
}

.past {
    color: var(--first-colror);
    outline: 3px var(--first-colror) solid;
    outline-offset: -3px;

    &:hover {
        color: var(--hover-color);
        outline-color: var(--hover-color);
    }
}

.next {
    background-color: var(--first-colror);
    color: white;

    &:hover {
        background-color: var(--hover-color);
    }
}

.downloadlink {
    color: var(--first-colror);

    &:hover {
        color: var(--hover-color);
    }
}

main {
    width: min(600px, 90vw);
    margin: 0 auto;
}

.screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    justify-content: space-between;
}

.navigation {
    margin: 16px 0 32px 0;
    display: flex;
    justify-content: space-between;
}

.image {
    margin: 32px 0;
    border-radius: 24px;
    width: 100%;
    max-height: 250px;
    cursor: pointer;
    object-fit: cover;
    background-color: var(--gray-color);
}

.content {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: scroll;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.day {
    text-decoration: none;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    align-content: center;
    width: 100%;
    height: 100px;
    border-radius: 24px;
    background-color: var(--gray-color);
    cursor: default;
    color: white;
}

.active {
    background-color: white;
    color: var(--first-colror);
    outline: none;
    cursor: pointer;
    outline: 4px var(--first-colror) solid;
    outline-offset: -4px;

    &:hover {
        opacity: 70%;
    }

    &.red {
        color: #dc0d3d;
        outline-color: #dc0d3d;
    }

    &.green {
        color: #4da079;
        outline-color: #4da079;
    }

    &.purple {
        color: #8e189b;
        outline-color: #8e189b;
    }

    &.blue {
        color: #16428f;
        outline-color: #16428f;
    }

    &.yellow {
        color: #ddcb03;
        outline-color: #ddcb03;
    }
}

.today.active {
    background-color: var(--first-colror);
    color: white;
    outline: none;

    &:hover {
        opacity: 70%;
    }

    &.red {
        background-color: #dc0d3d;
    }

    &.green {
        background-color: #4da079;
    }

    &.purple {
        background-color: #8e189b;
    }

    &.blue {
        background-color: #16428f;
    }

    &.yellow {
        background-color: #ddcb03;
    }
}

.home {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 32px 0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: calc(100vh/3);
}

form>button {
    width: fit-content;
    background-color: #00C96B;
    border: none;
    color: white;
    align-self: end;
    font-size: 1rem;

}

form>[type="text"] {
    font-size: 2rem;
    border: 2px var(--first-colror) solid;
    border-radius: 12px;
}

.error {
    color: rgb(189, 33, 33);
}

.hidden {
    display: none;
}

.popup {
    position: absolute;
    width: 100vw;
    top: 50%;
    transform: translate(0, -50%);
    display: flex;
    flex-direction: column;
    gap: 64px;

    img {
        width: 100%;
        max-width: 100vw;
        max-height: 70vh;
        object-fit: contain;
    }

    button {
        margin: 0 48px;
        border: none;
        color: white;
        background-color: var(--first-colror);
        font-size: 1rem;
        cursor: pointer;

        &:hover {
            background-color: var(--hover-color);
        }
    }
}