body {
    font-family: sans-serif;
    margin: 0;
    margin-top: 0.5rem;
}

/* Logo */
.foto img {
    position: absolute;
    margin-top: 10px;
    margin-left: 10px;
    height: 2rem;
    width: 5rem;
    background-color: #fff;
    border: solid 1px black;
}

/* Navigation Bar */
nav {
    background: #ffffff;
    padding: 5px;
    padding-top: 0px;
    text-align: right;
}

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

nav li {
    display: inline;
    text-align: center;
    margin: 0.1rem;
}

a {
    display: inline-block;
    width: 100px;
    text-decoration: none;
    color: #000;
    padding: 10px 20px;
    transition: all 0.7s ease-in;
}

a:hover {
    color: #fff;
    background: #333;
}

nav ul li a {
    border-radius: 0px;
    border: solid #000;
}

/* tablet size */
@media only screen and (min-width: 600px) and (max-width: 1024px){
    body{
        margin: 0
    }
    .foto img{
        position: relative;
    }
    nav{
        text-align: center;
        transform: scale(0.8);
    }
    nav ul{
        padding-top: 4px;
        padding-bottom: 4px;
    }
    /* home page */
    div .col2 {
        padding: 2rem 0 2rem 0;
    }

    div .col3 {
        grid-column: 2/12;
        height: 15rem;
    }
    /* meetings page */
    div .col44 {
        grid-column: 2/12;
    }
    /* events page */
    div .subheading2{
        padding: 2rem 0 2rem 0;
    }
    /* contacts page */
    .container2 {
        margin: 0 0.5rem 0 0.5rem;
    }
}

/* Phone Size Hamburger Menu (Media Query) */
@media only screen and (max-width: 600px) {
    .foto img {
        position: relative; /* Change to relative for better control */
        margin-left: 10px; /* Adjust margins as needed */
        margin-top: 5px;
        height: 1.5rem; /* Slightly larger for visibility */
    }

    #nav-trigger {
        display: none;
    }

    .nav-trigger {
        position: absolute;
    }

    label[for="nav-trigger"] {
        position: fixed;
        right: 15px;
        top: 15px;
        z-index: 200;
        cursor: pointer;
    }

    .nav-trigger:checked + label {
        right: 215px; /* Adjust if needed */
    }

    .nav-trigger:checked ~ .navigation {
        right: 0;
    }

    nav ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        width: 200px; /* Width of the sidebar */
        height: 100%;
        position: fixed; /* Change to fixed to overlay */
        top: 0;
        right: -200px; 
        /* Initially hide the sidebar */
        bottom: 0;
        z-index: 200;
        text-align: left;
        background-color: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.4s; /* Add transition for smooth effect */
    }

    .nav-trigger:checked ~ nav ul {
        right: 0; /* Show sidebar when checked */
    }

    nav li {
        margin: 10px 0; /* Space between buttons */
    }

    nav a {
        display: block; /* Make links block elements */
        width: 100%; /* Full width */
        padding: 10px 20px;
        color: #000;
        background: none;
        transition: all 0.7s;
        margin: 10px 0;
        box-sizing: border-box;
    }

    a:hover {
        color: #fff;
        background: #333;
    }

    p {
       font-size: 14px; 
    }

    ul {
        font-size: 14px;
    }

    h2{
        font-size: 20px;
    }

    h1{
        font-size: 30px;
    }
    /* home page */
    div .col44 {
        grid-column: 2/12;
    }

    div .col3 {
        grid-column: 2/12;
        height: 15rem;
    }
    /* about page */
    div .people3{
        grid-column: 2/10;
    }
    div .members {
        grid-column: 2/10;
    }
    div .text4 {
        grid-column: 2/10;
    }
    /* meetings */
    div .people_left {
        z-index: 50;
        grid-column: 1/11;
    }
    div .people_left img {
        border-left: 0px;
        border-top: solid 1px black;
    }

    div .text4_left{
        grid-column: 2/10;
    }
    /* events page */
   div .container{
        grid-column: 2/10;
    }
    /* national events */
    div .people {
        grid-column: 2/10;
    }
    /* contacts */
    .container2 h2{
        font-size: 15px;
    }
    .container2 p{
        font-size: 12px;
    }
    div .header {
        grid-column: 3/11;
        z-index: 5;
    }
}
/* above 601 pixel device */
@media only screen and (min-width: 601px){
    .nav-trigger .nav-trigger:checked, label{
        display: none;
    }
    #nav-trigger{
        display: none;
    }
}
/* Grid and Cell Styles */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 10px;
}

.cell {
    background-color: rgb(220, 220, 220);
    height: 100px;
}

/* code learnt from another source  */
.image-container {
    grid-column-end: span 12;
    position: relative;
    display: inline-block;
    width: 100%;
    height: auto;
}

.image-container img {
    width: 100%;
    display: block;
    height: 25rem;
    border: solid 1px black;
}

.overlay-text {
    position: absolute;
    color: #000000;
    text-align: center;
    z-index: 10;
}
/* End of code learnt from another source  */

.logo {
    font-size: 8vw;
    white-space: nowrap;
    text-align: center;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bawah {
    font-size: 4vw;
    white-space: nowrap;
    text-align: center;
    transform: translate(-50%, -50%);
    top: 65%;
    left: 50%;
}

.cell {
    z-index: 2;
}

.col1 {
    grid-column-end: span 3;
    height: auto;
    background-color: #fff;
}

.col2 {
    grid-column-end: span 6;
    height: auto;
    background-color: #fff;
}

.col2 p {
    text-align: center;
}

.col3 {
    grid-column-end: span 4;
    height: auto;
    background-color: white;
    border: solid, black, 1px;
    text-align: center;
}

.col3 p {
    margin: 2rem;
}

/* ABOUT PAGE */
.header {
    /* grid-column-end: span 12; */
    grid-column: 2/12;
    height: auto;
    background-color: #ffffff;
    text-align: center;
}

.header h1{
    margin-top: 1.5rem;
}
.gap3{
    grid-column-end: span 3;
    height: auto;
    background-color: #ffffff;
    text-align: center;
}
.col4 {
    grid-column-end: span 6;
    height: auto;
    background-color: #ffffff;
    text-align: center;
    padding-bottom: 2rem;
}

.people3 img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    border: solid 1px black;
}

.people3 {
    grid-column: 2/5;
    text-align: center;
    height: 10rem;
}

.members{
    grid-column: 2/10;
    margin-bottom: 0;
    text-align: left
}
.gap1{
    grid-column-end: span 1;
}
.box{
    grid-column-end: span 10;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 10px;
    background-color: white;
    height: 18rem;
    border: 1px solid black;
}

.box.top{
    border-bottom: none;
}
.box.bottom{
    border-top: none
}

div.pics {
    grid-column: 2/6;
    width: 100%;
    display: grid;
}

.rsp{
    max-width: 100%;
    height: auto;
    object-fit: cover;
}
.pics img{
    height: 10rem;
    width: 100%;

}
.subheading{
    box-sizing: border-box;
    grid-column: 2/12;
    text-align: left;
    margin-top: 1.5rem;
    margin-bottom: -2rem;
}

.text {
    grid-column: 6/12
    /* margin-left: 0.5rem; */
}

.bottom{
    margin-top: -10px
}

.cell.gap3{
    /* grid-column: 1/13 */
    background-color: white;
}

.gap10{
    grid-column-end: span 10;
    height: 2rem;
}

.gap12{
    grid-column-end: span 12;
    height: 3rem;
}

/* events */

.main{
    grid-column: 2/12;
    background-color: white;
}

.rsp {
    max-width: 100%;
    border: solid, black, 1px;
}

.main img {
    width: 100%;   /* Forces image to span full width of container */
    height: 15rem;
}
.subheading2{
    height: auto;
    text-align: center;
    background-color: white;
    grid-column: 3/11;
}

.container {
    grid-column-end: span 3;
    text-align: center;
}

.gap1{
    grid-column-end: span 1;
}

.gap2{
    grid-column-end: span 2;
}

.people img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border: solid, 1px black;
}

.container a{
    border: solid black 1px;
    margin: 1rem;
    width: auto;
    border-radius: 0px;
}


.rectangle {
    border: solid black 1px;
    grid-column: 2/12;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-gap: 10px;
    box-sizing: border-box;
}

.footer{
    border: solid black 1px;
    grid-column-end: span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 10px;
    box-sizing: border-box;
    height: 10rem;
    background-color: #d4d4d4;
}

.footer p {
    grid-column: 2/10;
}

.container2 {
    grid-column-end: span 2;
    text-align: center;
    background-color: white;
    height: auto;
}

/* National events */

.col44 {
    grid-column-end: span 4;
    background-color: white;
    display: grid;
}

.rsp {
    max-width: 100%;
    border: solid, black, 1px;
}

.col44 img {
    width: 100%;   /* Forces image to span full width of container */
    height: 15rem;
}


h2{
    text-align: center;
    grid-column-end: span 10;
} 

.gap2{
    grid-column-end: span 2;
    background-color: white;
    height: auto;
}

.people {
    grid-column-end: span 2;
    text-align: center;
}

.container a{
    border: solid black 1px;
    margin: 1rem;
    width: auto;
}

.text4{
    grid-column-end: span 4;
}

/* meetings */
.members_left{
    grid-column: 2/8;
    text-align: left;
}

.text4_left{
    grid-column: 2/7;
    text-align: left;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.people_left {
    grid-column: 8/11;
    height: auto;
}

.people_left img {
    max-width: 100%;
    height: 100%;
    width: 100%;
    box-sizing: content-box;
    border-left: solid 1px black;
    box-sizing: border-box;
}
