@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');
body {
    font-family: 'Karla', sans-serif;
    background-color: #f9f0e4;
    color: #242f4d; /* Light text */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on all devices */
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
    max-width: 100%;
}
html {
    scroll-behavior: smooth;
}

a {
    color: #da5446;
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Add horizontal padding */
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
}

.logo img {
  height: 150px;
}

.menu-buttons {
  display: flex;
  gap: 10px; /* Controls spacing between menu buttons */
  flex-wrap: wrap; /* Allow buttons to wrap */
  justify-content: center; /* Center the buttons when they wrap */
}

.menu-button {
  background-color: transparent;
  color: #1a3040;
  padding: 10px 20px;
  border-radius: 20px;
  border: 3px solid #1a3040;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  transition: background-color 0.3s ease;
}

.menu-button:hover {
  background-color: #243846;
  color: #f9f0e4;
  text-decoration: none;
}

.sign-in-button {
  background-color: #13212b;
  color: #f9f0e4;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  transition: background-color 0.3s ease;
}

.sign-in-button:hover {
  background-color: #243846;
  text-decoration: none;
}

.register-button {
  background-color: #da5446;
  color: #f9f0e4;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  transition: background-color 0.3s ease;
}

.register-button:hover {
  background-color: #b3463a;
  text-decoration: none;
}

.auth-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; /* Allow buttons to wrap */
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px 0;
    align-items: center;
}

.hero-left {
    color: #383d5c;
}

.hero-left h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-left p {
    color: #25304e;
    line-height: 1.8;
    font-weight: 500;
}

.hero-right {
    display: flex;
    align-items: center; /* Centers image & text vertically */
    justify-content: start; /* Aligns items to the left */

    background-color: #13212b; /* Dark background for contrast */
    border-radius: 20px; /* Smooth rounded corners */
    padding: 20px; /* Adds spacing inside the container */
}

.hero-right img {
    max-width: 35%; /* Keeps it well-proportioned */
    height: auto; /* Maintains aspect ratio */

    margin-right: 20px; /* Creates space between image and text */
}

.hero-text {
    display: flex;
    flex-direction: column; /* Keeps text stacked */
    text-align: center; /* Ensures text alignment */
    letter-spacing: 1.5px;
}

.hero-text h1 {
    font-size: 28px;
    font-weight: 900;
    color: #da5446;
    margin-bottom: 0; /* Eliminates extra space */
}

.hero-text h2 {
    font-size: 24px;
    color: #f9f0e4;
    margin-top: 0; /* Removes unnecessary spacing */
    margin-bottom: 0;
}

.claim-button {
    display: inline-block;
    background-color: #da5446;
    color: #f9f0e4;
    padding: 6px; /* Adjusted for better proportion */
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    margin-top: 5px;
}

.claim-button:hover {
    background-color: #b3463a;
    text-decoration: none;
}

.hero-devices img {
    max-width: 100%; /* Make image responsive */
}

#steps {
    text-align: center;
    padding: 50px 0;
    font-weight: 500;
}

#steps h2 {
    color: #da5446;
    font-size: 2em;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 800;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.step-card {
    background-color: #da5446;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
}

.step-card img {
    height: 100px;
    margin-bottom: 10px;
}

.step-card h3 {
    color: #022d45;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 10px;
}

.step-card p {
    color: #f9f0e4;
}

.cta-button-container {
    text-align: center;
    margin-top: 40px;
}

.cta-button {
    background-color: #13212b;
    color: #f9f0e4;
    padding: 15px 30px;
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #243846;
    text-decoration: none;
}

#games {
    background-color: #13212b;
    padding: 50px 0;
    text-align: center;
    border-radius: 20px;
    margin: 0 10px;
    box-sizing: border-box;
    width: auto;
    max-width: calc(100% - 20px);
}

#games h2 {
    color: #da5446;
    font-size: 2em;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 900;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.game-card {
    background-color: #1a3040;
    padding: 20px;
    border-radius: 20px;
}

.game-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.game-card h3 {
    color: #da5446;
    margin-bottom: 10px;
    font-size: 24px;
}

.game-card p {
    color: #f9f0e4;
}

#legal {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

#legal h2 {
    color: #da5446;
    font-size: 2.5em;
    text-transform: uppercase;
    font-weight: 800;
    text-align: center;
}

#legal h3 {
    color: #1a3040;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.effective {
    color: #7d7f82;
    font-style: italic;
    text-align: center;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.contact-section {
    background-color: #da5446;
    padding: 20px;
    border-radius: 15px;
    color: #f9f0e4;
}

.contact-section h3 {
    color: #022d45;
    font-size: 1.5em;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-section p {
    font-size: 1.1em;
}

.contact-section a {
    color: #022d45;
}

.social-button {
    display: inline-block;
    padding: 10px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-button:hover {
    transform: scale(1.1);
}

.social-icon {
    width: 64px;
}

#signin {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
    padding: 0 20px;
}

#signin h2 {
    color: #da5446;
    font-size: 2.5em;
    text-transform: uppercase;
    font-weight: 800;
}

.signin-container {
    width: 100%;
    max-width: 400px;
    background-color: #13212b;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signin-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.signin-container input {
    width: 100%;
    max-width: 350px;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 1em;
    margin-bottom: 15px;
    text-align: center;
    background-color: #f9f0e4;
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    color: #13212b;
}

.signin-container input:focus {
    border-color: #da5446;
    box-shadow: 0px 0px 10px rgba(218, 84, 70, 0.6);
    outline: none;
    transform: scale(1.02);
}

.signin-container input::placeholder {
    color: #7d7f82;
}

.signin-container input:-webkit-autofill {
    background-color: #f9f0e4 !important;
    color: #25304e !important;
}

.signin-container label {
    text-align: center;
    width: 100%;
    font-weight: bold;
    color: #f9f0e4;
    padding: 10px;
}

.signinbutton {
    width: 100%;
    max-width: 350px;
}

.signinbutton {
    width: 100%;
    background-color: #da5446;
    color: #f9f0e4;
    padding: 12px;
    border: none;
    border-radius: 20px;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.signinbutton:hover {
    background-color: #b3463a;
}

.create-account {
    color: #f9f0e4;
}
.forgot-password, .create-account {
    margin-top: 15px;
    font-size: 1em;
}

.forgot-password a, .create-account a {
    color: #da5446;
    font-weight: bold;
    text-decoration: none;
}

.forgot-password a:hover, .create-account a:hover {
    text-decoration: underline;
}

#register {
    padding: 0 20px;
    text-align: center;
}

#register h2 {
    color: #da5446;
    font-size: 2.5em;
    text-transform: uppercase;
    font-weight: 800;
}

.register-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background-color: #13212b;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.register-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    color: #f9f0e4;
    font-weight: 700;
}

.register-container input {
    width: 100%;
    max-width: 350px;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 15px;
    text-align: center;
    background-color: #f9f0e4;
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    color: #13212b;
}

.register-container input:focus {
    border-color: #da5446;
    box-shadow: 0px 0px 10px rgba(218, 84, 70, 0.6);
    outline: none;
    transform: scale(1.02);
}

.registerbutton {
    width: 100%;
    max-width: 350px;
    background-color: #da5446;
    color: #f9f0e4;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.registerbutton:hover {
    background-color: #b3463a;
}

.existing-account {
    margin-top: 15px;
    font-size: 1em;
    color: #f9f0e4;
}

.existing-account a {
    color: #da5446;
    font-weight: bold;
    text-decoration: none;
}

.existing-account a:hover {
    text-decoration: underline;
}

footer {
    background: #13212b;
    text-align: center;
    padding: 30px 0;
    color: #1a3040;
    font-size: 0.9em;
    margin-top: 50px;
}

.footer-content {
    margin: 20px 10px;
    box-sizing: border-box;
    max-width: 100%;
}

footer a {
    color: #da5446;
}

footer p {
    color: #f9f0e4;
    letter-spacing: 1px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-button {
    background-color: transparent;
    color: #d9c4a0;
    padding: 10px 20px;
    border-radius: 20px;
    border: 3px solid #da5446;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 900;
    transition: background-color 0.3s ease;
    margin: 5px;
}

.footer-button:hover {
    background-color: #da5446;
    color: #f9f0e4;
    text-decoration: none;
}

.footer-images {
    display: flex;
    align-items: center; /* Keeps cards and age verification aligned */
    justify-content: center; /* Centers them horizontally */
    gap: 15px; /* Adds spacing between images */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.cards {
    height: 50px;
}

.age-icon {
    height: 50px;
}

.age-verification {
    max-height: 50px;
}

/* Media Queries for Responsive Design */

/* Extra Large Devices (large desktops, 1200px and up) */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero-left h1 {
        font-size: 2.2em;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .hero-text h2 {
        font-size: 20px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-left {
        order: 2;
    }

    .hero-right {
        order: 1;
        margin-bottom: 20px;
        justify-content: center;
    }

    .steps-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .games-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    header {
        flex-direction: column;
        text-align: center;
    }

    .menu-buttons, .auth-buttons {
        margin-top: 15px;
        justify-content: center;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    .menu-buttons, .auth-buttons {
        width: 100%;
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 22px;
    }

    .hero-text h2 {
        font-size: 18px;
    }

    .hero-right {
        flex-direction: column;
        text-align: center;
    }

    .hero-right img {
        max-width: 50%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    #signin, #register {
        padding: 20px;
    }

    .signin-container, .register-container {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }

    .footer-content {
        margin: 20px;
    }

    .footer-button {
        display: block;
        margin: 10px auto;
        max-width: 200px;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (max-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }

    .logo img {
        height: 100px;
    }

    .hero-left h1 {
        font-size: 1.8em;
    }

    .menu-button, .sign-in-button, .register-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .auth-buttons {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 20px;
    }

    .hero-text h2 {
        font-size: 16px;
    }

    .claim-button {
        font-size: 16px;
        padding: 8px 15px;
    }

    #legal h2, #steps h2, #games h2, #signin h2, #register h2 {
        font-size: 2em;
    }

    .footer-images {
        flex-direction: column;
    }
}

/* Mobile Menu Specific Fixes */
@media (max-width: 480px) {
    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }

    header {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .menu-buttons {
        margin-top: 15px;
        gap: 6px;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .menu-button, .sign-in-button, .register-button {
        padding: 6px 10px;
        font-size: 0.8em;
        white-space: nowrap;
    }

    .container {
        padding: 0 10px;
        width: 100%;
    }

    #games {
        margin: 0 5px;
        max-width: calc(100% - 10px);
    }
}

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 375px) {
    .logo img {
        height: 80px;
    }

    .hero-left h1 {
        font-size: 1.5em;
    }

    .hero-text h1 {
        font-size: 18px;
    }

    .hero-text h2 {
        font-size: 14px;
    }

    .claim-button {
        font-size: 14px;
    }

    #legal h2, #steps h2, #games h2, #signin h2, #register h2 {
        font-size: 1.8em;
    }
}