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

html, body {
    height: 100%; /* Ensure the body takes up the full height */
    margin: 0; /* Remove default margin */
}

body {
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack children vertically */
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
    background-color: #000000FF;
    color: white;
}

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

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-thumb {
    background-color: rgb(139, 139, 139);
    border-radius: 5px;
    border: 3px solid #24262b;
}

.container {
    max-width: 1170px;
    margin: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

ul {
    list-style: none;
}

.footer {
    background-color: #333; /* Footer background color */
    color: white; /* Footer text color */
    padding: 20px; /* Footer padding */
    text-align: center; /* Center text in footer */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.footer-section {
    flex: 1;
    margin: 0 10px;
}

.footer-section h4 {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section li {
    margin: 5px 0;
}

.footer-col {
    width: 25%;
    padding: 0 15px;
}

.footer-col h4 {
    font-size: 18px;
    color: #ffffff;
    text-transform: capitalize;
    margin-bottom: 35px;
    font-weight: 500;
    position: relative;
}

.footer-col ul li:not(:last-child) {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 16px;
    text-transform: capitalize;
    color: #ffffff;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 8px;
}

.footer-col .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.5s ease;
}

.footer-col .social-links a:hover {
    color: #24262b;
    background-color: #ffffff;
}

.footer-col img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@media(max-width: 767px) {
    .footer-col {
        width: 50%;
        margin-bottom: 30px;
    }
}

@media(max-width: 574px) {
    .footer-col {
        width: 100%;
    }
}

.news-section {
    padding: 20px;
    background-color: #383838;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.news-item {
    position: relative;
    color: white;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item h3 {
    position: absolute;
    top: 10px;
    left: 10px;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

.news-item p {
    position: absolute;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item .details {
    bottom: 10px;
    left: 10px;
}

.news-item .date {
    bottom: 10px;
    right: 10px;
}

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

.news-item:hover p {
    opacity: 1;
}

.news-item.featured {
    flex: 75%;
    height: 400px;
}

.news-item.small {
    flex: 25%;
    height: 200px;
}

@media (max-width: 768px) {
    .news-item.featured {
        flex: 0 0 100%;
    }
    .news-item.small {
        flex: 0 0 50%;
    }
}

@media (max-width: 480px) {
    .news-item.small {
        flex: 0 0 100%;
    }
}

header {
    font-family: 'Bebas Neue', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 30px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: black;
}

.menu-button {
    display: none; /* Hide the button by default */
    font-size: 24px; /* Adjust size as needed */
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 20px;
}

/* Navigation Styles */
nav {
    display: flex; /* Default display for larger screens */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 4px 7px;
    border-radius: 25px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    background-color: #e9ecef;
}

nav a i {
    margin-right: 5px;
    border-radius: 50%; 
    padding: 4px;
    background-color: #ffffff; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); 
}

nav a:hover {
    background-color: #d3d3d3;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .menu-button {
        display: block; /* Show the button on small screens */
    }

    nav {
        display: none; /* Hide the nav by default */
        flex-direction: column; /* Stack items vertically */
        position: absolute; /* Position it absolutely */
        top: 60px; /* Adjust based on header height */
        left: 0;
        right: 0;
        background-color: #f8f9fa; /* Background color for the dropdown */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000; /* Ensure it appears above other content */
    }

    nav.active {
        display: flex; /* Show the nav when active */
    }

    nav ul {
        flex-direction: column; /* Stack items vertically */
        width: 100%; /* Full width */
    }

    nav a {
        padding: 10px; /* Adjust padding for better touch targets */
        text-align: center; /* Center text */
    }
}

.open-account {
    background-color: #28a745;
    color: white;
    padding: 5px 20px;
    border-radius: 25px; 
    text-decoration: none;
    transition: background-color 0.3s;
}

.open-account:hover {
    background-color: #218838;
}

@media screen and (max-width: 768px) {
    header {
        align-items: flex-start; 
        padding: 10px;
    }

    .logo {
        font-size: 25px; 
    }

    nav ul {
        flex-direction: column; 
        width: 100%; 
        padding: 5%;
    }

    nav a {
        width: 100%; 
        padding: 10px; 
        text-align: center;
    }

    .open-account {
        width: 100%; 
        margin-top: 10px; 
    }
}

@media screen and (max-width: 480px) {
    .logo {
        font-size: 30px; 
    }

    nav a {
        padding: 8px;
    }
}

.comment-section {
    max-width: 100%;
    margin: 0;
    padding: 20px 20px;
}

.comment-form {
    background-color: #111;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.comment-form h2 {
    font-size: 24px; 
    margin-bottom: 20px; 
    color: white; 
}

.form-row {
    display: flex; /* Flexbox for layout */
    gap: 20px; /* Space between form fields */
    margin-bottom: 20px; /* Space below row */
}

.form-group {
    flex: 1; /* Equal space for each form group */
}

input[type="text"],
textarea {
    width: 100%; /* Full width for inputs */
    padding: 12px; /* Padding for inputs */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    background-color: #1f2937; /* Background color */
    color: white; /* Text color */
    font-size: 16px; /* Font size */
    box-sizing: border-box; /* Include padding in width */
}

textarea {
    height: 150px; /* Height for textarea */
    resize: vertical; /* Allow vertical resizing */
}

.submit-button {
    background-color: #4F46E5; /* Background color for button */
    color: white; /* Text color for button */
    padding: 12px 30px; /* Padding for button */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    font-size: 16px; /* Font size for button */
    transition: background-color 0.3s; /* Transition for hover effect */
}

.submit-button:hover {
    background-color: #4338CA; /* Background color on hover */
}

/* Comments List Styling */
.comments-list {
    margin-top: 40px; /* Space above comments list */
}

.comment-card {
    background-color: #111827; /* Background color for comment card */
    padding: 20px; /* Padding for comment card */
    border-radius: 10px; /* Rounded corners */
    margin-bottom: 20px; /* Space below comment card */
}

.comment-header {
    display: flex; /* Flexbox for layout */
    justify-content: space-between; /* Space between elements */
    margin-bottom: 10px; /* Space below header */
}

.commenter-name {
    font-weight: bold; /* Bold text for name */
    color: #E5E7EB; /* Text color */
}

.comment-date {
    color: #9CA3AF; /* Text color for date */
    font-size: 14px; /* Font size for date */
}

.comment-content {
    color: #D1D5DB; /* Text color for comment */
    line-height: 1.5; /* Line height for readability */
}

.artikel-section {
    flex: 1; /* Allow this section to grow and fill available space */
    padding: 20px 10vw;
    background-color: #000000FF;
    max-width: 1200px;
    margin: 0 auto;
}

.artikel-heading {
    font-size: 32px;
    color: white;
    margin-bottom: 20px;
    text-align: left;
}

.artikel-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.artikel-card {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.artikel-card:hover {
    transform: translateY(-5px);
}

.artikel-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.artikel-content {
    padding: 15px;
}

.artikel-date {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.artikel-excerpt {
    color: #ccc;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.details-button {
    background-color: #E81A1AFF; /* Background color */
    color: white; /* Text color */
    padding: clamp(10px, 1.5vw, 12px) clamp(20px, 3vw, 30px); /* Responsive padding */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    font-size: clamp(14px, 1.5vw, 16px); /* Responsive font size */
    font-weight: 500; /* Font weight */
    transition: background-color 0.3s; /* Transition for hover effect */
    text-decoration: none; /* No underline */
}

.details-button:hover {
    background-color: #530A0AFF; /* Background color on hover */
}

@media screen and (max-width: 992px) {
    .artikel-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .artikel-container {
        grid-template-columns: 1fr;
    }
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.popup-content {
    position: relative;
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    color: white;
}

.close-popup {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #888;
}

.close-popup:hover {
    color: white;
}

.popup-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 20px;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-date {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.popup-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.popup-detail {
    line-height: 1.6;
    color: #ccc;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 5vw;
    min-height: 100vh;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.game-container img {
    max-width: 100%;
    min-height: 10px;
}
.game-title {
    font-size: clamp(32px, 6vw, 64px);
    font-weight: bold;
    margin-bottom: 10px;
    width: 100%;
}
.game-subtitle {
    font-size: clamp(20px, 3vw, 32px);
    margin-bottom: 20px;
    opacity: 0.9;
    width: 100%;
}
.game-description {
    font-size: clamp(16px, 2vw, 18px);
    max-width: 600px;
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.8;
    width: 100%;
}
.download-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}
.download-button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.download-button:hover {
    background-color: rgb(39, 120, 17);
}

@media screen and (max-width: 768px) {
    .game-container {
        padding: 20px;
    }
}

.baca-selengkapnya {
    display: inline-block;
    padding: 8px 16px;
    background-color: #666;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.baca-selengkapnya:hover {
    background-color: #888;
}

.view-all-container {
    text-align: right;
}

.view-all-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #202020FF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.view-all-button:hover {
    background-color: #CC0E00FF;
}

@media screen and (max-width: 992px) {
    .artikel-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .artikel-container {
        grid-template-columns: 1fr;
    }
}

.galeri-section {
    padding: 20px 10vw;
    background-color: #000000FF;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.galeri-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 -20px;
}

.galeri-container {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 50px;
    width: 100%;
}

.galeri-card {
    flex: 0 0 calc(33.333% - 14px); /* Match the 3-column layout of articles */
    aspect-ratio: 16/9; /* Match article image aspect ratio */
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.galeri-card:hover {
    transform: scale(1.05);
}

.galeri-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 2;
    flex-shrink: 0;
    position: absolute;
}

.prev-btn {
    left: -10px;
}

.next-btn {
    right: -10px;
}

.slider-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 992px) {
    .galeri-card {
        flex: 0 0 calc(50% - 10px); /* Match the 2-column layout of articles */
    }
}

@media screen and (max-width: 768px) {
    .galeri-section {
        padding: 20px;
    }
    
    .galeri-card {
        flex: 0 0 calc(100% - 40px); /* Full width for gallery cards */
    }

    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Comments Section Styling */
.comment-section {
    width: 100%;
    padding: 20px 5vw;
    background-color: #000000FF;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comment-form {
    background-color: #111;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    width: 100%;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #1f2937;
    color: white;
    font-size: 16px;
    box-sizing: border-box;
}

textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: #E81A1AFF;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #530A0AFF;
}

.comments-list {
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
}

.comment-card {
    background-color: #111827;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.commenter-name {
    font-weight: bold;
    color: #E5E7EB;
}

.comment-date {
    color: #9CA3AF;
    font-size: 14px;
}

.comment-content {
    color: #D1D5DB;
    line-height: 1.5;
}

.pembuat-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #111;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.pembuat {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.pembuat img {
    border-radius: 10%;
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    margin-right: 20px;
    object-fit: cover;
}

.pembuat-info {
    flex: 1;
}

.pembuat-info h4 {
    margin: 0;
    font-size: 24px;
}

.pembuat-info p {
    margin: 5px 0;
    line-height: 1.5;
}

.pembuat-info ul {
    list-style-type: none;
    padding: 0;
}

.pembuat-info ul li {
    margin: 5px 0;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    .footer-col {
        width: 100%; /* Stack footer columns on small screens */
        margin-bottom: 20px; /* Add margin for spacing */
    }

    .news-container,
    .artikel-container {
        flex-direction: column; /* Stack items vertically */
    }

    .news-item,
    .artikel-card {
        width: 100%; /* Full width for items */
        margin-bottom: 20px; /* Add margin for spacing */
    }

    .galeri-card {
        flex: 0 0 calc(100% - 40px); /* Full width for gallery cards */
    }

    .game-container {
        padding: 20px; /* Adjust padding for smaller screens */
    }

    .comment-form {
        width: 100%; /* Full width for comment form */
        padding: 15px; /* Adjust padding */
    }

    .submit-button {
        width: 100%; /* Full width for buttons */
    }

    .artikel-container {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .popup-content {
        width: 90%; /* Adjust popup width */
    }

    .pembuat-container {
        padding: 15px; /* Adjust padding */
    }

    .pembuat img {
        max-height: 200px; /* Limit image height */
    }
}

@media screen and (max-width: 480px) {
    .game-title {
        font-size: 24px; /* Smaller title font size */
    }

    .game-subtitle {
        font-size: 18px; /* Smaller subtitle font size */
    }

    .game-description {
        font-size: 14px; /* Smaller description font size */
    }

    .details-button,
    .download-button,
    .submit-button {
        padding: 10px; /* Adjust button padding */
        font-size: 14px; /* Smaller button font size */
    }

    .comment-form h2 {
        font-size: 20px; /* Smaller heading font size */
    }

    .artikel-heading {
        font-size: 28px; /* Smaller heading font size */
    }
}

.pre-order-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #E81A1A;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.pre-order-button:hover {
    background-color: #CC0E00;
}