* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nokora';
} 
  
html, body {
    height: 100%;
    margin: 0;
}
body {
    background-color: white;
    
}

.temple-pic{
    margin: 0 auto;   
    height: 40vh;
    width: 100%; 
    padding: 0;
    background-image: url("./pictures/background-header.webp");
    background-size: cover; 
    background-position: center 60%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;

    flex-direction: column;
    /* margin-top: 1em; */
    
    justify-content: flex-start;
}

header{
    padding-top: 0.5em;
    padding-bottom: 0.2em;
    /* background-color: #032EA1; */
    /* background-image: url("./pictures/background.webp"); */

    width: 100%;
    position: relative;
    z-index: 1;
}

.nav-link{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    /* background-color: #032EA1; */
    padding: 1vw;

}
.nav-link button {
    padding: 0.25em 0.75em;
    background-color: white;
    color: #333;
    font-size: 1rem;
    border: 2px solid #333;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.nav-link button:hover {
    background-color: #333;
    color: white;
    transform: translateY(-3px);
}

/* .nav-link button:focus {
    outline: 3px solid #e00025;
    outline-offset: 2px;
} */


.nav-link:hover a{
    cursor: pointer
}

.seperate-header button{
    margin-right: 0.5em;
}
.seperate-header a {
    display: inline-block;
    margin-right: 2em;
    color: #333;
    /* background-color: #f0f0f0;
    border: 1px solid #ccc; */
    border-radius: 5px;
    text-decoration: none;
    text-decoration-color: #333;
}

.seperate-header button:last-child {
    margin-right: 0;
}

.seperate-header a:last-child {
    margin-right: 0;
}

/* .seperate-header a:hover {
    background-color: #f0f0f0;
    text-decoration: underline;
    text-decoration-color: #555;
} */


.temple-pic h1,.temple-pic h3,.temple-pic h5{
    color: white;
    font-family: 'Nokora';
    text-align: center;
    
    text-shadow: 5px 5px 5px rgba(1, 1, 1, 1);
    /* font-size: 1em; */
}

.temple-pic h1 {
    font-size: 3em;
    font-weight: bold;

    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;

}

.temple-pic h3{
    font-size: 1.15em;
    letter-spacing: 1px;
}


.temple-pic h5{
    font-size: 1.15em;
    letter-spacing: 1px;
}


h1{
    margin-top: 0.5em;
}


/* Event */
.event1{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    background-color: #f9f9f9;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 1em;
}

.event1 h3{
    margin-bottom: 0.5em;
}

.event1 img{
    height: auto;
    width: 50%;
}


.images-row{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 90%;
    
    position: relative;
    gap: 0;
    /* margin-right: 5vw; */
    /* background-color: rgba(0, 0, 0, 0.7) */
}

.images-row div {
    display: flex;
    justify-content: center; 
    align-items: center;
    
}

.images-row img {
    width: 30vw;
    height: auto;
    transition: transform 0.3s, filter 0.3s;
}

/* .images-row .left img, .images-row .right img {
    width: 15vw;
    height: auto;
    filter: brightness(50%);
    transform: scale(1);
    position: relative;
    z-index: 1;
}



.images-row .left {
    transform: translateX(-5vw);
    z-index: 1;
}

.images-row .right {
    transform: translateX(5vw);
} */

.images-row .middle::before {
    content: ''; 
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-image: var(--background-image, url('./pictures/khmer1.webp'));  */
    background-size: cover;
    background-position: center;
    filter: brightness(20%);
    z-index: 1;
}

.images-row .middle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    
    box-shadow: 0 2vw 4vw rgba(0, 0, 0, 0.3);
}

.images-row .middle{
    width: 50vw;
    height: 40vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* background-color: black; */
    background-image: url("./pictures/about/wat.webp");
    background-size: cover; 
    /* background-position: center 60%; */

    border: 2px solid #333;
    /* box-shadow: 0 2vw 4vw rgba(0, 0, 0, 0.3); */
    z-index: 2;
    padding: 0.1em; 
    /* background-image: url('./pictures/khmer1.webp'); */
}

.images-row .middle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

section{
    padding-top: 2em;
    padding-bottom: 3em;
    /* padding:0; */
    background-image: url("./pictures/about/wat.webp");
    background-size: cover; 
}
.e1info{
    display: flex;
    flex-direction: column;
    width: 90%;
    align-items: center;
    justify-content: space-between
}


.e1text{
    width: 100%;
    display: flex;
    align-self: flex-start;
    justify-content: center;
    margin: 1em 1em 1em;
    line-height: 1.8; 
}

/* footer styles */
.socials {
    display: flex;
    gap: 1.5em;
    justify-content: center;
    flex-wrap: wrap;
}

.social {
    display: flex;
    align-items: center;
    gap: 0.5em;
    text-decoration: none;
    background-color: #f0f0f0;
    padding: 0.5em 1em;
    border-radius: 5px;
    transition: transform 0.2s, background-color 0.3s;
}

.social:hover {
    transform: translateY(-3px);
    background-color: #e0e0e0;
}

.social img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.social p {
    font-size: 1em;
    color: #333;
    margin: 0;
}

footer {
    /* margin-top: 3em; */
    padding: 1em 0;
    background-color: #032EA1;
    text-align: center;
}

footer h4 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

footer .socials img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transition: transform 0.2s;
}

footer .socials img:hover {
    transform: scale(1.1);
}



@media screen {

    .event-grid{
        display: grid;
        grid-template-columns: 45vw 45vw;
        gap: 2vw;
        width: 100%;
        max-width: 100vw;
        margin: 0 auto;
        padding: 0 4vw;
        /* margin: 0 auto;  */
      
        box-sizing: border-box;
        
    }
    

.images-row img {
    width: 100%;
    height: auto;
}
}

@media screen and (max-width: 1200px) {
    .event-grid{
     
        grid-template-columns: 90vw;
        
    }

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


@media screen and (max-width: 1050px) { 
    .e1info{
        flex-direction: column;

    }

    .temple-pic h1 {
        font-size: 2em;
        font-weight: bold;
    
        text-align: center;
        letter-spacing: 1px;
        text-transform: uppercase;
    
    }
    
    .temple-pic h3{
        font-size: 0.85em;
        letter-spacing: 1px;
    }
    
    
    .temple-pic h5{
        font-size: 0.85em;
        letter-spacing: 1px;
    }
    
  }