/* static/css/base.css  */
@import url('https://fonts.googleapis.com/css2?family=Merienda:wght@300..900&display=swap');
html {
    box-sizing: border-box;
}

/* The Universal Selector */
*,
/* All elements*/
*::before,
/* All ::before pseudo-elements */
*::after {
    /* All ::after pseudo-elements */
    /* height & width will now include border & padding by default
     but can be over-ridden as needed */
    box-sizing: inherit;
}

/* resets font size to be 62.5% of the user preference - 
     in most browser configurations this will be 10px */
:root {
    font-size: 62.5%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url("static/../../images/background.png");
    background-color: var(--bg-color);
    background-size: cover;
    background-position: center;
    transition: background-image 0.2s ease-in-out, background-color 0.2s ease-in-out;
    color:black;
    font-family: Merienda ,-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
        'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
        'Helvetica Neue', sans-serif;
    min-height: 100vh;
    --nav-bg: rgba(209, 174, 17, 0.7);
    --nav-bg-ff: rgba(209, 174, 17, 0.9);
    --borders: rgb(166, 38, 45) solid 2px;
    --text-color: rgb(17, 20, 17);
    --link-hover-color: rgb(16, 56, 158);
    --button-bg: rgb(51, 49, 49);
    --button-bg-hover: rgb(0, 0, 0);
    --submit: rgb(26, 128, 0);
    --warn: rgb(255, 102, 0);
    --danger: rgb(220, 20, 30);
    --secondary: rgb(57, 57, 57);
    --card-box-shadow: 5px 5px 6px -1px #000000;
    --font-xtreme: 4.2rem;
    --font-xxl: 3.6rem;
    --font-xl: 2.4rem;
    --font-l: 1.8rem;
    --font-reg: 1.6rem;
    --card-border-radius: 6px;
    --bg-color: rgb(166, 38, 45);
}

@media (max-width: 767px) {
    body {
        background-image: none;
    }
    .page-header h1 {
        background-color: none;
    }
}

header {
    width: 100%;
    background: var(--nav-bg-ff);
    border-bottom: var(--borders);
}

nav {
    margin: 10px;
}

ul {
    margin: 0;
    list-style: none;
    padding: 0;
}

main {
    width: 100%;
    padding: 0 10px;
    border-radius:  0 0 0;
}

h2 {
    font-size: var(--font-xl);
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
}

nav a:hover {
    color: var(--link-hover-color);
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    padding: 5px 8px;
}

.header-logo-container {
    margin: auto;
    padding: 10px 20px 0;
    max-width: 500px;
}

.page-header {
    display: flex;
    align-items: center;
    margin: 20px;
}

.btn {
    font-size: var(--font-l);
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    background-color: var(--button-bg);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-right: 10px;
}

.btn:hover {
    background-color: var(--button-bg-hover);
}

.submit {
    color: var(--submit);
    border-color: var(--submit);
}

.secondary {
    color: var(--secondary);
    border-color: var(--secondary);
}

.warn {
    color: var(--warn);
    border-color: var(--warn);
}

.danger {
    color: var(--danger);
    border-color: var(--danger);
}

.page-header h1 {
    font-size: var(--font-xxl);
    margin-top: 3%;
    background-color: rgb(195, 166, 127);
    border-radius: 10px;
}

.page-header img {
    height: 40px;
    margin-left: 15px;
}

.page-header img:first-of-type {
    margin-left: 20px;
}

.page-content {
    font-size: var(--font-reg);
}

@media only screen and (min-width: 768px) {
    header {
        position: sticky;
        display: flex;
        flex-direction: row;
        top: 0;
        align-items: center;
    }

    main {
        max-width: 1300px;
        min-height: calc(100vh - 53px);
    }

    nav,
    .header-logo-container {
        margin: 10px 0;
        padding: 0 15px;
    }

    /* visual fix to help align logo */
    .header-logo-container {
        padding-top: 3px;
    }

    nav {
        margin-left: auto;
        display: flex;
        justify-content: center;
    }

    nav ul {
        flex-wrap: nowrap;
    }

    .header-logo-container {
        width: 213px;
    }

    .page-header h1 {
        font-size: var(--font-xtreme);
    }

    .page-header img {
        height: 50px;
        margin-left: 20px;
    }

    .page-header img:first-of-type {
        margin-left: 25px;
    }

@media only screen and (min-width: 1024px) {
    main {
        min-height: calc(100vh - 55px);
    }

    header {
        margin: 20px 20px 0 20px;
        width: calc(100vw - 40px);
        max-width: 1920px;
        top: 20px;
        background-color: transparent;
        border-bottom: none;
    }

    nav,
    .header-logo-container {
        margin: 0;
        background: var(--nav-bg-ff);
        border: var(--borders);
        border-radius: 18px;
    }

    nav {
        margin-left: auto;
    }

    .header-logo-container {
        /* visual fix to help align logo */
        padding-top: 6px;
        width: 256px;
        height: 35px;
    }

    @supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
        header {
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
        }

        nav,
        .header-logo-container {
            background: rgba(209, 174, 17, 0.6);
            -webkit-backdrop-filter: blur(3px);
            backdrop-filter: blur(3px);
        }
    }
}

#logout-form button {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

#logout-form button:hover {
    color: var(--link-hover-color);
}

.dropdown {
    float: left;
    overflow: hidden;
  }
  
  .dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: rgb(0, 0, 0);
    padding: 14px 16px;
    background-color: inherit;
    cursor: pointer;
    font-family: inherit;
    margin: 0;
  }
  
  .navbar a:hover, .dropdown:hover .dropbtn {
    color: var(--link-hover-color);
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: rgb(223, 214, 188);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  .dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }
  
  .dropdown-content a:hover {
    background-color: rgb(235, 227, 202);
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }

  .about {
    margin-top: 20%;
    font-size: 2rem;
  }
}