body {
  background-image: url('./mayhem-background-03.jpg?t=1');
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #000e3b;
  background-size: 1350px auto;
  padding-top: 780px;
}

.logo {
  position: absolute;
  top: 80px;
  left: 60px;
  width: 223px;
  height: 134px;
  background-image: url('./logo-mayhem.png');
  background-repeat: no-repeat;
  background-size: contain;
}

.main {
  padding: 15px;
}

/* Container formatting */
#subscribe-form {
  position: relative;
  margin: 0 auto;
  text-align: center;
  padding: 20px 60px 30px;
}

#subscribe-control {
  display: grid;
  grid-template-columns: 360px 263px;
  grid-template-areas:
    'email button'
    'subscribe subscribe';
  margin: 0 auto;
  width: fit-content;
}

#subscribe-form.hide,
#subscribe-thank-you.hide {
  display: none;
}

#general-error.show {
  display: block;
}

/* Links and text formatting */

.page-title span,
#subscribe-thank-you h1 {
  position: relative;
  font-family: PoppinsBoldItalic;
  font-size: 36px;
  line-height: 48px;
  text-transform: uppercase;
  background-image: linear-gradient(
    180deg,
    #b2bde9 15px,
    #ffffff 34px,
    #b2bde9 36px,
    #b2bde9 66px,
    #ffffff 79px
  );
  -webkit-background-clip: text;
  color: transparent;
  background-clip: text;
  display: inline-block;
}

.page-title span::before,
.page-title span::after {
  position: absolute;
  content: attr(data-text);
  color: #fff;
}

.page-title span::before {
  color: #fff;
  top: -1px;
  left: 0;
  z-index: -1;
}
.page-title span::after {
  color: #000;
  top: 2px;
  left: -2px;
  padding: 0;
  z-index: -2;
}

h2.call-to-action {
  font-family: PoppinsRegular;
  font-size: 18px;
  line-height: 20px;
  color: #a5b5d6;
}

.page-title {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#subscribe-thank-you {
  background-color: #1b2372;
  margin: 20px auto;
  padding: 15px 15px 30px 15px;
  box-shadow: -5px 5px 0 #000;
  max-width: 450px;
  text-align: center;
}

#subscribe-thank-you h1 {
  margin-bottom: 0px;
}

#subscribe-thank-you p {
  font-family: PoppinsRegular;
  font-size: 18px;
  line-height: 20px;
  color: #a5b5d6;
}

footer a,
footer a:visited,
#subscribe-form a,
#subscribe-form a:visited {
  color: #ffdd3d;
}

.list-social,
.list-discussion {
  list-style-type: none;
  margin: 0 0 20px 0;
  padding: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.list-social li,
.list-discussion li {
  margin: 0;
  padding: 0;
}

#subscribe-form a:active {
  color: #fff;
}

#subscribe-form p,
.subscribe-thank-you p {
  font-family: PoppinsRegular;
  font-size: 12px;
  color: #fff;
}

#subscribe-form .error-message {
  font-family: PoppinsRegular;
  font-size: 12px;
  color: #f00;
}

#general-error {
  margin-bottom: 15px;
}

/* Controls */

input:focus {
  outline: none;
}

#subscribe-form .error-message {
  display: none;
}

.textbox-email {
  grid-area: email;
}

#subscribe-form .textbox-email.error .error-message,
#subscribe-form .checkbox-subscribe.error .error-message {
  display: block;
  margin: 15px 0;
}

.textbox-email.error input[type='text'],
.checkbox-subscribe.error input[type='checkbox'] {
  border: 1px solid #ad0101;
}

.textbox-email input[type='text'] {
  -webkit-appearance: none;
  appearance: none;
  background-color: #081b49;

  color: #fff;
  font-family: PoppinsRegular;
  font-size: 18px;
  text-align: left;
  height: 61px;
  width: 100%;
  border-radius: 6px;
  padding: 5px 10px 5px 70px;
  box-sizing: border-box;
  margin-top: 3px;
  border: 1px solid #3b527d;
  background-image: url('icon-email.svg');
  background-repeat: no-repeat;
  background-position: 21px center;
}

.textbox-email input[type='text']::placeholder {
  color: #a5b5d6;
  opacity: 1; /* Ensures the color is fully vibrant in Firefox */
}

.textbox-email input[type='text']:hover,
.textbox-email input[type='text']:focus {
  border: 3px solid #3b527d;
  transition: all 0.1s ease-in-out;
}

.textbox-email input[type='text']:focus {
  border: 3px solid #3b527d;
  background-color: #113ba1;
  color: #fff;
  transition: all 0.1s ease-in-out;
}

.checkbox-subscribe {
  grid-area: subscribe;
  padding: 20px 120px 0 120px;
}

.checkbox-subscribe label {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  flex-direction: row;
}

.checkbox-subscribe input[type='checkbox'] {
  appearance: none;
  position: relative;
  border-radius: 6px;
  background-color: #081b49;
  border: 1px solid #3b527d;
  width: 40px;
  height: 40px;
}

.checkbox-subscribe input[type='checkbox']:checked:before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('icon-check.svg') center center no-repeat;
  background-size: 70%;
  transition: transform 0.12s ease-in-out;
}

.checkbox-subscribe input[type='checkbox']:hover,
.checkbox-subscribe input[type='checkbox']:focus {
  border: 3px solid #3b527d;
  transition: all 0.1s ease-in-out;
}

.checkbox-subscribe label p {
  margin: 0;
  text-align: left;
}

input[type='submit'] {
  position: relative;
  color: transparent;
  border: 0px;
  font-size: 24px;
  font-family: PoppinsBold;
  background-color: transparent;
  background-image: url('button-sign-up.svg');
  background-size: contain;
  background-repeat: no-repeat;
  height: 75px;
  width: 263px;
  left: -16px;
  grid-area: button;
  cursor: pointer;
}

input[type='submit']:active {
  top: 2px;
}

footer {
  font-family: GTAmerica;
  font-size: 10px;
  line-height: 18px;

  text-align: center;
  max-width: 400px;
  color: #666;
  margin: 0 auto 30px;
}

footer h3 {
  color: #fff;
}

footer a,
footer a:visited {
  color: #999;
  text-decoration: none;
}

footer a:hover {
  color: #ccc;
}

.footer-kabam-logo {
  margin-top: 15px;
  width: 100px;
  height: 100px;
}

.footer-kabam-logo img {
  width: 100px;
  height: 100px;
}

.list-logo {
  list-style-type: none;
  margin: 0 auto 30px;
  padding: 0;
  display: grid;
  grid-template-columns: 100px 100px;
  width: fit-content;
}

.list-logo li {
  padding: 0;
}

.list-logo li .footer-warner-bros-logo img {
  padding-top: 10px;
  width: 100px;
}

.list-legal {
  list-style-type: none;
  margin: 0 auto 30px;
  padding: 0;
  display: flex;
  flex-direction: row;
  width: fit-content;
  gap: 15px;
}

@media (max-width: 1100px) {
  body {
    background-size: 1000px auto;
    padding-top: 600px;
  }

  .logo {
    width: 100px;
    top: 30px;
    left: 30px;
  }

  #subscribe-form {
    padding-left: 30px;
    padding-right: 30px;
  }

  #subscribe-control {
    max-width: 400px;
    grid-template-columns: 1fr;
    grid-template-areas:
      'email'
      'subscribe'
      'button';
  }

  .checkbox-subscribe {
    padding: 15px 10px 25px;
  }

  input[type='text'] {
    margin-bottom: 15px;
  }

  input[type='submit'] {
    left: auto;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  body {
    background-size: 550px auto;
    padding-top: 300px;
  }
  .logo {
    width: 100px;
    top: 15px;
    left: 15px;
  }

  .page-title {
    margin-bottom: 0;
  }

  .page-title span,
  #subscribe-thank-you h1 {
    font-size: 24px;
    line-height: 24px;
    background-image: linear-gradient(
      180deg,
      #b2bde9 6px,
      #ffffff 15px,
      #b2bde9 24px,
      #b2bde9 27px,
      #ffffff 34px
    );
  }

  #subscribe-form {
    margin: 0 15px 15px 15px;
    padding: 0;
  }

  h2.call-to-action {
    font-size: 12px;
    line-height: 16px;
  }

  .textbox-email input[type='text'] {
    font-size: 13px;
  }

  input[type='submit'] {
    width: 190px;
    height: 55px;
  }
}

@media (max-width: 450px) {
  .page-title {
    line-height: 20px;
  }

  .page-title span,
  #subscribe-thank-you h1 {
    font-size: 17px;
  }
}

@font-face {
  font-family: GTAmerica;
  font-style: normal;
  font-weight: 700;
  src: url(/wp-content/themes/mayhemteaser/GT-America-Standard-Regular.otf);
}

@font-face {
  font-family: PoppinsRegular;
  src: url(/wp-content/themes/mayhemteaser/Poppins-Regular.ttf);
}

@font-face {
  font-family: PoppinsBold;
  src: url(/wp-content/themes/mayhemteaser/Poppins-ExtraBold.ttf);
}

@font-face {
  font-family: PoppinsBoldItalic;
  src: url(/wp-content/themes/mayhemteaser/Poppins-ExtraBoldItalic.ttf);
}
