/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&family=Oswald:wght@400;600&family=Poppins:wght@300;500&display=swap');

/* General Page Styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    animation: fadeIn 1s ease-in-out;
}

/* Smooth Page Load Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header Styling */
header {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Logo Styling */
.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.logo {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

/* Navigation Styling */
nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

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

nav ul li a {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #ffcc00;
    transform: scale(1.1);
}

/* Background Styling for Different Pages */
.xbox-background {
    background-image: url('../images/Xbox-Green-Background-Wallpaper.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.wii-background {
    background-image: url('../images/wii-wallpaper.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.ps3-background {
    background-image: url('../images/ps3-background.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

/* Improved Overview Section */
.overview-box {
    max-width: 850px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Overview Section Text */
.overview-box p {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Console Highlights Grid */
.grid-container {
    display: flex;
    gap: 35px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Console Highlight Box */
.grid-item {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.grid-item:hover {
    transform: scale(1.05);
}

/* Floating Content Sections */
.floating-box {
    max-width: 750px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.floating-box:hover {
    transform: scale(1.05);
}

/* Console Images */
.console-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    border-radius: 8px;
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px;
}

/* Gallery Section */
.gallery-box {
    max-width: 850px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Thumbnail Grid */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Gallery Items */
.gallery-item {
    width: 200px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.gallery-item img:hover {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 800px) {
    .gallery-container {
        justify-content: center;
    }

    .gallery-item {
        width: 45%;
    }
}
