/*GOOGLE FONTS*/
@import url('https://fonts.googleapis.com/css?family=PT Sans Narrow');
@import url('https://fonts.googleapis.com/css?family=Gruppo');

body {
	min-width: 400px;
}

/* Game Title Section */
.game-title {
    min-height: 100px;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-title-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: .9; /* Background opacity */
    z-index: 1; /* Ensure it’s behind the text */
}

.game-text {
    font-size: 50px;
    color: white;
    text-shadow: 2px 2px 2px darkgrey;
    font-family: 'Gruppo';
    text-align: center;
    z-index: 2; /* Ensure text is above the background */
}

@media (max-width: 768px) {
    .game-text {
        font-size: 40px;
    }
}

/* Description Section */
.description-section {
    padding: 50px 0;
    border-bottom: 1px solid #ccc; /* Grey border bottom */
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: 1px;
}

.description-left {
    width: 100%;
    border-right: 1px solid #ccc;
    padding-right:25px;
    padding-left: 25px;
    font-weight: normal;
    height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #000 #e0e0e0;
    font-size: 22px;
}

/* Customize the scrollbar for WebKit browsers (Chrome, Safari, etc.) */
.description-left::-webkit-scrollbar {
    width: 8px; /* Set width of the scrollbar */
}

.description-left::-webkit-scrollbar-thumb {
    background-color: #999; /* Color of the scrollbar thumb */
    border-radius: 10px; /* Rounded edges on the scrollbar thumb */
}

.description-left::-webkit-scrollbar-track {
    background-color: #e0e0e0; /* Color of the scrollbar track */
}

.description-right {
    width: 100%;
    padding-left: 30px;
}

p.strongtext {
    font-weight: bold;
    font-family: 'Calibri', 'Trebuchet MS', sans-serif, Arial, sans-serif; /* Fallback to Arial */
}

p.weaktext {
    font-weight: 100;
    font-family: 'Calibri', 'Trebuchet MS', sans-serif, Arial, sans-serif; /* Fallback to Arial */
}


@media (min-width: 768px) {
    .description-left {
        width: 65%;
    }

    .description-right {
        width: 35%;
    }
}

@media (max-width: 768px) {
    .description-left {
        padding-top: 20px;
        margin-bottom: 20px;
        border-top: solid 1px #ccc;
        padding-left: 10px;
    }
    .description-right {
        padding-top: 35px;
        border-top: solid 1px #ccc;
    }
}

/* Steam section */

.steam-section {
    position: relative; /* Ensure it positions relative to its container */
    padding-top: 10px; /* Add padding to the top and bottom */
    padding-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
}

.steam-content {
    display: flex;
    justify-content: flex-end; /* Align items to the right */
    align-items: center; /* Vertically center items */
    gap: 10px; /* Space between text and button */
}

.steam-content span {
    width: 200px;
    font-weight: bold;
    font-size: 2rem;
    font-family: 'Gruppo'; /* Use the same font as the game title for consistency */
    color: #000000; /* Adjust color as needed */
}

.steam-button {
    width: 250px; /* Adjust size as needed */
    height: auto;
}

/* Itch section */

.itch-section {
    position: relative; /* Ensure it positions relative to its container */
    padding-top: 20px; /* Add padding to the top and bottom */
    padding-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

.itch-content {
    display: flex;
    justify-content: flex-end; /* Align items to the right */
    align-items: center; /* Vertically center items */
    gap: 10px; /* Space between text and button */
}

.itch-content span {
    width: 500px;
    font-weight: bold;
    font-size: 2rem;
    font-family: 'Gruppo'; /* Use the same font as the game title for consistency */
    color: #000000; /* Adjust color as needed */
    text-align: center;
}

.itch-button {
    width: 300px; /* Adjust size as needed */
    height: auto;
}


/* Screenshots Section */
.screenshots-section {
    margin-top: 100px;
    text-align: center;
    background-color: transparent; /* Optional: Add background color if needed */
    position: relative; /* Ensure relative positioning */
}

.screenshots-title {
    font-size: 2rem;
    font-family: 'Gruppo'; /* Use the same font as the game title for consistency */
    color: black;
    z-index: 2; /* Ensure text is above any background effects */
    margin: 0;
    padding: 0; /* Remove any padding/margin to center the text perfectly */
}

/* Gallery Section */
.gallery-section {
    border-top: 1px solid grey;
    border-bottom: 1px solid grey;
    padding: 20px 0; /* Adjust padding as needed */
    position: relative; /* Ensure the pseudo-element is positioned correctly */
    overflow: hidden; /* Hide overflow to prevent horizontal scrollbars on the container */
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black; /* Background color */
    opacity: 1; /* Apply opacity to the background */
    z-index: 1; /* Place it behind the content */
}

.gallery-wrapper {
    display: flex;
    align-items: center;
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-behavior: smooth; /* Smooth scrolling */
    padding: 0 10px; /* Add padding to the left and right of the gallery */
    padding-bottom: 12px;
    margin-top: 2px;
    position: relative; /* Ensure content stays above the pseudo-element */
    z-index: 2; /* Place content above the background */
}

/* Styling the scrollbar for WebKit browsers (Chrome, Safari, etc.) */
.gallery-wrapper::-webkit-scrollbar {
    height: 10px; /* Height of the scrollbar */
}

.gallery-wrapper::-webkit-scrollbar-track {
    background: black; /* Background color of the scrollbar track */
}

.gallery-wrapper::-webkit-scrollbar-thumb {
    background: white; /* Color of the scrollbar thumb */
    border-radius: 10px; /* Rounded edges on the scrollbar thumb */
}

/* Styling the scrollbar for Firefox */
.gallery-wrapper {
    scrollbar-width: thin; /* Make scrollbar thin */
    scrollbar-color: white black; /* Thumb color is white, track color is black */
}

.gallery {
    display: flex;
    gap: 10px; /* Space between images */
}

.gallery a img {
    min-width: 296px;
    min-height: 167px;
    width: 100%; /* Scale images to fit within their container */
    height: auto; /* Maintain aspect ratio */
    border: 2px solid #ccc; /* Optional border around images */
    border-radius: 10px; /* Optional rounded corners */
    position: relative; /* Ensure images stay above the pseudo-element */
    z-index: 2; /* Place images above the background */
}

@media (max-width: 768px) {
    .gallery a img {
        min-width: 150px; /* Adjust minimum width for smaller screens */
        min-height: 100px; /* Adjust minimum height to maintain 3:2 aspect ratio */
    }
}

/* Video Section */
.video-section {
    padding: 0; /* Remove padding to prevent extra space */
    padding-top: 5%;
    padding-bottom: 5%;
    position: relative; /* Ensure relative positioning */
    overflow: hidden; /* Hide overflow */
    max-height: 100vh; /* Ensure the section doesn’t exceed the viewport height */
    background-color: black;
}

.trials-video-section {
    padding: 0; /* Remove padding to prevent extra space */
    padding-top: 5%;
    padding-bottom: 5%;
    position: relative; /* Ensure relative positioning */
    overflow: hidden; /* Hide overflow */
    max-height: 100vh; /* Ensure the section doesn’t exceed the viewport height */
    background-color: black;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Maximum width for the video */
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
    background: #000; /* Background color to ensure video appears correctly */
    overflow: hidden;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1.5rem;
    font-family: 'Gruppo', sans-serif;
    background-color: black;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    z-index: 10; /* Ensure the button appears on top of other elements */
}

.play-button:hover {
    background-color: white;
    color: black;
}

.video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
}

@media (min-width: 1281px) {
    .video-wrapper {
        max-height: 720px; /* Ensure maximum height */
    }
}
