html {
    margin: 0;
}
body {
    background-color: #141414;
    margin: 0;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 18px;
}

header {
    background-color: #141414;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    /*border-bottom: 1px solid rgb(204, 204, 204);*/
}

.header-right {
    display: flex;
    align-items: center;
    margin-left: 20px;
    text-decoration: none;
}

.logoSmall {
    width: 50px;
    height: auto;
}

/* Style for the banner section with gradient background */
.banner {
    background-color: #4f4f4f;
    /* Replace with your desired gradient */
    width: 100%;
    height: 200px;
    /* Set height to match image height */
    display: flex;
    /* Use flexbox to center content vertically */
    align-items: center;
    
    margin: 0;
    
    padding: 0;
    /* Adjust padding as needed */
    box-sizing: border-box;
    /* Ensure padding is included in height calculation */
}

/* Style for the container div inside the banner section */
.banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    /* Adjust as needed */
    margin: 0 auto;
}

/* Style for the text on the left */
.banner .text {
    flex: 2;
    color: white;
}

/* Style for the image on the right */
.banner .image {
    flex: 1;
    /* Adjust flex as needed for desired image width */
    display: flex;
    justify-content: flex-end;
    /* Align the image to the right */
    height: 100%;
    /* Ensure the image container height matches the banner height */
}

/* Ensure image fills its container while maintaining aspect ratio */
.banner .image img {
    height: 360px;
    width: auto;
    /* Maintain aspect ratio */
    display: block;
}

.logo-title-container {
    color: white;
    display: flex;
    margin-left: 20px;
    font-size: 30px;
}

h1 {
    margin: 0;
    font-size: 3.5vw;
    color: white;
}

h2 {
    margin: 0;
    font-size: 40px;
    color: white;
}

p {
    margin: 0;
    color: white;
}

nav ul {
    display: flex;
    padding: 0;
    list-style: none;
}

nav li {
    margin-right: 50px;
}

nav ul li a {
    text-decoration: none;
    font-size: 20px;
    color: white;
}

nav ul li a:visited,
nav ul li a:hover {
    color: white;
}

.logo {
    width: min(200px, 40vw);
    height: auto;
    display: block;
    margin: 0 auto;
    padding-top: 20px;
}

.favorite {
    max-width: 80%;
    max-height: auto;
    padding: 20px;
}

/* Main Content Styles */
main {
    margin: 0;
    height: 1200px;
    background: linear-gradient(to top, #2b2b2b, #4f4f4f);
    text-align: center;
    padding: 0;
}

section {
    margin: 0;
    padding: 150px 0;
}

/* Limit the width of the About Us section */
#about {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Grid and Card Styles */
.games-grid { 
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 400px;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.game-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s;
}

.game-card:hover {
    transform: scale(1.05);
}

.game-card img {
    width: 100%;
    height: auto;
}

.game-card h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.btn {
    width: 170px;
    text-align: center;
    display: inline-block;
    padding: 12px 20px;
    background-color: #ff5a5a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
    background-color: #e14a4a;
    transform: scale(1.05);
}

.project-grid { 
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 440px;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.project-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
}

.project-card img {
    width: 100%;
    height: auto;
}

.project-card h3 {
    margin: 10px 0;
    font-size: 1.2em;
}


/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black with opacity */
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    /* Ensures the image width adjusts to fit the modal */
    height: auto;
    /* Maintains aspect ratio */
}

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

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

/* CSS for the Games Button */
#gamesButton {
    background-color: rgb(255, 230, 10);
    color: rgb(31, 31, 31);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    /* Adjust the value to make it more or less round */
    cursor: pointer;
    font-size: 18px;
    font-style: bold;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

#gamesButton:hover {
    background-color: rgb(233, 212, 20);
    /* Change color on hover for visual feedback */
}


/* Footer Styles */
footer {
    /*border-top: 1px solid rgb(204, 204, 204);*/
    text-align: center;
    font-size: 20px;
}
