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

html, body {
    height: 100%;
    overflow: hidden; /* Prevent scrolling */
    font-size: 16px; /* Base font size for scaling */
}

/* Font Settings */
@font-face {
    font-family: 'dreamnight';
    src: url('fonts/DreamNight.ttf') format('truetype');
}

.sidebar .mobile {
    display: none; /* Hide mobile nav on desktop */
}
body {
    font-family: 'dreamnight';
    background-color: #ececec;
    letter-spacing: 1px;
}

/* Main Container to hold sidebar and content */
.container {
    display: flex;
    height: 100vh; /* Full viewport height */
    width: 100vw;  /* Full viewport width */
    background-image: url('images/background.png');
    background-size: cover;
}

/* Sidebar styling */
.sidebar {
    width: 25%;
    background-image: url('images/tower.png');
    background-size: contain; /* Ensure it covers the sidebar */
    background-repeat: no-repeat;
    background-position: top center; /* Adjust positioning */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px; /* Adjust padding */
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0; /* Removed margin */
    margin-top: 50%;
}

.sidebar ul li {
    margin: -10px 0; /* Spacing between items */
}

.sidebar ul li a img {
    width: 8.7vw; /* Responsive size for sidebar images */
    height: auto;
}

.sidebar ul li a img:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

/* Main Content Grid */
.grid-container {
    flex: 1; /* Takes up the remaining space next to the sidebar */
    display: grid;
    grid-template-columns: 2fr 1fr; /* One column for Updates/About, one for Fanart */
    grid-template-rows: auto auto;
    grid-gap: 10px;
    background-image: url('images/content-bg.png');
    background-size: cover; /* Ensure it covers the whole area */
    background-repeat: no-repeat;
    background-position: center; /* Center the background image */
    padding: 20px;
    margin-bottom: 5%;
}

.grid-item {
    padding: 10px;
    overflow: hidden; /* Prevent overflow */
}

.header {
    grid-column: span 2; /* Spans both columns */
    text-align: center;
}

.logo img {
    width: 25vw; /* Responsive size for the logo */
    height: auto;
}

.updates, .about {
    grid-column: 1; /* Place Updates and About in the first column */
    text-align: center;
}

.terms {
    text-align: center;
}

.fanart {
    grid-column: 2; /* Place Fanart in the second column */
    display: grid;
    text-align: center;
    grid-template-rows: 1fr 2fr; /* Two rows: text row 1, image row 2 */
}

.fanart .text {
    grid-row: 1; /* Text in the first row */
    display: flex;
    align-items: flex-start; /* Align text at the top */
    justify-content: center; /* Center text horizontally */
    padding: 10px; /* Add padding for better spacing */
    text-align: center;
}

.fanart .image {
    grid-row: 2; /* Image in the second row */
    display: flex;
    align-items: center; /* Center image vertically */
    justify-content: center; /* Center image horizontally */
    height: 100%; /* Ensure image container takes full height of its grid row */
}

.fanart img {
    max-width: 100%;
    height: auto;
}

/* Social Media Links */
footer {
    width: 100%;
    color: #FFFFFF;
    text-align: center;
    padding: 20px; /* Reduced padding for footer */
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: transparent; /* Ensure no background color */
}

footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.5rem; /* Font size for social media links */
}

footer a:hover {
    text-decoration: underline;
}

/* New Sections */
.nash, .anthony, .lavender, .odie, .jordan, .nicky {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.nash h2, .anthony h2, .lavender h2, .odie h2, .jordan h2, .nicky h2 {
    font-size: 4vw;
}

.nash p, .anthony p, .lavender p, .odie p, .jordan p, .nicky p {
    font-size: 2.5vw;
}

.terms-container {
    height: calc(100vh - 60px); /* Adjust for fixed footer height if necessary */
    width: 100vw; 
    overflow-y: scroll; /* Enable vertical scrolling */
    background-image: url('images/content-bg.png');
    background-size: contain; /* Ensure it covers the whole area */
    background-repeat: no-repeat;
    background-position: center; /* Center the background image */
    padding: 220px;
    box-sizing: border-box; /* Include padding in height/width calculation */
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        background-position: center; /* Adjust based on screen size */
    }

    .logo img {
        width: 50vw; /* Adjust logo size on smaller screens */
    }

    .updates h2, .about h2, .fanart h2 {
        font-size: 1.8rem; /* Larger font size on smaller screens */
    }

    .updates p, .about p {
        font-size: 1rem; /* Larger font size on smaller screens */
    }

    .nash h2, .anthony h2, .lavender h2, .odie h2, .jordan h2, .nicky h2 {
        font-size: 2rem; /* Adjust font size for headings on smaller screens */
    }

    .nash p, .anthony p, .lavender p, .odie p, .jordan p, .nicky p {
        font-size: 1.2rem; /* Adjust font size for paragraphs on smaller screens */
    }
}
