:root{
    --black: rgb(31, 30, 30);
    --grey: rgb(128, 128, 128);
    --pink: pink;
    --lilac: rgb(169, 132, 212);
    --white: #fff;
    --blue: rgb(54, 54, 82);
    --dark-blue: rgb(46, 46, 68);
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
    /* outline: 1px solid red; */
}
body{
    position: relative;
    font-size: 62.5%;
    width: 100vw;
    height: 100dvh;
    display: flex;
    margin: auto;
    background-image: url(img/background.jpg);
}
#container{
    width: 62rem;
    height: 80dvh;
    border-radius: 10px;
    margin: auto;
    background-color: var(--blue);
    color: var(--white);
    display: flex;
    gap: .8rem;
    padding: .8rem;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}
#calendar{
    width: 31rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    outline: 2px solid var(--white);
}
#current-month-year{
    width: 100%;
    height: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--pink);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
#current-month-year i{
    font-size: 2rem;
    color: var(--white);
}
#current-month-year i:hover{
    color: var(--lilac);
    cursor: pointer;
}
#weekdays{
    display: flex;
    font-size: 1.2rem;
    width: 100%;
    justify-content: space-evenly;
}
#weekdays div{
    width: calc(31rem/7);
    text-align: center;
}
#days{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
.selected{
    background-color: var(--white)!important;
    color: var(--lilac)!important;
    font-weight: bold!important;
}
#days div{
    width: calc(31rem/7);
    height: 4rem;
    text-align: end;
    padding-top: .25rem;
    padding-right: .5rem;
    outline: 1px solid var(--white);
    font-size: .8rem;
}
.prev-days, .next-days{
    background-color: var(--dark-blue);
    color: var(--grey);
}
.today{
    background-color: var(--lilac);
}
#days div:hover, day{
    background-color: var(--white);
    color: var(--lilac);
    font-weight: bold;
}
#journal{
    width: min(31rem, 45%);
    height: min(95%, 25rem);
    padding: .8rem;
    font-size: 1rem;
    background-color: var(--pink);
    outline: 2px solid var(--white);
    border-radius: 10px;
}
#journal-date{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .8rem;
    font-weight: bold;
}
#notes{
    display: flex;
    margin:  .5rem auto;
    width: 95%;
    height: 75%;
    outline: 1px solid var(--white);
    border-radius: 10px;
}
.background{
    position: absolute;
    overflow: hidden;
    background-color: black;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    opacity: .6;
    z-index: 1;
    display: none;
}
#event-creation{
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(80vw, 400px);
    height: 88dvh;
    background-color: var(--pink);
    outline: 2px solid var(--white);
    border-radius: 10px;
    display: flex;
    padding: 10px;
    z-index: 2;
    display: none;
}
form{
    width: 95%;
    height: 90%;
    display: flex;
    flex-direction: column;
    margin: 5px auto;
    text-align: center;
}
label{
    font-weight: bold;
    font-size: 1.2rem;
}
input{
    display: block;
    margin: 5px auto 10px;
    border: none;
    border-radius: 5px;
    width: 80%;
    height: 2rem;
    text-align: center;
}
#checkbox-container{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 30px;
}
#checkbox-container label{
    font-size: 1rem;
}
#all-day-event{
    width: 1rem;
    margin: 5px;
}
textarea{
    border: none;
    border-radius: 5px;
    height: 11rem;
}
h2{
    padding-bottom: 20px;
    font-size: 2.2rem;
    text-decoration: underline;
}
.modal-button-container{
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}
.modal-2{
    margin-top: 10px;
}
#note-creation{
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(80vw, 400px);
    height: min(50vw, 400px);
    background-color: var(--pink);
    outline: 2px solid var(--white);
    border-radius: 10px;
    display: flex;
    padding: 20px;
    z-index: 2;
    display: none;
}
.close-icon-container{
    display: flex;
    justify-content: flex-end;
}
form i{
    cursor: pointer;
    font-size: 1.7rem;
}
h2{
    text-align: center;
}
#buttons-container{
    display: flex;
    justify-content: center;
    gap: 5px;
}
button{
    width: 50%;
    height: 2.5rem;
    padding: .5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: var(--lilac);
    color: var(--white);
    border: 1px solid var(--white);
    border-radius: 10px;
}
@media screen and (max-width: 800px) {
    #container{
        width: 100vw;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        border-radius: 0;
    }
    #calendar{
        width: 21rem;
    }
    #weekdays div{
        width: calc(21rem/7);
    }
    #days div{
        width: calc(21rem/7);
        height: 3rem;
    }
    #journal{
        width: 90vw;
    }
    #notes{
        height: 60%;
    }
    button{
        width: 40%;
    }
    .modal-button-container button{
        width: 50%;
    }
    #event-creation, #note-creation{
        height: 90dvh;
    }
    textarea{
        height: 15rem;
    }
}