/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body */
body {
    display: flex;
    height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Container */
.container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow-y: hidden;
}

/* Sidebar */
/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #111;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    height: 100vh;	
}
/* CSS for logo with scaling grid */
.logo {
    display: grid;
    justify-items: center;
    align-items: center;
    width: 100%; /* Full width */
    height: auto; /* Adjust height based on image aspect ratio */
}

.logo img {
    width: 100%; /* Scales image to fit the container */
    max-width: 200px; /* Maximum width of the image */
    height: auto; /* Maintains aspect ratio */
    object-fit: contain; /* Ensures the whole image fits without distortion */
}

/* Logo */
.sidebar h1.logo {
    text-align: center;
    font-size: 60px;
    background: linear-gradient(to bottom, #FF0000, #6E65E8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Navigation */
nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows menu to fill space */
    justify-content: space-evenly; /* Distributes items evenly */
}

.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 10px;
    background: #111;
    padding: 10px;
    text-align: center;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    font-size: 25px;
    font-weight: bold;
    padding: 1px 5px; /* Reduced height */
    border-radius: 15px;
    transition: background 0.3s;
}
.menu-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.menu-item:hover {
    background: #333;
}
.menu-item.active {
    background-color: #222;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #FF00B2, #3FFFDF);
    color: #000;
    font-size: 22px;
    line-height: 1.8;
}

.main-content h1 {
    font-size: 36px;
    font-weight: bold;
    color: #000;
}

.main-content h2 {
    font-size: 26px;
    font-weight: bold;
    margin-top: 20px;
}

.main-content p {
    margin-bottom: 15px;
    text-align: justify;
}
/* Additional Settings Content */
.color-picker, .language-picker, .fullscreen-toggle {
    text-align: center;
    background: #c9c9c9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.color-picker h2, .language-picker h2, .fullscreen-toggle h2 {
    color: #FF00B2;
    margin-bottom: 20px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    justify-items: center;
}

.color-square {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.color-square:hover {
    transform: scale(1.1);
}

.language-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    gap: 10px;
    justify-content: center;
}

.language-option img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.language-option img:hover {
    transform: scale(1.1);
}
/* Top Bar for Mobile */
.top-bar {
    display: none;
    justify-content: space-between;
    align-items: center;
    background-color: #111;
    color: white;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.top-icon {
    font-size: 28px;
    text-decoration: none;
    color: white;
    cursor: pointer;
}

.top-title {
    font-size: 24px;
    font-weight: bold;
}

/* Slide-in Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    width: 70%;
    background: #111;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    z-index: 998;
    border-radius: 0 0 0 15px;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    padding: 10px;
    display: block;
}

.mobile-menu.active {
    display: flex;
}

/* Mobile Layout Adjustments */
@media screen and (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .top-bar {
        display: flex;
    }

    .container {
        flex-direction: column;
        padding-top: 60px;
    }

    .main-content {
        padding: 10px;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
        padding: 0;
    }

    .movie-card a img {
        width: 100%;
        height: auto;
    }

    .ad-banner {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 10px 0;
    }
}
