body {
    background-color: #1a2337;
    color: white;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-weight: bold;
    min-height: 100vh;
    box-sizing: border-box;
}

nav {
    width: 100%;
    background-color: #2c3e50;
    padding: 20px 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.nav-left, .nav-right {
    padding: 0;
    display: flex;
}

nav a {
    color: white;
    text-decoration: none;
    user-select: none;
    margin: 0 2vw;
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    box-sizing: border-box;
}

nav a:hover {
    transform: scale(1.1);  /* Slightly enlarge the link when hovered */
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #3498db;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.homeTitle {
    font-size: 3rem;
    color: #fff;
    text-align: center;
    font-weight: bold;
    user-select: none;
    margin-top: 40px;
    border-bottom: 3px solid #3498db;  /* Add a blue underline for style */
    padding-bottom: 10px;  /* Padding below the text to make the underline visible */
    transition: all 0.3s ease;  /* Smooth transition for hover effect */
}

.homeTitle:hover{
    color: #3498db;  /* Change the text color to blue when hovered */
    transform: scale(1.05);  /* Slightly enlarge the title when hovered */
}

.homeText {
    font-size: 1.2rem;
    color: white;
    text-align: center;
    max-width: 80%;
    line-height: 1.6;
    margin: 20px auto;
}

.homeButton a {
    text-decoration: none; /* Removes underline */
    color: white; /* Text color for the link */
    display: inline-block; /* Allows padding and margin to work */
    padding: 10px 20px; /* Adds padding to make it look like a button */
    background-color: #495b67; /* Background color */
    border-radius: 5px; /* Rounded corners */
    font-size: 1.1rem; /* Adjust the text size */
    font-weight: bold; /* Makes the text bold */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth hover transition */
    user-select: none;
    /* No initial transform here to avoid override */
}

.homeButton a:hover {
    background-color: #2980b9; /* Darker color on hover */
    transform: scale(1.1);  /* Slightly enlarge the title when hovered */
}

.snippetButton {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #ccc;
    background-color: #34495e;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    box-sizing: border-box;
    display: grid;
    place-items: center;  /* centers the content both vertically and horizontally */
    transition: transform 0.3s ease; /* Smooth transition for transform */
}

.snippetButton:hover {
    transform: scale(1.1); /* Slightly enlarge the button when hovered */
}


.homeButton a:focus,
.homeButton a:active {
    outline: none; /* Removes default focus outline */
    background-color: #2980b9; /* Keeps the color when clicked or focused */
}


#game-container {
    width: 100%;
    max-width: 1400px;
    margin-top: 50px;
    text-align: center;
}

#snippetContainer {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 2rem 2vw;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10rem;
    justify-items: center; /* centers each grid item */
}

/* Update snippetButton to use flex for full container usage */
.snippetButton {
    width: 150%;
    aspect-ratio: 1;
    border: 1px solid #ccc;
    background-color: #34495e;
    color: white;
    font-size: 15px;
    font-weight: bold;
    border-radius: 5px;
    box-sizing: border-box;
    display: flex;               /* change from grid to flex */
    align-items: center;         /* center content vertically */
    justify-content: center;     /* center content horizontally */
    transition: transform 0.3s ease;
    overflow: hidden;            /* prevent overflow issues */
}

/* Remove default margins/padding and ensure the pre block fills the button */
.snippetButton pre {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* keep parent's background */
    box-sizing: border-box;
}

/* Make the code element take full space and center its text */
.snippetButton code {
    display: block;
    width: 100%;
    height: 100%;
    text-align: left;
    white-space: pre-wrap;
    box-sizing: border-box;
}



/* New style for Skip button */
#skipButton {
    padding: 10px 20px;
    margin-top: 20px;
    border: none;
    background-color: #3498db;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.creditsPage {
    font-family: 'Fira Sans', sans-serif;  /* Using a clean, modern sans-serif font */
    font-size: 3rem;  /* Large title size */
    font-weight: bold;  /* Make the text bold */
    color: white;  /* Dark, rich color for text */
    text-align: center;  /* Center the title */
    margin-top: 50px;  /* Space above the title */
    letter-spacing: 2px;  /* Slight letter spacing for a modern look */
    text-transform: uppercase;  /* Make the title uppercase for emphasis */
    border-bottom: 3px solid #3498db;  /* Add a blue underline for style */
    padding-bottom: 10px;  /* Padding below the text to make the underline visible */
    transition: all 0.3s ease;  /* Smooth transition for hover effect */
    text-decoration: none;
    user-select: none;
}

.creditsPage:hover {
    color: #3498db;  /* Change the text color to blue when hovered */
    transform: scale(1.05);  /* Slightly enlarge the title when hovered */
}

/* Hide the default scrollbar */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
  }
  
  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }
  
  /* Custom scrollbar track */
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  /* Custom scrollbar thumb */
  ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.2s ease;
  }
  
  /* Thumb hover effect */
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
  }
  
  /* Smooth scroll behavior */
  html {
    scroll-behavior: smooth;
  }
  
  /* Prevent default scrollbar */
  body {
    overflow: hidden;
    overflow-y: scroll;
  }
  
/* About Us Container */
.about-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px;
}   

/* Styling for Individual Members */
.sanjey, .yipeng, .googlegemini {
    background-color: #10162c;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    user-select: none;
}

/* Profile Images */
.sanjey img, .yipeng img, .googlegemini img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    user-select: none;
}

/* Individual Styles */
.sanjey {
    border-left: 5px solid #4F3727;
}

.yipeng {
    border-left: 5px solid yellow;
}

.googlegemini{
    border-left: 5px solid purple; /*Teal color, or any color you desire*/
}

/* Hover Effect */
.sanjey:hover, .yipeng:hover, .googlegemini:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Typography */
.sanjey h2, .yipeng h2, .googlegemini h2 {
    font-size: 1.5rem;
    color: #ffffff;
}

.sanjey p, .yipeng p, .googlegemini p {
    font-size: 1rem;
    color: white;
    line-height: 1.6;
}

/* Links */
.sanjey a, .yipeng a, .googlegemini a {
    display: inline-block;
    margin-top: 10px;
    color: #79c7fc;
    text-decoration: none; /*Removed underline by default*/
    font-weight: bold;
    transition: color 0.2s, transform 0.2s;
    position: relative;
}

.sanjey a:hover, .yipeng a:hover, .googlegemini a:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* Underline animation */
.sanjey a::after, .yipeng a::after, .googlegemini a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.sanjey a:hover::after, .yipeng a:hover::after, .googlegemini a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
    }
}

.sob-story {
    background-color: #10162c;
    border-radius: 10px;
    padding: 20px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.sob-story h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.sob-story p {
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    text-align: justify;
    margin-bottom: 15px;
}

.sob-story p:last-child {
    font-style: italic;
    color: #fffafa;
}

/* Image and Text Section - Improved Layout */
.image-text-section {
    display: flex;
    align-items: center;
    gap: px;
    margin: 30px 0;
    padding: 20px;
    background-color: #34475f; /* Dark blue background */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    user-select: none;
}

.image-text-section img {
    width: 40%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    display: block;
    margin: 0 auto;

}

.description {
    width: 60%;
}

.description h2 {
    margin: 0;
    color: #00a8cc; /* Cyan blue title */
    font-size: 1.8em;
}

.description p {
    color: #dcdcdc; /* Light gray text */
    font-size: 1.1em;
    line-height: 1.6;
}

/* Subsections - Side by Side */
.sub-sections {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
}

.sub-section {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.sub-section h3 {
    margin: 0;
    color: #00a8cc; /* Cyan blue for subsection titles */
}

.sub-section p {
    margin-top: 10px;
    color: #dcdcdc;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Individual Section Background Colors */
.sub-section:nth-child(1) {
    background: #3d663d; /* Dark Green */
}

.sub-section:nth-child(2) {
    background: #3e5066; /* Dark Blue */
}

.sub-section:nth-child(3) {
    background: #813636; /* Dark Maroon */
}
