:root {
    --primary-color: #000000;
    --background-color: #1c8588;
    --text-color-game: #1c8588;
    --text-color: #000000;
    --volume-track-color: #000000;
    --volume-thumb-color: #1c8588;
    --control-height: 40px;
    --base-font-size: 16px;
    --header-font-size: 24px;
    --nav-font-size: 18px;
    --about-font-size: 20px;
    --services-font-size: 20px;
    --works-font-size: 20px;
    --contact-font-size: 20px;
    --work-item-font-size: 18px;
    --modal-font-size: 24px;
    --close-font-size: 28px;
    --button-font-size: 18px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Hide the default scrollbar */
    font-size: var(--base-font-size);
    background-color: var(--background-color);
}

body {
    font-family: 'Silkscreen', sans-serif;
    color: var(--primary-color);
}

.content-wrapper {
    height: 100%;
    overflow-y: auto; /* Enable vertical scrolling */
    /* Hide scrollbar for Chrome, Safari and Opera */
    -webkit-scrollbar {
        display: none;
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}


/* Lenis-specific CSS */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* Additional styles as needed */
section {
    min-height: 100vh;.content-wrapper {
    height: 100%;
    overflow-y: auto; /* Enable vertical scrolling */
    /* Hide scrollbar for Chrome, Safari and Opera */
    -webkit-scrollbar {
        display: none;
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Ensure header is full height */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--background-color);
    color: var(--primary-color);
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-color);
    width: 100%;
    font-size: var(--header-font-size);
}



header h1 {
    font-family: 'Silkscreen', sans-serif;
    font-weight: 700;
    font-size: calc(var(--header-font-size) * 1.5);
}

header h3 {
    font-family: 'Silkscreen', sans-serif;
    font-weight: 400;
    font-size: var(--header-font-size);
}

nav {
    background-color: var(--background-color);
    padding: 10px 0;
    border-bottom: 2px solid var(--primary-color);
    width: 100%;
    font-size: var(--nav-font-size);
    position: fixed; /* Fixed position to keep it at the top */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure it appears above other content */
}

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

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: var(--nav-font-size);
}

nav ul li a:hover {
    text-decoration: underline;
    color: #365a9a;
}

body {
    padding-top: 60px; /* Adjust this value based on the height of your nav to prevent content overlap */
}

main {
    width: 100%;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: var(--about-font-size);
}

#services {
    font-size: var(--services-font-size);
}

#works {
    font-size: var(--works-font-size);
}

#contact {
    font-size: var(--contact-font-size);
}

#gameContainer {
    position: relative;
    width: 80%;
    max-width: 800px;
    height: 80%;
    max-height: 600px;
    margin: auto;
}

canvas {
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary-color);
}

footer {
    background-color: var(--background-color);
    color: var(--primary-color);
    text-align: center;
    padding: 10px 0;
    border-top: 2px solid var(--primary-color);
    width: 100%;
    font-size: var(--base-font-size);
}

.work-item {
    display: inline-block;
    margin: 20px;
    text-align: center;
    cursor: pointer;
    font-size: var(--work-item-font-size);
}

.work-item img {
    width: 300px;
    height: auto;
    border: 2px solid var(--primary-color);
}

.works-container {
    display: flex;
    overflow-x: scroll;
    width: 90%;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.works-container::-webkit-scrollbar {
    height: 8px;
}

.works-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.works-container::-webkit-scrollbar-track {
    background: var(--background-color);
}

.work-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    margin-right: 20px;
}

body.modal-open {
    overflow: hidden; /* Prevent scrolling when modal is open */
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    font-size: var(--modal-font-size);
    overflow: auto; /* Ensure the modal itself can scroll */
}

.modal-content {
    background-color: var(--background-color);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid var(--primary-color);
    width: 65%;
    max-height: 80vh; /* Limit the height of the modal content */
    overflow-y: auto; /* Make the content scrollable if it overflows */
    pointer-events: auto; /* Ensure pointer events are captured */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.modal-content::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.modal-content {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.modal-details {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align the content horizontally */
    text-align: center; /* Center align the text */
    width: 100%;
}


.project-images img {
    width: 55%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.project-description {
    margin-top: 20px;
}

.project-description h2 {
    font-size: var(--modal-font-size);
}

.project-description p {
    font-size: var(--base-font-size);
}

.close {
    color: var(--primary-color);
    float: right;
    font-size: var(--close-font-size);
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: var(--text-color-game);
    text-decoration: none;
    cursor: pointer;
}


.game-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.game-buttons button {
    background-color: var(--primary-color);
    color: var(--text-color-game);
    font-family: 'Silkscreen', sans-serif;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    height: var(--control-height);
    font-size: var(--button-font-size);
}

.game-buttons button:hover {
    background-color: #365a9a;
}

#home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

#gameContainer {
    width: 80%;
    max-width: 800px;
    height: 70%;
    max-height: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid var(--primary-color); /* Added border for visibility */
}

#soundControls {
    text-align: center;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    margin-top: 10px; /* Add a small margin at the top for spacing */
}

#soundControls button, #soundControls input {
    background-color: var(--primary-color);
    color: var(--text-color-game);
    font-family: 'Silkscreen', sans-serif;
    border: none;
    padding: 5px;
    cursor: pointer;
    margin: 0 5px; /* Adjust margin between elements */
    height: var(--control-height);
    font-size: var(--button-font-size);
}

#soundControls input[type="range"] {
    width: 150px;
    -webkit-appearance: none;
    appearance: none;
    height: 18px;
    background: var(--volume-track-color);
    outline: none;
    opacity: 1;
    transition: opacity .15s ease-in-out;
    margin: 0 5px; /* Adjust margin between elements */
}

#soundControls input[type="range"]:hover {
    opacity: 1;
}

#soundControls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: var(--volume-thumb-color);
    cursor: pointer;
    border-radius: 50%;
    margin-top: 0;
}

#soundControls input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: var(--volume-thumb-color);
    cursor: pointer;
    border-radius: 50%;
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    .wave-container {
        height: 10vh;
    }

    .waves {
        height: 10vh;
    }

    nav ul li {
        margin: 0 5px;
    }

    nav ul li a {
        font-size: 14px;
    }

    #gameContainer {
        width: 90%;
        height: 70%;
    }

    .works-container {
        width: 100%;
    }

    .work-item img {
        width: 250px;
    }
}

.linkedin-link {
    color: var(--primary-color); /* LinkedIn color */
    text-decoration: none;
}

.linkedin-link:hover {
    color: #365a9a; /* Darker blue on hover */
    text-decoration: underline;
}

a {
    color: var(--primary-color); /* Set the desired color for the link */
    text-decoration: none; /* Remove underline */
}

a:hover {
    color: #365a9a; /* Set the desired color for the link when hovered over */
    text-decoration: underline; /* Add underline on hover */
}

a:focus {
    color: var(--primary-color); /* Set the desired color for the link when focused */
    outline: none; /* Remove default outline */
}

.wave-container {
    width: 100%;
    height: 100px; /* Set a fixed height for the container */
    overflow: hidden; /* Hide any overflow to keep the waves within the container */
    position: relative; /* Relative positioning to position the waves correctly */
}

.waves {
    width: 100%; /* Set the width of the SVG to 100% of its container */
    height: 100px; /* Match the height of the container */
    position: absolute; /* Absolute positioning to control the placement */
    left: 0; /* Align the SVG to the left */
    top: 0; /* Align the SVG to the top */
    fill: url(#line-pattern); /* Use the pattern fill */
}