* {
    box-sizing: border-box;
}
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}
.content-wrapper {
    width: 93%;
    min-width: 750px;
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header-image {
    width: 100%;
    height: auto;
    margin: 1px;
    margin-top: 0;
}
.topnav {
    overflow: hidden;
    background-color: #333;
    color: white;
    font-size: 20px;
    width: 100%;
    margin: 0;
    height: 50%;
    display: flex;
    align-items: center;
}
.topnav a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 10px 12px;
    text-decoration: none;
    font-size: 22px;
    margin-right: 1rem;
}
.topnav li {
    display: inline;
}
.topnav a:hover {
    color: black;
    background-color: #707070;
}
.footer {
    width: 100%;
    background-color: #000000;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 16px;
}
.footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
}
.footer a:hover {
    text-decoration: underline;
}
.footer img {
    max-width: 100px;
    height: auto;
    margin: 10px;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}
.container h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 2rem;
}
.container h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 3rem 0 1rem;
}
.container p {
    font-size: 1.5rem;
    color: #4b5563;
    margin: 1rem 0;
    text-align: left;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.game-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    margin: 0;
    text-decoration: none;
    color: inherit;
}
.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}
.game-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 800 / 150;
    object-fit: cover;
}
.game-card h3 {
    margin: 1.5rem;
    font-size: 2rem;
    color: #1f2937;
}
.game-card p {
    margin: 0 1.5rem 1.5rem;
    color: #4b5563;
    font-size: 1.5rem;
    text-align: left;
}
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}
.contact-form h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}
.contact-form p {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    text-align: center;
}
.contact-form label {
    display: block;
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.25rem;
    font-size: 1rem;
    color: #4b5563;
}
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}
.contact-form button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-form button:hover {
    background-color: #707070;
}
.privacy-policy {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem 3rem;
}
.privacy-policy h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}
.privacy-policy h2 {
    font-size: 1.75rem;
    color: #1f2937;
    margin: 2rem 0 1rem;
}
.privacy-policy p {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 1rem;
    text-align: left;
}
.container img.top-image {
    width: 72%; /* Match index.html carousel image size */
    height: auto;
    border-radius: 0.5rem;
    margin: 0 auto 1.5rem;
    display: block;
}
.container img.content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem auto;
    display: block;
}
.container a.custom-link {
    color: #800000; /* Maroon */
    text-decoration: none;
}
.container a.custom-link:hover {
    text-decoration: underline;
}
.slideshow-container {
    width: 100%;
    position: relative;
    margin: 20px auto;
    overflow: hidden;
}
.slideshow-inner {
    display: flex;
    transition: transform 0.5s ease;
}
.mySlides {
    width: 100%; /* Width set dynamically in JS */
    flex-shrink: 0;
    position: relative;
}
.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}
.blur-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
}
.mySlides img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    vertical-align: bottom;
}
.image-link {
    width: 72%;
    margin: 0 auto;
    display: block;
    position: relative;
    z-index: 2;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 3;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev {
    left: 0;
    border-radius: 3px 3px 0 0;
}
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.text-container {
    position: absolute;
    bottom: 50px; /* Lifted by 50px */
    width: 100%; /* Stretch across slide */
    box-sizing: border-box;
    z-index: 3;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
}
.headline {
    display: block;
    color: #ffffff;
    font-size: 44px;
    font-weight: bold;
    text-align: left;
    text-decoration: none;
    margin: 0;
}
.headline:hover {
    color: #ddd;
}
.preview {
    color: #ffffff;
    font-size: 22px;
    font-weight: normal;
    text-align: left;
    margin-top: 5px;
    line-height: 1.4;
}
@media (max-width: 1024px) {
    .game-card {
        max-width: 100%;
    }
    .container p {
        font-size: 1.25rem;
    }
    .game-card p {
        font-size: 1.25rem;
    }
}
@media (max-width: 768px) {
    .game-card {
        max-width: 95%;
    }
    .game-card h3 {
        font-size: 1.5rem;
    }
    .container p {
        font-size: 1rem;
    }
    .game-card p {
        font-size: 1rem;
    }
    .container h1 {
        font-size: 2.5rem;
    }
    .container h2 {
        font-size: 2rem;
    }
    .contact-form {
        max-width: 95%;
        padding: 1.5rem;
    }
    .contact-form h1 {
        font-size: 2rem;
    }
    .privacy-policy {
        max-width: 95%;
        padding: 1.5rem 2rem;
    }
    .privacy-policy h1 {
        font-size: 2rem;
    }
    .privacy-policy h2 {
        font-size: 1.5rem;
    }
}