/* static/styles.css */
body {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
    background-color: #111111;
    color: #ffffff;
}

.sidebar {
    width: 200px;
    max-width: 200px;
    height: 100vh;
    background-color: #000000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: transform 0.3s ease;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar .site-logo {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

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

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2em;
}

.sidebar ul li a:hover {
    font-size: 1.2em;
}

.social-icons {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    margin-top: auto;
    padding-bottom: 20px;
}

.social-icons a img {
    width: 24px;
    height: 24px;
    filter: invert(100%);
    margin: 0 10px;
}

.content {
    flex-grow: 1;
    padding: 20px;
    margin-left: 70px; /* Ensure enough margin for the sidebar */
    padding-bottom: 20px;
}

.content img {
    max-width: 100%;
    height: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #111111;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444444;
    border-radius: 4px;
    background-color: #333333;
    color: #ffffff;
}

.contact-form input[type="submit"] {
    background-color: #6c757d;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form input[type="submit"]:hover {
    background-color: #5a6268;
}

#successMessage {
    display: none;
    text-align: center;
    font-size: 24px;
    background-color: #333;
    color: #fff;
    padding: 10px;
    margin-bottom: 20px;
}

/* Responsive styles for smartphones */
@media (max-width: 600px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 200px;
        height: calc(100vh - 60px); /* Adjust height to be below the hamburger menu */
        position: fixed;
        top: 60px; /* Position below the hamburger menu */
        left: 0;
        flex-direction: column;
        align-items: flex-start;
        transform: translateX(-100%);
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1001;
    }

    .hamburger-menu div {
        width: 30px;
        height: 3px;
        background-color: #ffffff;
        margin: 5px 0;
    }

    .site-logo {
        position: fixed;
        top: 10px;
        left: 50px;
        height: 40px;
    }

    .sidebar .site-logo {
        display: none;
    }

    .content {
        margin-left: 0;
        padding-top: 60px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .overlay.active {
        display: block;
    }
}

/* Styles for the work page */
.work-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(325px, 1fr)); /* Increase min-width to 300px */
    gap: 20px; /* Maintain the gap between images */
    padding: 0px;
}

.work-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4; /* Slightly taller images */
    object-fit: cover;
    border-radius: 8px;
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;  /* Adjusted to make the image 60% of the screen width */
    max-height: 80%; /* Adjusted to make the image 60% of the screen height */
    object-fit: contain;
    margin-top: 100px;
}

/* 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;
}

.error-page {
    background-color: black;
    color: white;
    text-align: center;
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* static/styles.css */
.about-image {
    width: 50%;
    height: auto;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .about-image {
        width: 100%;
    }
}