/* Shared Styles across pages */
body {
    font-family: Arial, sans-serif;
    background-color: rgb(19, 19, 20);;
    margin: 0;
    padding: 0;    
    animation-name: start;
    animation-duration: 1500ms;
    animation-fill-mode: forwards;
    cursor: url(../image/mouse.png) 0 0, pointer;
}
@keyframes start{
    from{
        opacity: 0;
    }
    to{
       opacity: 1;
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure the header stays on top of all other elements */
    color: azure;
    background-color: rgb(31, 42, 52);
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    cursor: url(../../image/P.png) 0 0, pointer;
}

.menu:hover {
    animation-name: menuColor; 
    animation-duration: 500ms;
    animation-fill-mode: forwards;
}
@keyframes menuColor{
    from{
        background-color: rgb(31, 42, 52);
        color: azure;
    }
    to{
        background-color: rgb(58, 64, 99);
        color:rgb(255, 245, 194);
    }
}
#m {
    flex: 3;
    font-family: 'Brush Script MT', cursive;
    font-size: 27px;
    color: rgb(252, 244, 200);
}

.menu {
    font-family: 'Brush Script MT', cursive;
    font-size: 27px;
    color: rgb(252, 244, 200);
    flex: 5;
    padding: 20PX;
    animation: menuBack 500ms forwards;
}

.a {
    font-family: 'Brush Script MT', cursive;
    font-size: 27px;
    color: rgb(160, 197, 157);
}

@keyframes menuBack{
    from{
        background-color: rgb(58, 64, 99);
        color:rgb(255, 245, 194);
    }
    to{
        background-color: rgb(31, 42, 52);
        color: azure;
    }
}
header nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.gallery {
    padding-top: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 3% 8%; /* Adds a margin to left and right of the gallery */
    cursor: url(../image/mouse.png) 0 0, pointer;
}


.photo {
    background-size: cover;
    background-position: center;
    width: 30%; /* Adjust width for each photo */
    height: 230px; /* Adjust height for each photo */
    margin-bottom: 5%; /* Adds space between rows of photos */
    cursor: pointer;
    transition: transform 0.2s ease-in-out; /* Adjust hover zoom speed */
    border-radius: 5px;
}

.photo:hover {
    transform: scale(1.1); /* Adjust hover zoom level */
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease-in-out; /* Ensure this transition time matches the JavaScript */
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
}

.modal-content img {
    width: 80%; /* Adjust the zoomed-in photo size */
    border-radius: 5px;
}
