@font-face {
    font-family: "Roboto";
    src: url('/static/fonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 400 700;
    font-stretch: 100;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url('/static/fonts/Roboto-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 400 700;
    font-stretch: 100;
    font-style: italic;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
    font-family: "Roboto";
    margin: 0px;
    padding: 0px;
}

body {
    font-family: "Roboto", sans-serif;
    background-color:#031a30;
    color:#e1e2ec;
    margin: 20px;
    overflow-x: hidden;
}

header{
    font-size: 35px;
}

section {
    margin-bottom: 10px;
}

h1 {
    font-size: 45px;
    margin-bottom: 20px;
    margin-top: 10px;
}

h2 {
    font-size: 35px;
    margin-bottom: 15px;
}

h3 {
    font-size: 25px;
    margin-bottom: 10px;
}

p, input, button, legend, textarea {
    font-size: 20px;
    line-height: 30px;
}

p {
    margin-bottom: 10px;
}

a {
    text-decoration: none;
}

a:link {
    color:rgb(255, 136, 0);
}
a:visited {
    color:rgb(172, 92, 0);
}
a:hover {
    color:#0a3d62
}
a:active {
    color:aqua;
}

pre {
    overflow-x: auto;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

li {
    font-size: 20px;
}

ul {
    margin-bottom: 10px;
    list-style-position: inside;
    margin-left: 20px;
}

/* Navigation component */

.background_color {
    background-color: #031a30;
}

#nav_bar {
    width: calc(100% - 40px);
    /* changing the position from absolute to fixed resolved
    and issue occuring on mobiles where I could zoom outline
    and see the hidden menu pane */
    position: fixed;
    top: 20px;
    height: 40px;
    z-index: 2;
}

#home_bar_button, #account_bar_button{
    display: none;
}

#nav_bar_blur {
    backdrop-filter: blur(30px);
    position: fixed;
    top: 0;
    left: 0;
    height: 80px;
    width: 100%;
    z-index: 1;
}

#nav_bar input {
    flex-grow: 1;
    margin-left: 0;
    margin-right: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.light_blue_element {
    background-color:#0f2b44;
    border: 1px solid #5c92c2;
}

.nav_button{
    /* margin-top: 20px; */
    line-height: 40px;
    width: fit-content;
    padding-left: 20px;
    padding-right: 20px;
}

.nav_button:hover {
    background-color: #8ac6f0;
}

.corner_radius_20 {
    border-radius: 20px;
}

.corner_radius_10 {
    border-radius: 10px;
}

#page_content {
    margin-top: 80px;
}

#search_container {
    margin-top: 80px;
}

.search_result {
    padding: 10px;
    margin-top: 20px;
}

.row_layout {
    display: flex;
    flex-direction: row;
}

.padding_bottom_10 {
    padding-bottom: 10px;
}

#side_panel{
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 80px;
    backdrop-filter: blur(30px);
    font-size: 25px;
    transform: translateX(100%); 
    transition: transform 0.3s ease-out;
    padding: 20px 60px 20px 20px;
}

#home_side_panel_button {
    margin-bottom:20px;
}

#side_panel.visible {
    transform: translateX(0);
}

#toggleBtn {
    /* changing the position from absolute to fixed resolved
    and issue occuring on mobiles where I could zoom outline
    and see the hidden menu pane */
    border: 0;
    width: 40px;
    height: 40px;
    background-image: url('/static/svg/menu.svg');
    background-size: cover;
    /* background-position: center; */
}

.invisible {
    display: none;
}

.form_separation {
    margin-bottom: 20px;
}

.space_between {
    justify-content: space-between;
}

.search_pre {
    padding: 0;
}

.post_date {
    margin: 0 0 30px 15px;
}

/* pop-ups */

.pop_down {
    display: block;
    position: fixed;
    border-radius: 20px;
    top: 0vh;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0; /* Make it invisible */
    pointer-events: none; /* Make it not interactive */
    transition: top 0.3s ease-out, opacity 0.3s ease-out; /* Transition BOTH */
    z-index: 2;
    padding: 10px;
}

.pop_down.visible {
    top: 7vh;
    opacity: 1; /* Make it visible */
    pointer-events: auto; /* Make it interactive */
}

.info {
    background-color: #4e3466;
    border: 1px solid #adadad;
}

.error {
    background-color: #801717;
}

.success {
    background-color: #096809;
}

#info_pop_down_buttons {
    justify-content: space-evenly;
}

@media (min-width: 651px) {
    #toggleBtn {
        display: none;
    }

    #home_bar_button, #account_bar_button{
        display: flow;
    }

    #nav_bar input {
        margin-left: 20px;
    }
}