@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

.gs-data-item {
    display: flex;
    background-color: #f06a4d;
    color: white;
    padding: 20px;
    border-radius: 10px;
}

.badge-custom {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  color: #fff;
  background-color: #fd6002; /* Bootstrap primary color */
}

.badge-mobile {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 65%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  color: #fff;
  background-color: #1e6cee; /* Bootstrap primary color */
}

.col-md-8 > h3.game_name {
  font-weight:700;
  font-size: 24px; 
}


.gs-image img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    margin-right: 20px;
    margin-left: 20px;
    margin-bottom:20px;
}

.gs-details {
    flex-grow: 1;
}

.gs-details h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.gs-publisher {
    font-size: 16px;
    margin-bottom: 10px;
}

.gs-publisher span {
    font-weight: bold;
}

.gs-tags {
    margin-bottom: 10px;
}

.gs-tags a {
    display: inline-block;
    background-color: #af4448;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 5px;
    font-size: 12px;
    color: white;
    text-decoration: none;
}

.gs-tags a:hover {
    background-color: #d35458;
}

.gs-description {
    margin-bottom: 20px;
}

.gs-ratings {
    width: 100%;
    margin-top: 20px;
}

.gs-ratings-table {
    width: 100%;
    border-collapse: collapse;
}

.gs-ratings-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.gs-ratings-table .gs-rated,
.gs-ratings-table .gs-stars,
.gs-ratings-table .gs-downloads,
.gs-ratings-table .gs-reviews {
    font-weight: bold;
    text-align: right;
    padding-right: 20px;
}

.gs-ratings-table span {
    font-weight: normal;
    color: #333;
}

.gs-rated span,
.gs-stars span,
.gs-downloads span,
.gs-reviews span {
    font-weight: bold;
    margin-left: 5px;
}

.gs-links p {
    margin: 5px 0;
}

.gs-links a {
    color: white;
}


/* Custom vertical navigation styling */
.custom-vertical-nav1 {
    background-color: #f7f7f7 !important;
    padding: 15px !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    width: auto !important; /* Adjust the width as needed */
    font-size: 13px !important;
    font-weight: bold !important;
    margin-bottom: 20px;
}

.custom-vertical-nav1 ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-vertical-nav1 ul li {
    margin-bottom: 10px !important;
    font-size: 13px !important;
    font-weight: bold !important;
}

.custom-vertical-nav1 ul li a {
    display: flex !important;
    align-items: center !important;
    padding: 10px !important;
    background-color: #fff !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    color: #333 !important;
    transition: background-color 0.3s, color 0.3s !important;
}

.custom-vertical-nav1 ul li a i {
    margin-right: 10px !important;
    font-size: 20px !important;
}

.custom-vertical-nav1 ul li a:hover {
    background-color: #f74c07 !important;
    color: #fff !important;
}

.custom-vertical-nav1 ul li:last-child {
    margin-bottom: 0 !important;
}

/* BUTTONS */

.gs-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.gs-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #f84d07;
    text-decoration: none !important;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-align: center;
    width: 48%;
}

.gs-button:hover {
    background-color: #e97a4d;
}

/* LIVE PLAYER STYLES */

.player-stats__header {
    background-color: #FF6600;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    text-align: center;
}
.player-stats__container {
    display: flex;
    justify-content: space-around; /* Maintains space around items */
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    padding: 30px 20px; /* Consistent padding */
    background-color: #eeee;
    border-radius: 10px;
    margin-bottom: 20px;
}

.player-stats__metric {
    text-align: center;
    flex-basis: 33.33%; /* Each metric takes exactly one-third of the container width */
    flex-grow: 1; /* Allows the boxes to grow and fill the container */
    box-sizing: border-box; /* Includes padding and border in the element's total width */
    margin: 10px 0; /* Vertical margin for breathing space */
}

.player-stats__value {
    font-size: 40px; /* Large font size for desktop */
    font-weight: bold;
    font-family: "Bebas Neue", sans-serif;
    font-style: normal;
}

.player-stats__label {
    font-size: 14px;
    margin-top: 15px;
    font-weight: bold;
}

.player-stats__details {
    color: #666;
    font-size: 12px;
    cursor: pointer;
    margin-top: 5px;
}

.player-stats__details-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid #666;
    border-radius: 50%;
    text-align: center;
    line-height: 14px;
    margin-right: 2px;
}

/* MODAL HERE */

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* Adjusted for better centering */
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* Start with 90% for better mobile view */
    max-width: 500px; /* Maximum width */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); /* Add some shadow */
}

.modal-header {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* TWITCH DATA */

.twitch-stats__header {
    background-color: #FF6600;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    text-align: center;
}
.twitch-stats__container {
    display: flex;
    justify-content: space-around; /* Maintains space around items */
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    padding: 30px 20px; /* Consistent padding */
    background-color: #eeee;
    border-radius: 10px;
    margin-bottom: 20px;
}

.twitch-stats__metric {
    text-align: center;
    flex-basis: 45%; /* Adjusted to fit two metrics per row more comfortably */
    flex-grow: 1; /* Allows the boxes to grow and fill the container */
    box-sizing: border-box; /* Includes padding and border in the element's total width */
    margin: 10px 0; /* Vertical margin for breathing space */
}

.twitch-stats__value {
    font-size: 50px; /* Large font size for desktop */
    font-weight: bold;
    font-family: "Bebas Neue", sans-serif;
    font-style: normal;
}

.twitch-stats__label {
    font-size: 14px;
    margin-top: 15px;
    font-weight: bold;
}

.twitch-stats__details {
    color: #666;
    font-size: 12px;
    cursor: pointer;
    margin-top: 5px;
}

.twitch-stats__details-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid #666;
    border-radius: 50%;
    text-align: center;
    line-height: 14px;
    margin-right: 2px;
}


pt-2 {margin-top:10px;}
pt-3 {margin-top:20px;}
pt-4 {margin-top:30px;}
pb-2 {margin-bottom:10px;}
pb-3 {margin-bottom:20px;}
pb-4 {margin-bottom:30px;}

/* Media Queries for responsiveness */

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .player-stats__metric {
        flex-basis: 100%; /* Full width on small screens */
    }
    .player-stats__value {
        font-size: 45px; /* Smaller font size on smaller screens */
    }

    .modal-content {
        margin: 20% auto; /* Increase top margin on smaller screens */
        width: 80%; /* Increase width to use more of the screen */ }
	.twitch-stats__metric {
        flex-basis: 100%; /* Full width on small screens */
    }
    .twitch-stats__value {
        font-size: 45px; /* Smaller font size on smaller screens */
    }

}

@media (max-width: 480px) {
    .player-stats__header {
        font-size: 16px;
        padding: 8px 10px;
    }
    .player-stats__value {
        font-size: 45px; /* Even smaller font size for very small screens */
    }

    .modal-content {
        margin: 25% auto; /* Further increase top margin for very small screens */
        width: 90%; /* Max out the width on very small devices */
    }
	    .twitch-stats__header {
        font-size: 16px;
        padding: 8px 10px;
    }
    .twitch-stats__value {
        font-size: 45px; /* Even smaller font size for very small screens */
    }
    .twitch-stats__metric {
        flex-basis: 100%; /* Full width on very small screens */
    }
}