:root {
      --keralaGreen: #003d00; 
      --keralaNight: #000d08;
      --keralaShade: #06120a;
      --munnarTeaGarden: #00aa00;
      --ripeMango: #ff6600; 
      --mountainFog: #f0fff8; 
      --monsoonCloud: #333849;
      --backwaterBlue: #032094;
    }

    body {
        background-color: var(--keralaGreen);
        color: var(--mountainFog); 
        font-family: Arial, Helvetica, sans-serif; 
        display: flex; 
        flex-direction: column;
        justify-content: space-between;
        margin: 0; 
    }

/* Navigation menu base styles*/
        .topnav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative; 
            padding: 1rem 1.5rem;
            background: var(--keralaNight);        
            color: var(--mountainFog);
            min-height: 6vh;
            max-width: 100%; 
        }
    
       

        .hamburger {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1000;
        position: absolute;
        right: 1.5rem;
        top: 0.5rem;
        }

        
        .hamburger span {
        display: block;
        width: 28px;
        height: 3px;
        background: white;
        margin: 6px 0;
        transition: all 0.3s ease;
        }

        /* Hamburger becomes X when menu is open */
        .hamburger.active span:nth-child(1) {
          transform: rotate(45deg) translate(5px, 6px);   /* adjust translate values if needed */
        }

        .hamburger.active span:nth-child(2) {
          opacity: 0;   /* middle bar disappears */
        }

        .hamburger.active span:nth-child(3) {
          transform: rotate(-45deg) translate(7px, -6px);  /* adjust translate values if needed */
        }

        /* Optional: make transitions smoother on all spans */
        .hamburger span {
          display: block;
          width: 28px;
          height: 3px;
          background: white;
          margin: 6px 0;
          transition: all 0.35s ease;   /* slightly longer for nicer feel */
          transform-origin: center;
        }

        .navLinks {
        display: none;               
        flex-direction: column;
        left: 0;
        width: 100%;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        max-height: fit-content;
        }

        .navLinks a { 
            color: white;
            text-decoration: none;
            padding: 1rem 0;
            font-size: 1.4rem;
            border-bottom: 1px solid var(--ripeMango);
        }

        .nav-links a:hover, .nav-links a:focus {
        background: var(--monsoonCloud);
        }

        .navLinks.active {
            display: flex;
            flex-direction: column;
        }



    .header {
        font-size: .9rem;
        text-align: center;
        cursor: pointer;
        text-align: center;
        width: 90%; 
        margin-left: 5%;
        margin-right: 5%;  
        padding-top: 10px;
        padding-bottom: 10px; 
        box-sizing: border-box; 
        max-height: 20vh;
        margin-bottom: 3vh;
    }
 

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

    /* defaults for all containers within .maincontainer */

    .container { 
        box-sizing: border-box;
        width: 97%; 
        padding: 2%;
        margin: 1%; 
        padding: 2%;
        border: solid var(--mountainFog) 2px; 
        box-shadow: 3px 3px #001d08;
        background-color: #001f0ce3;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .containerTitle {
        align-self: center;
        text-align: center;
    }

    .containerImg {
        align-self: center;
        width: 100%; 
    }

    .figure {
        display: flex; 
        flex-direction: column;
        align-items: center;
        gap: 10px; 
        width: 100%; 
    }

    .figCaption {
        text-align: center;
    }


     /* loop e to m example image on click */
    .flashcardExpContainer {
        align-content: center;
    }
        .flashcardImg {
            max-width: 70vw;
            cursor: pointer; 
        }


    .locationDiv {
        align-content: center;
        align-items: center;
        justify-content: space-around; 
    }
        .locationImg {
            width: 100%;
            padding: 10px; 
            box-sizing: border-box;
        }


    .mapDiv {
        align-self: center;
    }
        #keralaMap {
            max-height: 45vh;
            max-width: 100%;
            box-shadow: 3px 3px var(--keralaShade);
            cursor: pointer; 
        }



    .sunMapButton {
    display: block; 
    font-size: 1.5rem;
    background-color: var(--backwaterBlue);
    color: var(--mountainFog);
    box-shadow: 3px 3px var(--keralaNight);
    padding: 15px; 
    border-radius: 15px;
    }

    .footer {
        margin: 25px; 
        box-sizing: border-box;
        text-align: center;
      }

    

    @media only screen and (min-width: 768px) {

    .topnav {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        min-height: fit-content; 
        height: 5vh; 
        padding: 0;
    }

    .topnav #myLinks {
        display: flex;
        flex-direction: row;
        background-color: transparent;
    }

    .topnav a {
      margin-left: 7vw; 
      margin-right: 15vw; 
    }

    .hamburger {
      display: none; 
    }

    #dropMenu {
        display: none; 
    }

    
    .footer {
            display: flex; 
            flex-direction: row;
            justify-content: space-around; 
            align-items: center;
            font-size: 1.25rem;
            padding: 5%; 
            gap: 5vw; 
            min-height: fit-content; 
        }
    
    #footer {
        display: none; 
    }



    }
        