
/* Prevent horizontal scrolling on mobile browsers */
html {
    overflow-x: clip;
}
/* ======================================================================= */

body {
    margin: 0;
    background-image: url(images/pero-kalimero-unsplash-mod.jpg);
    background-size: cover;
    background-repeat:no-repeat;
    background-position: center;
    overflow-x: clip;
}



/* ================= Desktop Instructions for Mobile  =============== */
.hamburger {
  display:none;
} 
.mobile-menu {
    display: none;
}
.mobile-logo {
    display: none;
}

/* ============================ Headings ============================ */
h1 { 
    font-family: "work sans", sans-serif;
    font-size: 2rem;
    font-weight:600;
    color: black;
    text-align: center;
    padding-top: 30px;

}

h2 {
    font-family: "work sans", sans-serif;
    font-size: 1.2rem;
    font-weight:200;
    color: black;
    text-align: center;
}

/* =========================== Scrolling Info Bar =========================== */

.information-bar {
    background-color: rgb(150, 10, 10);
    color: #f5f5f5;
    text-align: center;
    padding: 10px;
    font-family: "work sans", sans-serif;
    font-size: 1rem;
    overflow: hidden;
}

.ticker {
    width: max-content;
    white-space: nowrap;
    animation: ticker-scroll 20s linear infinite;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(-100%);
    }
}



/* ============================== NavBar =========================== */

.navbar {
  display: flex;
  background-color: #414141;
  color: Whitesmoke;
  padding: 20px 5px;
  padding-left: 100px;
}
.navbar a {
  color: whitesmoke;
  font-size: 1rem;
  font-family: "work sans", sans-serif;
  margin: 0 10px;
  text-align: center;
}

            /*  ---------------------------------------------
            For the DEV website... use <b> for the links that 
            are active. When the website goes to PROD, remove 
            the <b> 
            ---------------------------------------------------> */


/* ========================== Navbar Logo =========================== */
.logo {
  /* display: flex; */
  margin: 0 10px;
}

.logo img {
  width: 100px;
  height:auto;
  margin-left: -100px;
  position: absolute;
}

/* ========================= Drop Down Menu ========================= */

.dropbtn {
  /* background-color: #dcf5fa10; */
  color: #f5f5f5;
  padding: 16px;
  font-size: 16px;
  border: none;
  text-decoration:none;
  
  display: flex;
  justify-content: center;
  align-items:center;
  text-align:center;
}

.dropdown {
  position: relative;
  display: flex;
  justify-content: center;
  flex: 1;
  border-top: 2px solid #f5f5f5;
  border-bottom: 2px solid #f5f5f5;
}

.dropdown-content {
  display: none;
  position: absolute;
  top:100%;
  background-color: grey;
  min-width: 160px;
  z-index: 1;
}

.dropdown-content a {
  color: #414141;
  padding: 5px 5px;
  font-size: 0.9rem;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {background-color: #ddd;}

.dropdown:hover .dropdown-content {display: block;}

.dropdown:hover .dropbtn {background-color:  #dcf5fa40;}

/* ================================================================ */

.links {
  display: flex;
}


/* =============== Main Page restict to 1500 px ================ */

.main-content {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}



/* ========================= Index - Home =========================== */
/* ========================= Hero Image  =========================== */
.card {
  margin: 5rem;

}
 
.card img {
  width: 100%;
  box-sizing: border-box;
  box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.4);

}

/* ================== =======================  ====================== */
/* ========================= Introduction =========================== */

.section-intro {
    display: grid;
    grid-template-columns: 60% 40%;
    align-items: center;
    gap: 0;
    padding: 20px;
    box-sizing: border-box;
}

.intro-text {
    padding: 15px;
    font-family: "Work Sans", sans-serif;
    font-size: 1.2rem;
}

.intro-image img {
    width: 100%;
    max-height: 450px;
    height: auto;
    object-fit:contain;
    display: block;
}

.intro-image figcaption {
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 10px;
    font-family: "Work Sans", sans-serif;
}

/* ========================= Index - Home =========================== */
/* ============================ TOC ============================== */
.tableofcontents {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-left: 20px;
    margin-right: 20px;
    padding-bottom: 30px;
}

.page {
    position: relative;
    display: grid;
    grid-template-columns: 60% 40%;
    
    padding: 5px;

    box-sizing: border-box;
    border: 1px solid black;
    background-color: rgba(0, 0, 0, 0.10);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.4);

}

.page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.page-text {
    padding: 15px;
}

.page-text a {
    /* color: navy; */
    font-weight: bold;
    text-decoration: none; 
    font-family: "Work Sans", sans-serif;
    font-size: 1.2rem;
}

.page-text a:hover {
    text-decoration: underline; 
}

.page-text a:visited {
    color: Black;
}

.page-text p {
    font-family: "Work Sans", sans-serif;
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0;
}

.page-text h3 {
    margin-top: 0;
    font-size: 1.2rem;
    font-family: "Work Sans", sans-serif;
    color: rgb(0, 0, 0);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: rgba(255, 255, 255, 0.65);

    font-size: 2rem;
    font-weight: bold;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.page:hover .overlay {
    opacity: 1;
}

/* ===================== Disclaimer Folders  ====================== */


.disclaimer-folder {
    margin: 10px 20px;
    border: 1px solid #888;
}

.disclaimer-folder summary {
    background-color: #a81717;
    color: white;
    padding: 12px 20px;
    font-family: "Work Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
}



/* ========================================= ====================== */
/* ===================== Expandable Folders  ====================== */


.expandable-folder {
    margin: 10px 20px;
    border: 1px solid #888;
}

.expandable-folder summary {
    background-color: #414141;
    color: white;
    padding: 12px 20px;
    font-family: "Work Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
}

.folder-content {
    padding: 20px;
    font-family: "Work Sans", sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
}

.notice-folder {
    padding: 20px;
    font-family: "Work Sans", sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
    background-color: #ecc2c2;
}



/* ======================= Expandable Folders ========================= 

        folder-text-only            Text only across entire page
        folder-image-only           Single image, with figcaption
        folder-image-image          Dual images, SBS, with hyperlink
        folder-text50-image50       Text, Image: on a 50/50 split
                                        Reverse cascade on narrow screens
                                        (2nd child comes first)
        folder-text30-image70       Text, Image: on a 30/70 split
                                        Reverse cascade on narrow screens
                                        (2nd child comes first)
        folder-image50-text50       Image, Text: on a 50/50 split
        folder-image70-text30       Image, Text: on a 70/30 split

======================================================================= */

.folder-text-only {
    width: 100%;
}

.folder-image-only {
    width: 100%;
}


.folder-image-image {
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: center;
    padding-bottom: 50px;
}
/* ===================================================== */
.folder-text50-image50 {
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: center;
}
.folder-text30-image70 {
    display: grid;
    grid-template-columns: 30% 70%;
    align-items: center;
}

.folder-image50-text50 {
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: center;
}

.folder-image70-text30 {
    display: grid;
    grid-template-columns: 70% 30%;
    align-items: center;
}

/* ===================================================== */


.folder-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 10px;
}

.image-video-link {
    display: block;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
    color: #000080;
    text-decoration: none;
}

.image-video-link:hover {
    text-decoration: underline;
}


.folder-image-only img {
    max-width: 100%;
    max-height: 800px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}

/* Images within any of these layouts */

.folder-image-image img,
.folder-text50-image50 img,
.folder-text30-image70 img,
.folder-image50-text50 img,
.folder-image70-text30 img
 {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}

/* * ============================  Footer Bar =========================== */
 
.footer-bar {
    background-color: #000000;
    color: #f5f5f5;
    text-align: center;
    padding: 5px;
    font-family: "work sans", sans-serif;
    font-size: 1rem;
    overflow: hidden; 
}

.ticker {
    width: max-content;
    white-space: nowrap;
    animation: ticker-scroll 20s linear infinite;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(-100%);
    }
}

/* ========================== M O B I L E   ==================== */
/* ================== Expandable Folder Mobile Layout ================= */
/* ========================== M O B I L E   ==================== */

    @media only screen and (max-width: 750px) {

        .folder-text50-image50,
        .folder-text30-image70,
        .folder-image50-text50,
        .folder-image70-text30,
        .folder-image-image {
            grid-template-columns: 1fr;
        }

        /* This moves the image above text for this DIV */
        .folder-text50-image50 > div:last-child,
        .folder-text30-image70 > div:last-child
        {
            order: -1;
        }



        .folder-image-image > div:first-child,
        .folder-image-image > div:last-child {
        transform: none;
         }
        

/* ------------------ resets the double images to 0-bottom ------------ */
/* ------------------ Adds a 50px margin to single images  ------------ */

        .folder-image-image {
            padding-bottom: 0px;
        }
        .image-video-link {
            margin-bottom: 50px;
        }

    }



/* ====================  Mobile Width - 960 px  ================= */


@media only screen and (max-width: 960px) {
    

   .card {
   margin: 2rem;
   }

   .tableofcontents {
        grid-template-columns: 1fr;
    }
    .navbar {
    display: none;
    }
    .hamburger {
        display: block;
        position: fixed;
        top: 50px;
        right: 10px;
        z-index: 2;
        font-size: 40px;
    }

        .mobile-logo {
            display: block;
            position: absolute;
            top: 50px;
            left: 10px;
            /* Z-index: 2; */
        }
        
        .mobile-logo img {
            width: 70px;
            height: auto;
        }


        .mobile-menu {
            display: flex;
            flex-direction: column;
            gap:10px;
            position: fixed;
            top: 50px;
            right: 0;
            width: 200px;
            height: auto;
            max-height: calc(100dvh - 50px);
            overflow-y: auto;
            font-family: "work sans", sans-serif;
            padding-top: 70px;
            padding-bottom: 30px;
            padding-left: 10px;
            box-sizing:border-box;
            background-color: rgb(168, 216, 235);
            z-index: 1;
            transform: translateX(100%);
            transition: transform 0.5s ease;
        }

        .mobile-menu.open {
            transform: translateX(0);
        }

        .mobile-menu a{
            text-align:left;
            padding-right: 10px;
            font-size: 0.8rem;
                text-decoration: none;
        }


        .mobile-menu b {
            color: blue;
            font-size: 1rem;
                text-decoration: none;
        }
    
        .sidebar-submenu {
            list-style-type: none;
            margin: 0;
            padding-left: 12px;
        }

        .sidebar-submenu li {
            margin-bottom: 6px;
        }

        .sidebar-submenu a {
            font-size: 0.8rem;
            text-decoration: none;
        }

        .tableofcontents {
        grid-template-columns: 1fr;
        }
}

/* ======================= Mobile Width 550 px =========================== */

@media only screen and (max-width: 550px) {

      h1 {
        padding-left: 100px;
        padding-right: 100px;
      }
}

/* ====================================================================== */