/* General Styling */
body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-color: #ffffff; /* Bright yellow background */
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: auto;
    padding: 20px;
}

h1, h2, h3 {
    color: #FF4081; /* Bold pink for headings */
    text-align: center;
    font-weight: bold;
}

/* Splash Screen */
.splash {
    position: relative;
    height: 100vh;
    background: url('../../assets/love next door/gameplay_doru.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.5s ease-out;
}

.splash-content h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
}

/* Fade-Out Effect */
.splash.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

/* Introduction Section */
.introduction {
    background: #FFB6C1; /* Soft pink */
    padding: 50px 0;
    text-align: center;
    border-radius: 15px;
}

/* Contributions Section */
.contributions {
    padding: 40px;
    background: #ffffff; /* Light orange */
    border-radius: 15px;
    margin: 20px auto;
    text-align: center;
}

.contributions h3 {
    color: #FF4081;
}

/* Fixing Split Layout */
.split-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Ensuring Text Content Takes Space */
.intro-text-content {
    flex: 1;
    min-width: 40%;
    max-width: 50%;
    padding: 20px;
}

/* Ensuring Images Stay in a Grid and Scale Properly */
.intro-image-content {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 10px;
    justify-content: center;
}

.intro-image-content img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
}


/* Updated Image Grid Layout*/
.bg-image-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.bg-image-content img {
    width: 100%; /* Ensures images shrink proportionally */
    height: auto; /* Maintains aspect ratio */
    max-width: 400px; /* Prevents images from getting too large */
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
}

.image-grid img {
    width: 100%;
    border-radius: 10px;
}

/* Navigation Buttons */
.navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 50px 0;
}

.nav-button {
    text-decoration: none;
    background: #444;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-button:hover {
    background: #777;
}

/* === Back to Main Page Button === */
/* === Navigation Buttons === */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #222;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navigation-buttons a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: #444;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.navigation-buttons a:hover {
    background-color: #555;
    transform: scale(1.05);
}

/* Styling for individual buttons */
.main-page-button {
    flex-grow: 1;
    text-align: center;
}

.prev-project-button,
.next-project-button {
    flex-grow: 0;
}

@media (max-width: 768px) {
    .navigation-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .navigation-buttons a {
        width: 100%; /* Buttons fill width on smaller screens */
        text-align: center;
    }
}