html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* --- General Styles --- */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #495057;
    margin: 0;
    background-image: url('/Images/RBLXNewsBackground.jpg'); /* Placeholder */
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header Styles --- */
.header-section {
    background-color: #0a161f;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid #e53935;
    margin-bottom: 40px;
    background-image: url('/images/RBLXNewsHeaderBackground.jpg'); /* Placeholder */
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    /* Overlay */
    .header-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;
        border-radius: 15px;
    }

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.header-logo-title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.header-logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    background-image: url('/images/RBLXNewsTransparent.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.header-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    color: white;
}

.header-section p.tagline {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-style: italic;
    color: white;
}

.header-info {
    display: flex;
    justify-content: center; /* Horizontal centering for larger screens */
    align-items: center; /* Vertical centering */
    gap: 30px; /* Space between items on larger screens */
    font-size: 1rem;
    width: 100%; /* Full width */
}

/* Mobile Styles */
@media (max-width: 1030px) {
    .header-info {
        flex-direction: column; /* Stack items vertically */
        gap: 10px; /* Less space between items on mobile */
    }

    .header-info-item {
        text-align: center; /* Center text horizontally on mobile */
        width: 100%; /* Ensure items take full width */
    }
}

.header-info-item {
    display: flex; /* Use flexbox for alignment within each item */
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal Centering */
}

.header-info strong {
    margin-right: 5px;
}


/* X Link Styles */
.twitter-link {
    color: #FFFFFF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

    .twitter-link:hover {
        color: #e7e7e7;
    }

    .twitter-link i {
        font-size: 1.2rem;
    }
/* --- News Item Styles --- */
.news-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 25px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

    .news-item:hover {
        transform: translateY(-7px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

.news-link {
    color: #333;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

    .news-link:hover {
        color: #e53935;
    }

.news-headline {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* --- Section Headers --- */
.section-header-container {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 15px;
    height: 180px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

    .section-header-container h2 {
        position: relative;
        z-index: 2;
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 15px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        color: #e53935;
    }

    .section-header-container p {
        position: relative;
        z-index: 2;
        color: white;
        font-size: 1.2rem;
        line-height: 1.5;
    }

    /* --- Gradient Overlay --- */
    .section-header-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
        z-index: 1;
        border-radius: 15px;
    }

/* --- Individual Header Backgrounds --- */
#latest-news-header {
    background-image: url('/images/LatestNewsBackground.jpg'); /* Placeholder */
}

#trending-games-header {
    background-image: url('/images/TrendingGamesBackground.jpg');
}

#upcoming-games-header {
    background-image: url('/images/UpcomingGamesBackground.jpg'); /* Placeholder */
}

#undiscovered-games-header {
    background-image: url('/images/UndiscoveredGamesBackground.jpg');
}

#poll-header {
    background-image: url('/images/PollBackground.jpg');
}

#award-header {
    background-image: url('/images/AwardBackground.jpg'); /* Placeholder */
}

/* --- Modal Styles --- */
#newsModal .modal-content {
    background-color: #343a40;
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#newsModal .modal-header,
#newsModal .modal-footer {
    border-color: rgba(255, 255, 255, 0.2);
    padding: 20px 25px;
}

#newsModal .modal-title {
    font-size: 1.7rem;
    font-weight: 700;
}

#newsModal .modal-body {
    padding: 25px;
    color: #f8f9fa;
}

#newsModal h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

#newsModal p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- Button Styles --- */
.btn-outline-light {
    color: #fff;
    border-color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

    .btn-outline-light:hover {
        color: #343a40;
        background-color: #fff;
        border-color: #fff;
    }


/* Poll Styles */
.poll-option, .gameAwardNominees-option {
    width: 100%;
    margin-bottom: 10px;
    padding: 15px 25px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    color: #333;
    border: 2px solid #333;
    background-color: transparent;
    cursor: pointer;
    font-weight: 500;
}

    .poll-option:hover, .gameAwardNominees-option:hover {
        color: #fff;
        background-color: #333;
        border-color: #333;
    }


.poll-result, .gameAwardNominees-result {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s ease;
}

    .poll-result:hover, .gameAwardNominees-result:hover {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }


.poll-choice, .gameAwardNominees-choice {
    font-weight: bold;
    font-size: 1.05rem;
}

.poll-votes, .gameAwardNominees-votes {
    color: #6c757d;
    font-size: 0.95rem;
}

.total-votes-container {
    background-color: #e9ecef; /* Light gray background */
    border: 1px solid #ced4da; /* Subtle border */
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-votes-label {
    font-weight: bold;
    color: #495057; /* Darker text for contrast */
}

    .total-votes-label::after {
        content: ":";
    }

.total-votes-count {
    font-weight: bold;
    color: #212529;
    font-size: 1.2rem;
}


#poll-button-container p, #gameAwardNominees-button-container p {
    color: red;
    font-weight: bold;
}

/* --- Responsive Styles --- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}


/* Poll and Award Cards Layout */
.poll-award-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: space-between;
}

.poll-award-card {
    flex: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
    border: none;
}

    .poll-award-card .card-body {
        min-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

@media (max-width: 1030px) {
    .poll-award-container {
        flex-direction: column;
    }

    .poll-award-card {
        width: 100%;
    }

    .section-header-container {
        height: auto;
    }
}

.col {
    padding-right: 15px;
    padding-left: 15px;
}

.col-md-4 {
    flex: 0 0 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 25px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .card:hover {
        transform: translateY(-7px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-title {
    margin-bottom: 1rem;
}


.news-headline {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Stretched Link */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Game Thumbnail Styles */
.game-thumbnail {
    max-width: 100%; /* Ensure the image doesn't exceed its container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Rounded corners for the image */
    margin-bottom: 10px; /* Space between image and title */
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* Past Winners Modal Styles */
#pastWinnersModal .modal-content {
    background-color: #343a40;
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#pastWinnersModal .modal-header {
    border-color: rgba(255, 255, 255, 0.2);
    padding: 15px 25px; /* Reduced padding */
}

#pastWinnersModal .modal-title {
    font-size: 1.5rem; /* Reduced font size */
    font-weight: 700;
    color: #fff; /* Ensure title color is white */
}

#pastWinnersModal .modal-body {
    padding: 20px 25px; /* Reduced padding */
    color: #f8f9fa;
}

#pastWinnersModal .modal-footer {
    border-color: rgba(255, 255, 255, 0.2);
    padding: 10px 25px; /* Reduced padding */
}
/* Search bar styles */
#pastWinnersSearch {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #495057;
    box-sizing: border-box; /* Important for consistent sizing */
}

/* Past Winners List Styles */
#pastWinnersList {
    list-style: none; /* Remove default list styling */
    padding: 0;
    margin: 0;
}

    #pastWinnersList li {
        padding: 8px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
    }

        #pastWinnersList li:last-child {
            border-bottom: none; /* Remove border from last item */
        }


/* --- Custom Error Content Styles --- */
.error-container {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-top: 40px; /* Give space below header */
}

    .error-container h2 {
        color: #dc3545; /* Bootstrap's danger color for emphasis */
        font-size: 4rem; /* Make it large */
        font-weight: 700;
        margin-bottom: 15px;
    }

    .error-container p {
        font-size: 1.2rem;
        color: #495057; /* Standard text color */
        margin-bottom: 30px;
        line-height: 1.6;
    }

.error-icon {
    font-size: 5rem; /* Large icon */
    color: #ffc107; /* Bootstrap warning color */
    margin-bottom: 20px;
    display: block; /* Center it */
    margin-left: auto;
    margin-right: auto;
}

/* Footer Styles */
footer {
    background-color: #f8f9fa; /* Light gray background */
    border-top: 1px solid #dee2e6; /* Subtle border */
    padding: 20px 0; /* Top and bottom padding */
    text-align: center; /* Center-align content */
    font-size: 0.9em; /* Slightly smaller font size */
    color: #6c757d; /* Muted text color */
}

    footer a {
        color: #0d6efd; /* Bootstrap primary color for links */
        text-decoration: none; /* Remove underlines from links */
    }

        footer a:hover {
            text-decoration: underline; /* Add underline on hover */
        }

    footer .disclaimer {
        margin-top: 10px; /* Space above the disclaimer */
        font-size: 0.8em; /* Even smaller font for disclaimer */
    }
