/* CSS Reset */
body, html {
    margin: 0;
    padding: 0;
}

body, html {
    font-family: Arial, sans-serif; /* Use Arial as the default font */
    font-size: 18px;
    background-image: url('https://www.gameguides.space/images/design/background.jpg');
    background-repeat: repeat;
}

/* Media query for smaller screens */
@media screen and (max-width: 959px) {
    .logo-img {
        content: url('https://www.gameguides.space/images/design/logoshort.jpg'); /* Change the logo source for smaller screens */
    }
}

/* Default hyperlink styles */
a {
    color: #b41515; /* Red color for hyperlinks */
    text-decoration: none; /* Remove underline by default */
}

/* Hyperlink styles on hover */
a:hover {
    color: #FFD700; /* Change color to gold on hover */
}

/* Top bar styles */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #b41515;
    margin-bottom: 16px;
    border-bottom: 3px solid white;
    justify-content: center;
    display: flex;
    align-items: center; /* Center items vertically */
    z-index: 1000; /* Ensure the top bar appears above other content */
}

.links {
    margin-left: 16px; /* Adjust the margin to create space after the logo */
}

.links a {
    color: white;
    text-decoration: none;
    padding: 4px 8px; /* Adjust padding as needed */
    font-size: 24px;
    font-weight: bold;
}

.links a:hover {
    color: #FFD700;
}

.headshot-container {
    position: relative;
    margin-left: 15px;
}

.headshot-container a {
    display: block;
    width: 50px; /* Adjust width and height as needed */
    height: 50px;
    border-radius: 50%; /* Create a circular shape */
    overflow: hidden;
}

.headshot-container img {
    width: 100%;
    height: auto;
}

/* Container styles for main content */
.content-wrapper {
    /* was: margin-top: calc(100px); */
    margin-top: calc(100px - 16px); /* subtract X (16px) so the ad supplies that spacing */
    padding: 0 20px;
}

/* Container styles */
.container {
    display: flex;
    justify-content: center;
    max-width: 1120px;
    margin: 0 auto;
    font-size: inherit;
    background-color: #FFFFFF;
}

/* Main content styles */
.main-content {
    flex: 2;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 20px;
    max-width: 100%; /* Allow content to shrink */
    overflow: auto;  /* Add horizontal scroll if content overflows */
}

.main-content img {
    max-width: 100%; /* Ensure images scale down to fit the container */
    height: auto;    /* Maintain the aspect ratio of the images */
}

/* Sidebar styles */
.sidebar {
    flex: 1;
    padding-left: 10px;
    padding-right: 10px;
    width: 440px; /* Allow content to shrink */
    overflow: auto; /* Add horizontal scroll if content overflows */
    background-color: #FFFFFF;
}

/* Media query for larger screens */
@media screen and (max-width: 1120px) {
    .main-content {
        flex: 1;
    }

    .sidebar {
        display: none; /* Hide the sidebar on smaller screens */
    }

    .links a {
        font-size: 14px; /* Adjust font size for smaller screens */
        padding: 3px 6px; /* Adjust padding for smaller screens */
    }
}

/* Define a class for select boxes */
.custom-select {
    overflow-y: hidden;
    height: auto; /* Adjust the height as needed */
    width: 400px; /* Adjust the width as needed */
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 24px; /* Reduced width */
    height: 14px; /* Reduced height */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 7px; /* Half of the height for rounded edges */
}

.slider:before {
    position: absolute;
    content: "";
    height: 10px; /* Reduced height */
    width: 10px; /* Reduced width */
    left: 2px; /* Adjusted position */
    bottom: 2px; /* Adjusted position */
    background-color: white;
    transition: .4s;
    border-radius: 50%; /* Half of the height for rounded edges */
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(10px); /* Adjusted distance for the smaller width */
}

/* Rounded sliders */
.slider.round {
    border-radius: 7px; /* Half of the height for rounded edges */
}

.slider.round:before {
    border-radius: 50%; /* Half of the height for rounded edges */
}

.table {
    display: flex;
    flex-direction: column;
    border-collapse: collapse;
    width: 100%;
}

.row {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #ccc;
}

.row.heading {
    font-weight: bold;
    color: #ffffff;
    background-color: #000000;
}

.row > div {
    flex: 1;
    padding: 10px;
    border-left: 1px solid #ccc;
}

.row > div:last-child {
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

.sort-div {
    background-color: #ccc;
    padding: 10px;
}

.autocomplete-dropdown {
    padding: 5px; /* Add your desired padding */
    background-color: #ffffff; /* Add your desired background color */
    max-height: 200px; /* Add a max-height to limit the dropdown height */
    overflow-y: auto; /* Enable vertical scrolling if needed */
    position: absolute; /* Position the dropdown absolutely */
    z-index: 1000; /* Ensure the dropdown appears above other content */
    display: block; /* Initially show the dropdown */
}

.autocomplete-option {
    padding: 5px; /* Add padding to each option if desired */
    cursor: pointer;
}

.autocomplete-option:hover {
    background-color: #f0f0f0; /* Add a background color for hover effect */
}

.contributor-small {
    display: flex; /* Use flexbox to align items */
    align-items: center; /* Align items vertically */
}

.contributor-headshot-container {
    padding-right: 15px; /* Add padding on the right side */
}

.contributor-headshot-container a {
    display: block;
    width: 50px; /* Adjust width and height as needed */
    height: 50px;
    border-radius: 50%; /* Create a circular shape */
    overflow: hidden;
}

.contributor-headshot-container img {
    width: 100%;
    height: auto;
    border-radius: 50%; /* Apply rounded edges */
}

.text-container {
    /* Your styles for the text container */
}

.tag {
    background-color: #b41515;
    color: white;
    padding: 5px 15px; /* 5 pixels top and bottom, 15 pixels left and right */
    display: inline-block; /* Makes the div behave like an inline element */
    border-radius: 5px; /* Optional: adds rounded corners */
}

/* Optional: Style for the hyperlink within the tag */
.tag a {
    color: white;
    font-weight: bold;
    text-decoration: none; /* Removes underline from the link */
}

.related-horizontal {
    display: flex; /* Use flexbox to arrange child elements */
    flex-direction: column; /* Arrange child elements from top to bottom */
    padding-bottom: 10px; /* 10 pixels of padding at the bottom */
}

.related-horizontal > div {
    display: flex; /* Use flexbox for child divs */
    justify-content: flex-start; /* Align child divs at the top horizontally */
    align-items: flex-start; /* Align child divs at the top vertically */
}

.related-horizontal .left-div {
    flex: 0 0 180px; /* Fixed width for the left div */
}

.related-horizontal .right-div {
    flex: 1; /* Let the right div take up remaining space */
    padding-left: 15px; /* 15 pixels of padding on the left */
}

/* Styles for reviewbox container */
.reviewbox-container {
    display: flex;
    align-items: stretch; /* Make flex items (score and text) stretch to match height */
    background-color: #FFFFFF;
}

.reviewbox-score {
    background-color: #000000;
    color: #FFFFFF;
    font-size: 64px;
    font-weight: bold;
    padding: 15px;
}

.reviewbox-text {
    background-color: #E7E7E7;
    padding: 15px;
    display: flex; /* Use flexbox for vertical centering */
    align-items: center; /* Center text vertically */
}

/* Styles for bio container */
.bio-container {
    display: flex; /* Use flexbox to align items */
    align-items: flex-start; /* Align items at the start vertically */
    background-color: #C0C0C0;
}

.bio-headshot-container {
    padding: 15px; /* Add padding on the right side */
}

.bio-headshot-container a {
    display: block;
    width: 100px; /* Adjust width and height as needed */
    height: 100px;
    border-radius: 50%; /* Create a circular shape */
    overflow: hidden;
}

.bio-headshot-container img {
    width: 100%;
    height: auto;
    border-radius: 50%; /* Apply rounded edges */
}

.bio-text-container {
    padding-right: 15px; /* Add padding on the right side */
    padding-top: 15px;
    padding-bottom: 15px;
}

.right-column-tag {
    font-size: 12px;
    font-weight: bold;
    background-color: #000000;
    color: white;
    padding: 2px 4px; /* 2 pixels top and bottom, 4 pixels left and right */
    display: inline-block; /* Makes the div behave like an inline element */
    vertical-align: top; /* Align the element at the top of its container */
}

.quad > div {
    display: flex; /* Use flexbox for child divs */
    justify-content: flex-start; /* Align child divs at the top horizontally */
    align-items: flex-start; /* Align child divs at the top vertically */
}

.quad .left-div {
    flex: 0 0 200px; /* Fixed width for the left div */
    padding-left: 10px; /* 10 pixels of padding on the left */
    padding-right: 10px; /* 10 pixels of padding on the right */
    padding-bottom: 20px; /* 20 pixels of padding on the bottom */
}

.quad .right-div {
    flex: 1; /* Let the right div take up remaining space */
    padding-left: 10px; /* 10 pixels of padding on the left */
    padding-right: 10px; /* 10 pixels of padding on the right */
    padding-bottom: 20px; /* 20 pixels of padding on the bottom */
}

.quad .left-div img,
.quad .right-div img {
    min-width: 180px; /* Set minimum width for images */
    max-width: 180px; /* Set maximum width for images */
    height: auto; /* Maintain aspect ratio */
}

.left-horizontal {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
}

.left-horizontal > div {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.left-horizontal .left-div {
    flex: 0 0 240px;
    margin-top: 20px; /* Adjust margin instead of padding */
}

.left-horizontal .right-div {
    flex: 1;
    padding-left: 20px;
    margin-top: 20px; /* Adjust margin instead of padding */
}

.left-horizontal img {
    min-width: 240px;
    max-width: 240px;
    height: auto;
}

.left-horizontal h3 {
    margin-top: 0; /* Reset margin */
}

/* Bottom container */

.bottom-container {
    display: flex;
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
    font-size: inherit;
    background-color: #E7E7E7;
    padding: 0 10px; /* Add padding to maintain spacing */
    margin-bottom: 20px;
    box-sizing: border-box; /* Include padding in the max-width calculation */
}

/* Column styles */
.bottom-column {
    flex: 1; /* Each column takes up equal space */
    padding: 10px; /* Add padding to each column */
    box-sizing: border-box; /* Include padding in the column width */
}

.grid-main-content {
    flex: 2;
    padding-top: 10px;
    max-width: 100%; /* Allow content to shrink */
    overflow: auto;  /* Add horizontal scroll if content overflows */
    background-color: #FFFFFF;
    display: flex; /* Use flexbox layout */
    justify-content: space-between; /* Distribute space between items */
}

/* Grid container styles */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four columns of equal width */
    gap: 10px; /* Spacing between grid items */
}

/* Grid item styles */
.grid-item {
 }

.big-grid-main-content {
    flex: 2;
    padding-top: 10px;
    max-width: 100%; /* Allow content to shrink */
    overflow: auto;  /* Add horizontal scroll if content overflows */
    background-color: #FFFFFF;
    display: flex; /* Use flexbox layout */
    justify-content: space-between; /* Distribute space between items */
}

/* Grid container styles */
.big-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns of equal width */
    gap: 10px; /* Spacing between grid items */
}

/* Grid item styles */
.big-grid-item {
 }

.ad-horizontal {
    text-align: center;
    overflow: hidden; /* Prevent scrollbar */
}

