/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and background */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7; /* Pastel background */
    display: flex;
    justify-content: center;
    align-items: center; /* Center everything vertically */
    flex-direction: column;
    padding: 20px;
    min-height: 100vh;
    background: #ffa8c5; /* Light pink background for the whole page */
    text-align: center; /* Center text inside the containers */
    scroll-behavior: smooth;
    ;
}



/* Navigation Bar */
header {
    width: 100%;
    background-color: #ff97ba; /* Soft pastel pink navbar */
    padding: 15px 0; /* Thicker navbar */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    text-align: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

header nav a {
    color: rgb(255, 184, 207);
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50%
    transition: background-color 0.3s ease;
}

header nav a:hover {
    background-color: #f48fb1;
}

/* Spacer for the navbar */
.spacer {
    height: 60px;
}

/* Main container for boxes */
.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 950px; /* Reduced max-width for smaller boxes */
    padding: 30px;
    margin-top: 80px; /* Added margin to avoid overlap with navbar */
    align-items: center; /* Center all boxes */
    justify-content: center; /* Center all content vertically */
}

/* General Box Styles */
.box {
    width: 100%;
    max-width: 900px; /* Reduced box width */
    background-color: #ffd2e1;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    scroll-behavior: smooth;
}

/* Box Titles */
.box h2 {
    font-size: 30px;
    margin-bottom: 15px;
    color: #ff80ab; /* Title color for aesthetic */
}

/* Profile Section (Box 1) */
.box.profile {
    display: flex;
    justify-content: flex-start; /* Aligns content to left */
    align-items: center;
    gap: 20px; /* Added gap for spacing */
}

.profile img {
    width: 140px; /* Smaller profile picture */
    height: 140px; /* Maintain aspect ratio */

    object-fit: cover;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.profile .info {
    max-width: 500px;
    text-align: left;
}

.profile .info h1 {
    font-size: 36px; /* Smaller title */
    color: #ff9fbf;
}

.profile .info p {
    font-size: 16px; /* Adjusted for smaller text */
    color: #7f7f7f;
}

/* Navigation Buttons for Box 2 */
.box.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Reduced gap */
}

.box.navigation-buttons a {
    background-color: #ff80ab;
    color: white;   
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
    transition: background-color 0.3s ease;
}

.box.navigation-buttons a:hover {
    background-color: #f48fb1;
}

/* Box 3 - Favourite Films */
.box.favourite-films {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; /* Reduced gap between posters */
}

.box.favourite-films .poster {
    width: 100%;
    height: 280px; /* Reduced poster size */
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.box.favourite-films .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Box 4 - Favourite Games */
.box.favourite-games {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; /* Reduced gap between posters */
}

.box.favourite-games .poster {
    width: 100%;
    height: 280px; /* Reduced poster size */
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.box.favourite-games .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Box 5 - My Subjects */
.box.subjects {
    background-color: #ffd2e1;
    color: #7f7f7f;
    font-size: 18px;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .box.favourite-films, .box.favourite-games {
        grid-template-columns: repeat(3, 1fr); /* Adjust to 3 columns for tablets */
    }
}

@media (max-width: 768px) {
    .box.favourite-films, .box.favourite-games {
        grid-template-columns: 1fr; /* Stack posters in one column for small screens */
    }

    .box.profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile .info {
        padding-left: 0;
        max-width: none;
    }

    .box.navigation-buttons {
        flex-direction: column;
    }

    .box.navigation-buttons a {
        margin-bottom: 10px;
    }
}









