/* Light Theme Modifications */
.modified-background {
    background-color: #dadada !important; /* Light background for light theme */
}

.modified-text {
    color: #553E4E !important; /* Text color for light theme */
}

.modified-headerColor {
    color: #553E4E !important; /* Header text color for light theme */
}

.modified-link {
    color: #553E4E !important; /* Link color for light theme */
}

/* Light Theme Modifications */
.modified-navButton {
    color: #000000 !important; /* Text color for light theme */
    transition: color 0.3s, transform 0.2s;
}

.modified-navButton:hover {
    color: #553E4E !important; /* Hover text color for light theme */
    transform: scale(1.1);
}

.modified-navi {
    background-color: rgba(255, 255, 255, 0) !important; 
    color: #553E4E; /* Text color for navigation in light theme */
}

.rainbowToggleC {
    position: fixed;
    top: 80px;
    right: 20px;
}

.rainbowToggleLabelDivC {
    position: fixed;
    top: 80px;
    right: 45px;
    color: #ffffff;
}

body {
    background-color: #0a0a0a;
    color: #e3dfff;
    font-size: 18px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.menu-toggle-input {
    display: none;
}

.menu-toggle-label {
    display: none; /* Hide by default, show on mobile */
    position: fixed;
    padding-top: 10px;
    top: 110px;
    right: 20px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001; /* Ensure it stays on top */
}

.menu-toggle-label span,
.menu-toggle-label span::before,
.menu-toggle-label span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.menu-toggle-label span::before {
    content: '';
    position: absolute;
    top: -8px;
}

.menu-toggle-label span::after {
    content: '';
    position: absolute;
    top: 8px;
}

.menu-toggle-input:checked + .menu-toggle-label span {
    background-color: transparent;
}

.menu-toggle-input:checked + .menu-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle-input:checked + .menu-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
}

.nav-menu {
    display: none; /* Hide by default, show when menu is toggled */
    background-color: rgba(0, 0, 0, 0.9);
    padding: 16px;
    border-radius: 10px;
    z-index: 1000;
    position: fixed;
    top: 150px;
    right: 20px;
}

.menu-toggle-input:checked ~ .nav-menu {
    display: block;
}

@media (max-width: 768px) {
    .body {
        margin-left: 50px;
        margin-right: 10%; 
    }
    .pbody {
        margin-left: 50px;
        margin-right: 5%; 
    }

    .menu-toggle-label {
        display: block;
    }
    .nav-menu {
        display: none;
        position: fixed;
        top: 150px;
        right: 20px;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 16px;
        border-radius: 10px;
    }
    .menu-toggle-input:checked ~ .nav-menu {
        display: block;
    }
    .content {
        margin-right: 0;
        margin-left: 0;
    }
    .body-mobile {
        margin-right: 0;
    }
    header h1 {
        font-size: 24px; 
    }
    nav a {
        font-size: 18px; 
    }
    .buttonColor {
        padding: 6px 12px;
        width: 100%;
        box-sizing: border-box;
    }
    #navi li {
        display: block; 
        margin: 10px 0;
    }
    /* Adjust positions of toggle buttons on mobile */
    .toggle-label {
        top: 50px;
        right: 20px;
    }
    .label {
        top: 50px;
        right: 65px;
    }
    .rainbowToggleC {
        top: 80px;
        right: 20px;
    }
    .rainbowToggleLabelDivC {
        top: 80px;
        right: 45px;
    }
    .photo-container img {
        margin: 5px;
        width: calc((80% - 20px) / 2);
        height: auto;
        border-radius: 10px; /* Rounded corners */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
        transition: transform 0.2s, box-shadow 0.2s; /* Animation for hover effect */
        cursor: pointer;
    }

    .nav-toggle-label {
        display: block;
    }
    
    /* Adjust Positions */
    .nav-toggle-label {
        top: 110px;
        right: 20px;
    }
    
    
    #navi ul {
        list-style: none; /* Remove default bullet points */
        padding: 0; /* Remove padding */
        margin: 0; /* Remove margin */
    }
    
    #navi li {
        margin-bottom: 10px; /* Space between each button */
    }
    
    /* Default button styles for dark theme */
    #navi button {
        background-color: transparent;
        border: none;
        color: white; /* Default text color for dark theme */
        cursor: pointer;
        font-size: 16px;
        transition: color 0.3s, transform 0.2s;
    }
    
    /* Hover effect for dark theme */
    #navi button:hover {
        color: #e3dfff; /* Light blue hover color for dark theme */
        transform: scale(1.1);
    }
    .photo-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
        margin-right: 20%;
    }
}

@media (min-width: 768px){
    .nav-toggle-label {
        display: none;
    }

    .body{
        margin-left: 50px;
        margin-right: 235px;
        max-width: 1300px;
    }

    .pbody{
        margin-left: 50px;
        margin-right: 20%;
        max-width: 1300px;
    }

    .nav-menu {
        /* Styles for desktop navigation */
        display: block;
        position: fixed; /* Make the navigation fixed to keep it visible during scrolling */
        top: 25%; /* Align it vertically in the middle */
        right: 0; /* Align it to the right side of the screen */
        transform: translateY(-25%); /* Center it vertically */
        background-color: rgba(0, 0, 0, 0); /* Semi-transparent background */
        padding: 16px; /* Padding around the content */
        color: white; /* Text color */
        font-weight: bold; /* Make the text bold */
        font-size: 20px; /* Font size */
        border-radius: 10px 0 0 10px; /* Rounded corners on the left side */
        user-select: none; /* Prevent text selection */
        z-index: 1000; /* Ensure it stays on top of other elements */
    }
    
    #navi ul {
        list-style: none; /* Remove default bullet points */
        padding: 0; /* Remove padding */
        margin: 0; /* Remove margin */
    }
    
    #navi li {
        margin-bottom: 10px; /* Space between each button */
    }
    
    /* Default button styles for dark theme */
    #navi button {
        background-color: transparent;
        border: none;
        color: white; /* Default text color for dark theme */
        cursor: pointer;
        font-size: 16px;
        transition: color 0.3s, transform 0.2s;
    }
    
    /* Hover effect for dark theme */
    #navi button:hover {
        color: #e3dfff; /* Light blue hover color for dark theme */
        transform: scale(1.1);
    }
    
    .btn-primary {
        width: 75%;
        padding: 10px;
    }
    .btn-thin {
        width: 12.25% !important;
    }
    .photo-container img {
        margin: 5px;
        width: calc((80% - 40px) / 3);
        height: auto;
        border-radius: 10px; /* Rounded corners */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
        transition: transform 0.2s, box-shadow 0.2s; /* Animation for hover effect */
        cursor: pointer;
    }
    .nav-toggle-label {
        display: block;
    }
    
    /* Adjust Positions */
    .nav-toggle-label {
        top: 110px;
        right: 20px;
    }
    
    
    #navi ul {
        list-style: none; /* Remove default bullet points */
        padding: 0; /* Remove padding */
        margin: 0; /* Remove margin */
    }
    
    #navi li {
        margin-bottom: 10px; /* Space between each button */
    }
    
    /* Default button styles for dark theme */
    #navi button {
        background-color: transparent;
        border: none;
        color: white; /* Default text color for dark theme */
        cursor: pointer;
        font-size: 16px;
        transition: color 0.3s, transform 0.2s;
    }
    
    /* Hover effect for dark theme */
    #navi button:hover {
        color: #e3dfff; /* Light blue hover color for dark theme */
        transform: scale(1.1);
    }

    .photo-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
        margin-right: 20%;
    }
}

.titleHeader {
    color: #e3dfff;
}

.photographyLink {
    color: #e3dfff;
}

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

nav li {
    display: inline;
    margin-right: 10px;
}

nav a {
    text-decoration: none;
    font-size: 20px;
}

.contentStart {
    margin-left: 1.6%;
}

.toggle-input {
    display: none;
}

.toggle-label {
    position: fixed;
    top: 50px;
    right: 20px;
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-input:checked+.toggle-label {
    background-color: #2196F3;
}

.toggle-label:before {
    content: "";
    position: fixed;
    top: 52px;
    right: 42px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-input:checked+.toggle-label:before {
    transform: translateX(20px);
}

.label {
    position: fixed;
    top: 50px;
    right: 65px;
    color: #ffffff;
}

.toplabel {
    color: #ffffff;
    position: fixed;
    bottom: 50px;
    right: 80px;
}

#totop {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 50px;
    right: 20px;
}

.anim {
    animation: fade-in 0.9s;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateX(-4em);
    }
    16% {
        opacity: 0;
        transform: translateX(-4em);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/*
@media (max-width: 768px) {
    .body {
        margin-right: 10%; 
    }

    header h1 {
        font-size: 24px; 
    }

    nav a {
        font-size: 18px; 
    }

    .buttonColor {
        padding: 6px 12px;
    }
}
*/

@media (max-width: 480px) {
    nav li {
        display: block; 
        margin: 10px 0;
    }

    .buttonColor {
        width: 100%;
        box-sizing: border-box;
    }
}

#footer {
    font-size: 12px;
}

.photo-container img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Deeper shadow on hover */
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Navigation Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next {
    right: 0;
    border-radius: 0 3px 3px 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.btn-primary {
    width: 75%;
    padding: 10px;
}
.btn-thin {
    width: 12.25% !important;
}

a:visited {
    color: #4882ee;
}

a:link {
    color: #4882ee;
}

.photo-container {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax(280px, 1fr) );
    gap: 20px;
    align-items: center;
    justify-items: center;
}

.photo-container img.photo {
    display: block;  
    width: 100%;   
    height: auto; 
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,.2);
    cursor: pointer;
}

.photo-container img.photo:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,.3);
    transition: transform .2s, box-shadow .2s;
}

@media (max-width: 480px) {
    .photo-container {
        grid-template-columns: repeat( auto-fill, minmax(180px, 1fr) );
        gap: 12px;
    }
}
