:root{
    --Background-color: #1f1f1f;
    --Title-color: #FFD479;
    --Section-Title-color: #FFF2D9;;
    --Section-Text-color: #ffdc9b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
  }
/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--Background-color);
}

.header {
    background-color: var(--Title-color);
    padding: 05px;
    text-align: center;
}

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

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

nav ul li a {
    text-decoration: none;
    font-size: 18px;
}

section {
    margin: 2vw;
    padding: 5%;
    background-color: var(--Section-Title-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.project {
    margin-bottom: 20px;
}

.project-block {
    margin-bottom: 30px;
}

.text-block {
    margin-bottom: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}


.project-block figure {
    margin: 0 auto 10px;
    text-align: center;
}

.project-block img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.project-block figcaption {
    font-size: 0.9em;
    margin-top: 5px;
}

.project-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.project-section.reverse {
    flex-direction: row-reverse;
}

.project-section figure,
.project-section .project-text {
    flex: 1;
}

.project-section figure {
    margin: 0;
}

.project-text p {
    margin: 0;
    font-size: 1.05em;
    line-height: 1.7;
}

.project-article {
    line-height: 1.6;
    padding: 20px;
    background-color: var(--Section-Title-color);
    border-radius: 8px;
    margin: auto;
    max-width: 900px;
    
}

.project-article header h2 {
    font-size: 2em;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--Section-Title-color);
    padding-bottom: 10px;
}

.project-article figure {
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-article figure img {
    max-width: 95%;
    height: auto;
    background-color: #ffffff;
    border-radius: 8px;
    margin: 2.5%;
}

.project-article figcaption {
    font-size: 0.9em;
    margin-top: 5px;
    text-align: center;
}

.project-text {
    text-align: left;
}

@media (max-width: 900px) {
    .project-section,
    .project-section.reverse {
        flex-direction: column;
        text-align: center;
    }

    .project-section .project-text {
        text-align: left;
        width: 100%;
    }
}

.project-video {
    margin: 5px auto; /* Center the video section */
    text-align: center; /* Center the content inside */
    max-width: 700px; /* Limit the width of the video section */
    background-color: var(--Section-Title-color); /* Match the section background */
    padding: 0px; /* Add some padding around the video */
    border-radius: 8px; /* Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

.project-video video {
    width: 100%; /* Make the video responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Match the section's rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Add a shadow to the video */
}

.project-video .video-caption {
    font-size: 1em; /* Adjust font size */
    text-align: center; /* Center the caption text */
    line-height: 1.2; /* Improve readability */
    margin: 0px; /* Remove default margin */

}
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
}


.content {
    display: block;
    padding: 20px;
    margin: 2vw;
    max-height: 6000px; /* Adjust based on the content size */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
    background-color: var(--Section-Title-color);
    overflow: hidden;
}

.content .details-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Create three equal columns that floats next to each other */
.column {
    float: left;
    width: 40vw;
    padding: 5px;
    max-width: 500px;
}

/* Clear floats after the columns */
.row {
    content: "";
    margin: 2vw;
    display: table;
    clear: both;
    background-color: var(--Section-Title-color);
}

/* Ensure the section wraps and centers the content properly */
#gallery {
    padding: 5%;
    background-color: var(--Section-Title-color); /* Adjust the background color if needed */
    overflow: hidden; /* Hide any overflow */
}

.container{
    display: flex;
    justify-content:flex-end;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    background-color: var(--Section-Title-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 2vw;
}


.container .hexArea{
    display: flex;
}

.container .hexArea.last{
    transform: translateY(-5.5vw);
}

.container .hexArea .hex{
    position: relative;
    max-width: 200px;
    max-height: 230.94px;
    width: 15vw;
    height: 17.3205vw;
    margin: 1.8vw;
    clip-path: polygon(0 25%, 50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%);
    background: var(--Section-Text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    transition: .5s;
    opacity: 0.7;
    transition: opacity 1.5s ease;
}

.container .hexArea .hexInvisible{
    position: relative;
    max-width: 200px;
    max-height: 230.94px;
    width: 15vw;
    height: 17.3205vw;
    margin: 1.8vw;
    clip-path: polygon(0 25%, 50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%);
    background: var(--Section-Title-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: .5s;
    opacity: 0.7;
    transition: opacity 1.5s ease;
}

.container .hexArea .hex:hover{
    background-color: var(--Title-color);
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container .hexArea .hex img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container .hexArea .hex h3{
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px; /* Adjust font size */
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.container .hexArea .hex:hover h3 {
    opacity: 1;
}

/* Highlight the chosen hexagon */
.hex.selected {
    transform: scale(1.2); /* Make the hexagon slightly larger */
    transition: transform 0.3s ease;
}

/* Styles for project details display with flexbox */
.project-details {
    display: none;
    margin-top: 2vw;
    padding: 0;
    background-color: var(--Section-Title-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
}

.project-details.active {
    display: block;
    position: relative;
    padding: 20px;
    margin: 2vw auto;
    max-width: 1500px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.project-details .details-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-details .details-content .text-content {
    text-align: center;
}

.project-details .details-content .text-content .h3{
    text-align: center;
}

.project-details .details-content img {
    max-height: auto;
    width: 35vw;
    max-width: 400px;
    margin-bottom: 20px; /* Space between image and game */
}

/* Ensure the game container is responsive */
.game-container {
    margin-bottom: 5px;
    text-align: center;
    position: relative;
    max-width: 1600px;
    width: 100%; /* Full width of its parent */
    height: auto;
    padding-bottom: 56.25%; /* Aspect ratio of 16:9 */
    overflow: hidden;
}

.game-container iframe {
    margin-bottom: 5px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
    object-fit: contain; /* Adjust to contain or cover based on your needs */
}

.contact-section {
    text-align: center;
    padding: 40px;
    background-color: var(--Title-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 5px auto;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.contact-column {
    flex: 1;
    min-width: 250px;
    padding: 10px;
}

.profile-pic {
    max-width: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-info {
    text-align: left;
    font-size: 1.1em;
    line-height: 1.6;
}

.contact-info p {
    margin: 5px 0;
}

@media (min-width: 1000px) {
    .project-article {
        max-width: 1500px;
    }

    .project-section {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .project-section figure {
        margin: 0;
        flex: 0 0 40%;
        max-width: 420px;
        text-align: left;
    }

    .project-section figure img {
        width: 100%;
        height: auto;
    }

    .project-section .project-text {
        flex: 1;
    }

    .project-section figure:only-child,
    .project-section .project-text:only-child {
        flex: 0 1 auto;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 1000px) {
    .contact-row {
        flex-direction: column;
    }
    /* Create three equal columns that floats next to each other */
    .row {
        display: flex;
        flex-direction: column;
    }

    .column{
        width: 100%;
    }

    .project-details .details-content img {
        width: 100%;
    }

    .project-details.active{
        margin: 2vw;
    }

    .container .hexArea .hex h3{
        opacity: 1;
        font-size: small;
        top: 45%;
    }
    
}

/* ----------------------New Hexagon Styles---------------------- */


.Rows {
    display: flex;
    flex-direction: column;
    align-items: left;

    padding: 4vw;
    margin: 1vw;
}

.Row {
    display: flex;
    gap: 3.01vw;
    justify-content: left;
    margin-top: -1.66vw; /* overlap rows by half the height */
}

.Row.offset {
    margin-left: calc(15vw / 2 + 1.45vw); /* same as before */
}

.obj {
    position: relative;
    width: 15vw;
    height: 17.3205vw; /* sqrt(3)/2 * width * 2 */
    clip-path: polygon(0 25%, 50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%);
    background: var(--Section-Text-color);
    display: flex;
    justify-content: left;
    align-items: left;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;

}

.obj:hover {
    background-color: #ffffff;
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.obj img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    margin: auto;
    border-radius: 1px;
}

.obj h3 {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    color: #ffffff;
}

.obj:hover h3 {
    opacity: 1;
}

.top-menu {
  position: sticky;
  top: 0;              /* sticks to the top once it reaches it */
  z-index: 1000;       /* stays above content */
  background-color: var(--Title-color);
  width: 100%;
  overflow: hidden;
}

/* Menu links */
.top-menu a {
  float: left;            /* or switch to flex below */
  display: block;
  color: Black;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
}
.top-menu a:hover {
  background-color: var(--Section-Text-color);
}

.top-menu::after {
  content: "";
  display: block;
  clear: both;
}
