/* Reset some default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Basic styling */
body {
    font-family: 'Calibri', 'Trebuchet MS', sans-serif, Arial, sans-serif; /* Fallback to Arial */
    font-size: x-large;
    font-weight: bold;
    background-color: #ffffff; /* White background */
    color: #000000; /* Black text */
    line-height: 1.6;
    min-height: 100vh; /* Ensure body covers the full viewport height */
    margin: 0; /* Remove default margin */
    display: flex;
    flex-direction: column; /* Align children in a column */
    min-width: 360px;
}

html {
    height: 100%; /* Ensure html covers the full viewport height */
}

.container1 {
    width: 95%;
    margin: 0 auto;
    min-width: 400px; /* Minimum width suitable for mobile */
}

header {
    color: #000000; /* Black text */
    padding: 20px 0; /* Increased padding for header */
    box-shadow: 0 2px 5px rgba(1, 0, 0, 0); /* Optional: Adds a subtle shadow */
    padding-top: 1%;
    text-align: center; /* Center align text */
    position: relative;
    background: none; /* Remove background color */
    overflow: hidden; /* Ensures Vanta effect is contained */
    border-bottom: 1px solid black;
}

.header-content {
    display: flex;
    justify-content: center; /* Center align content horizontally */
    align-items: center;
}

.branding .logo {
    font-family: 'Dungeon Crawler CB';
    font-weight: normal;
    font-style: normal;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    font-size: 4.5rem; /* Larger font size for the logo */
    text-decoration: none;
    color: #555555;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Show ellipsis if text overflows */
    transition: text-shadow 0.3s ease-in-out; /* Smooth transition for text-shadow */
}

.branding .logo:hover {
    text-shadow: 0 0 5px rgb(255, 255, 255); /* Blue glow effect around text */
}

.menuitems {
    font-family: 'Calibri', 'Trebuchet MS', sans-serif, Arial, sans-serif; /* Fallback to Arial */
    font-size: x-large;
    font-weight: bold;
    line-height: 1;
    font-weight: 100;
    text-align: center; /* Center align text */
    margin-top: 10px; /* Add space between logo and menu items */
}

.menuitems li {
    display: inline-block; /* Display menu items in a line */
    margin: 0 10px; /* Adjust spacing between menu items */
    margin-left: 10px;
    margin-right: 10px;
}

.menuitems li a {
    text-decoration: none; /* Remove underline from anchor tags */
    color: inherit; /* Inherit color from parent */
}

.menuitems button {
    text-decoration: none;
    color: #000000; /* Black text */
    padding: 10px;
    display: block;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-family: 'Calibri', 'Trebuchet MS', sans-serif, Arial, sans-serif; /* Fallback to Arial */
    font-size: x-large;
}

.menuitems button:hover {
    transform: scale(0.8);
}

.traits {
    font-family: 'Calibri', 'Trebuchet MS', sans-serif, Arial, sans-serif; /* Fallback to Arial */
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    font-weight: 100;
    text-align: center; /* Center align text */
    margin-bottom: 40px;
}

.traits li {
    display: inline-block; /* Display menu items in a line */
    margin: 0 10px; /* Adjust spacing between menu items */
    margin-left: 10px;
    margin-right: 10px;
}

.game-gallery {
    padding: 50px 0;
    text-align: center;
    flex: 1; /* Take remaining vertical space */
    display: flex;
    justify-content: center; /* Center items horizontally */
    align-items: flex-start; /* Align items to the top */
    overflow: hidden; /* Hide overflow to ensure background covers entire viewport */
}

.container2 {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center game boxes horizontally */
}

.game-box {
    width: 500px;
    height: 300px;
    position: relative;
    margin: 1% 10px; /* Adjusted margin for spacing between boxes */
    border-radius: 30px; /* Rounded corners */
    overflow: hidden; /* Ensures images do not overflow */
    transition: transform 0.3s ease-out;
    border: 1pt solid #000000; /* Black border with 1pt weight */
}

.game-box a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none; /* Remove underline from links */
}

.game-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Ensure image fills its container */
    height: 100%; /* Ensure image fills its container */
    object-fit: cover; /* Scale the image while preserving aspect ratio */
    border-radius: 30px; /* Rounded corners */
    transition: transform 0.3s ease-out;
}

.game-box .game-title {
    font-family: 'Dungeon Crawler CB';
    font-size: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    white-space: nowrap;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-box span {
    font-family: 'Calibri', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 100 !important;
    position: absolute;
    top: calc(50% + 1rem); /* Position it below the game-title */
    left: 0;
    width: 100%;
    text-align: center;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-box:hover img {
    filter: brightness(40%); /* Darken the image on hover */
    transform: scale(1.05); /* Zoom in slightly on hover */
}

.game-box:hover .game-title,
.game-box:hover span {
    opacity: 1; /* Show overlay text and additional info on hover */
}

footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff00; /* Example background color */
    padding: 20px 0; /* Adjust padding as needed */
    text-align: center; /* Center align content */
    z-index: 1000; /* Ensure icons are above other content */ 
    margin-top: 5%;
    border-top: 1px solid black; 
}

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

}

.headline-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* 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;
    border-radius: 30px;
}

.headline-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: black;
    top: 0;
    left: 0;
    border: none;
}

@font-face {
    font-family: 'Dungeon Crawler CB', Arial, sans-serif;
    src: url('https://starkweathergames.com/css/fonts/DungeonCrawler/Dungeon_Crawler_CB.woff2') format('woff2'),
         url('https://starkweathergames.com/css/fonts/DungeonCrawler/Dungeon_Crawler_CB.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Adjustments for smaller screens (e.g., mobile devices) */
@media (max-width: 768px) {
    .branding .logo {
        font-size: 2.5rem; /* Adjust font size for smaller screens */
    }
    .traits {
        display: none;
    }
}



