/* Base styles */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: eurostile, sans-serif !important;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Main section */
.section-1 {
  background-image: url("images/Background.png");
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: repeat;
  min-height: calc(100vh - 94px); /* Subtract footer height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 0 !important;
  width: 100%;
}

.content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 94px);
  box-sizing: border-box;
}

.logo {
  width: 419px;
  height: auto;
  max-width: 100%;
  margin: 88px auto 30px;
  border-radius: 24px;
  background-color: white;
  padding: 15px;
  box-shadow: 2px 2px 8px 0 rgba(128, 128, 128, 1);
  object-fit: contain;
  /* Preserve proportions as in original */
  aspect-ratio: 1378/967;
}

.description-box {
  width: 100%;
  max-width: 600px;
  min-height: 120px;
  background-color: white;
  border-radius: 10px;
  margin: 0 auto 30px;
  box-shadow: 2px 2px 8px 0 rgba(128, 128, 128, 0.5);
}

.description-content {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.description-text {
  text-align: center;
  font-size: 1.125rem;
  margin: 0;
  font-family: eurostile, sans-serif;
}

.games-button {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.125rem;
  letter-spacing: 1px;
  margin: 20px auto 60px;
  padding: 10px 40px;
  background-color: #603389 !important;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.games-button:hover {
  background-color: #7a44b0 !important;
}

/* Footer */
.footer {
  background-color: #603389;
  height: 94px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 0;
}

.footer-content {
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.footer .u-sheet-1 {
  min-height: 94px;
  height: 94px;
}

.footer-text {
  color: white;
  margin: 0;
  font-size: 14px;
  text-align: center;
  font-family: eurostile-extended, sans-serif !important;
  margin-top: 20px;
  margin-bottom: 20px;
  font-weight: normal;
}

/* Responsive styles */
@media (max-width: 1199px) {
  .content-wrapper {
    min-height: 462px;
    padding: 15px;
  }

  .logo {
    padding: 15px;
    margin-top: 60px;
  }

  .footer .u-sheet-1 {
    min-height: 94px;
  }
}

@media (max-width: 991px) {
  .logo {
    width: 380px;
    margin-top: 50px;
  }

  .description-box {
    max-width: 520px;
  }

  .footer .u-sheet-1 {
    min-height: 94px;
  }
}

@media (max-width: 767px) {
  .logo {
    width: 340px;
    margin-top: 60px;
    margin-bottom: 25px;
  }

  .description-box {
    max-width: 450px;
  }

  .description-text {
    font-size: 1.05rem;
  }

  .games-button {
    font-size: 1.05rem;
    padding: 9px 35px;
    margin-bottom: 50px;
  }

  .footer .u-sheet-1 {
    min-height: 94px;
  }
}

@media (max-width: 575px) {
  .content-wrapper {
    min-height: calc(100vh - 94px);
    padding: 10px;
  }

  .logo {
    width: 280px;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .description-box {
    max-width: 320px;
    min-height: 100px;
  }

  .description-content {
    padding: 15px;
    min-height: 100px;
  }

  .description-text {
    font-size: 0.95rem;
  }

  .games-button {
    font-size: 0.95rem;
    padding: 8px 30px;
    margin-bottom: 40px;
    margin-top: 15px;
  }

  .footer {
    height: 94px;
  }

  .footer-text {
    font-size: 14px;
  }

  .footer .u-sheet-1 {
    min-height: 94px;
  }
}

@media (max-width: 380px) {
  .logo {
    width: 240px;
    padding: 10px;
  }

  .description-box {
    max-width: 280px;
  }

  .description-text {
    font-size: 0.9rem;
  }

  .games-button {
    font-size: 0.9rem;
    padding: 7px 25px;
  }

  .footer-text {
    font-size: 14px;
  }
}

/* Fix for viewport height on mobile browsers */
@media (max-height: 500px) {
  .section-1 {
    min-height: auto;
  }

  .content-wrapper {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .logo {
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .games-button {
    margin-bottom: 20px;
  }
}
