body{
    --margin-top: 75px;
    background: var(--2);
    font-family: Josefin Sans;
    margin-top: var(--margin-top);
    min-height: calc(100vh - 75px);
}

button{
    font-family: Josefin Sans;
}

.background_overlay{
    opacity: 0.2;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

#menu_button{
    background: white;
    /*border-radius: 0 10px 10px 0;*/
    height: 55px;
    width: 55px;
    position: absolute;
    top: 10px;
    right: 0;
    transform: translate(100%, 0);
    border: none;
    padding: 18px 14px;
    cursor: pointer;
    transition: opacity 0.2s; 
    z-index: 1001;
}

#menu_button:hover{
    opacity: 0.9;
}

#menu_button > div{
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

#menu_button > div > div{
    height: 3px;
    width: 100%;
    background: black;
    border-radius: 3px;
    transition: rotate 0.2s, transform 0.2s;
}

#menu_button[data-status="close"] > div > div:first-child{
    rotate: 45deg;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-9px, 9px);
}

#menu_button[data-status="close"] > div > div:nth-child(2){
    display: none;
}

#menu_button[data-status="close"] > div > div:last-child{
    rotate: -45deg;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-9px, -9px);
}

menu{
    position: fixed;
    width: 220px;
    box-shadow: none;
    height: 100vh;
    background: var(--1);
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    transform: translate(-100%, 0);
    transition: transform 0.3s, box-shadow 0.3s;
    transition-timing-function: ease-in-out;
    z-index: 1002;
}

menu[data-status="open"]{
    transform: translate(0, 0);
    box-shadow: 1px 0 5px rgba(0, 0, 0, 0.25);
}

menu > div{
    height: calc(100% - 60px);
    width: calc(100% - 60px);
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

menu > div > h1{
    font-size: 28px;
}

menu ul{
    padding: 10px 0;
    display: grid;
    gap: 10px;
}

menu ul > a{
    text-decoration: none;
    color: black;
    display: block;
}

header{
    position: fixed;
    height: 55px;
    top: 10px;
    left: 0;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: var(--1);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

header > img{
    border: 5px solid var(--1);
    border-radius: 50%;
    position: relative;
}

header > h1{
    font-family: jsMath;
    font-style: italic;
    color: var(--3);
    /*-webkit-text-stroke: 1px white;*/
    font-size: 40px;
}

#flask_flash_container{
    background: rgba(0, 0, 0, 0.3);
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

#flask_flash_element{
    background: var(--1);
    font-family: Josefin Sans;
    font-size: 16px;
    color: black;
    z-index: 1000;
    width: 240px;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
}

#flask_flash_element > button{
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    background: var(--3);
    height: 40px;
    width: 40px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: scale 0.2s;
    padding: 0;
}

#flask_flash_element > button:hover{
    scale: 1.05;
}

#flask_flash_element > button:active{
    scale: 1;
}

#flask_flash_element > button > div{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#flask_flash_element > button > div > div{
    background: white;
    height: 3px;
    width: 70%;
    border-radius: 3px;
    position: absolute;
}

#flask_flash_element > button > div > div:first-child{
    rotate: 45deg;
}

#flask_flash_element > button > div > div:last-child{
    rotate: -45deg;
}

#modal_container{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
}

#modal_background{
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
    position: absolute;
}

#modal{
    --height: ;
    --width: ;
    background: var(--2);
    position: absolute;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
    height: calc(var(--height) - 40px);
    width: calc(var(--width) - 40px);
    max-height: calc(var(--height) - 40px);
    max-width: calc(var(--width) - 40px);
    padding: 20px;
}

#modal[data-size="auto"]{
    --height: auto;
}

#modal[data-orientation="auto"]{
    aspect-ratio: none;
}

#modal[data-size="large"][data-orientation="vertical"]{
    --height: 600px;
}

#modal[data-size="medium"][data-orientation="vertical"]{
    --height: 500px;
}

#modal[data-size="small"][data-orientation="vertical"]{
    --height: 400px;
}
 
#modal[data-size="large"][data-orientation="horizontal"]{
    --width: 600px;
}

#modal[data-size="medium"][data-orientation="horizontal"]{
    --width: 500px;
}

#modal[data-size="small"][data-orientation="horizontal"]{
    --width: 400px;
}

#modal[data-size="fit"]{
    --width: auto;
    --height: auto;
}


#modal[data-orientation="vertical"]{
    aspect-ratio: 5 / 7;
}

#modal[data-orientation="horizontal"]{
    aspect-ratio: 7 / 5;
}

#modal_title{
    text-align: center;
    background-color: var(--1);
    margin: -20px -20px 20px -20px;
    padding: 12px;
    padding-top: 15px;
    border-radius: 10px 10px 0 0;
    font-size: 18px;
    font-weight: 700;
}

#modal > button{
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    background: var(--3);
    height: 40px;
    width: 40px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: scale 0.2s;
    padding: 0;
}

#modal > button:hover{
    scale: 1.05;
}

#modal > button:active{
    scale: 1;
}

#modal > button > div{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal > button > div > div{
    background: white;
    height: 3px;
    width: 70%;
    border-radius: 3px;
    position: absolute;
}

#modal > button > div > div:first-child{
    rotate: 45deg;
}

#modal > button > div > div:last-child{
    rotate: -45deg;
}

#modal_content{
    height: 100%;
    max-height: calc(100% - 45px);
    max-width: 100%;
    overflow-y: scroll;
}

#modal_content::-webkit-scrollbar{
    display: none;
}

.modal_header{
    margin-top: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal_header_button{
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    font-size: 16px;
    font-family: Josefin Sans;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
}

.modal_header_button:hover{
    background: var(--3);
}

.generic-modal-input{
    width: calc(100% - 25px);
    padding-inline: 20px;
    margin: 0;
    border: none;
    border-radius: 7px;
    height: 30px;
    font-family: Josefin Sans;
    padding-inline: 12px;
    font-size: 16px;
}