@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

:root {
  --bg: #08447b;
  --max-width: 1000px;
}

html {
  overflow-x: hidden;
}

html * {
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  font-family: "Roboto", sans-serif;
  padding: 20px;
  overflow-x: hidden;
}

main {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
}

#chemy-link a {
  color: white;
  text-decoration: none;
}

#preheader,
#preheader a {
  color: white;
  text-underline-offset: 2px;
  font-size: 0.8rem;
}

#header {
  position: relative;
  margin: 30px 0;
  margin-top: 0;
}

#header-title {
  max-width: 700px;
  font-size: 3rem;
  font-weight: 600;
  color: white;
  margin-top: 40px;
}

#header-description {
  color: white;
  max-width: 420px;
}

#event-locale {
  margin-top: 30px;
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  border: 1px solid black;
  padding: 15px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#event-info__title {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 5px 0;
}

.event-info__entry {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-info__entry i {
  font-size: 1.3rem;
  width: 25px;
  text-align: center;
}

#event-title {
  -ms-word-break: break-all;
  word-break: break-all;
  word-break: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
  color: transparent;
  -webkit-text-stroke: 1px white;
  font-weight: 900;
  line-height: 0.8;
  font-size: 3.5rem;
}

#logo {
  margin: 30px 0;
}

#logo img {
  width: 100px;
}

/* menu */
p#menu_additional {
    line-height: 1.2;
    margin-bottom: 15px;
}



/* form */
#event-form {
  margin: 20px 0;
  background-color: white !important;
  border-radius: 15px !important;
  padding: 20px 20px;
 position: relative;
}

#event-form #formtitle {
  text-align: center;
  font-weight: bold;
  color: var(--bg);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

#event-form form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#event-form input,
#event-form select,
textarea {
  background-color: transparent;
  border: none;
  outline: none;
  width: 100%;
}

.input-wrapper {
  padding: 13px 15px;
  border-radius: 6px;
  background-color: #264e8310;
  width: 100%;
}

#event-form select:invalid,
#event-form select option[disabled] {
  color: gray;
}

#event-form option {
  color: black;
}

#event-info {
  position: relative;
  margin-top: 100px;
}

button {
  background-color: var(--bg);
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 10px 0;
  font-weight: bold;
  font-size: 1rem;
}

button:disabled {
    background-color: gray;
}
#event-form span {
  margin-top: 10px;
}
#event-form span,
#event-form a {
  font-size: 0.6rem;
  text-align: center;
  color: black;
}

#bg-mainimage {
  position: absolute;
  right: -150px;
  text-align: end;
  bottom: -50px;
  margin-top: 100px;
  z-index: -1;
}

#bg-mainimage::before {
  content: "";
  width: 100%;
  height: 120px;
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(255, 255, 255, 0) 100%);
}

#bg-mainimage img {
  width: 50%;
}

#bg-bottomleft {
  display: none;
}

#top-bg-image {
  display: block;
  position: absolute;
  left: -20px;
  right: -20px;
  top: -50px;
  z-index: -2;
}
#top-bg-image img {
  width: 100%;
}

#preheader {
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
}

#preheader a {
  font-size: 1rem;
}

strong {
  font-weight: bold;
}

#form-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.9);
    height: 100%;
    width: 100%;
    border-radius: 16px;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    font-size: larger;
font-weight: bold;
}

#bg-topright {
    display:none;
    position: absolute;
    top: 0;
    z-index: -1;
    justify-content: end;
    right: 0px;
}

#bg-topright img {
  width: 70%;
}

/* Estilos Desktop */
@media screen and (min-width: 1024px) {
  #bg-topright {
    display: flex;
  }

  #bg-mainimage::before {
    background: transparent;
  }

  #logo {
    margin: 0;
  }

  #logo img {
    width: 150px;
  }

  #header-title {
    margin: 0;
  }

  #header {
    position: static;
    margin: 30px 0;
  }

  #preheader {
    margin-top: 10px;
    text-align: initial;
    position: relative;
  }

  #logo {
    position: absolute;
    right: 50px;
    top: 0;
  }

  #content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  #event {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    gap: 30px;
    width: 100%;
    justify-content: space-between;
  }

  #event-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
  }

  #chemy-link {
    text-align: end;
    position: absolute;
    bottom: 0;
    right: 0;
  }

  #event-form {
    max-width: 350px;
    width: 100%;
    margin: 0;
  }

  #bg-mainimage {
    position: fixed;
    z-index: -1;
    bottom: -2px;
    left: 0;
    right: 0;
    margin: auto;
    height: auto;
    width: 430px;
  }

  #bg-mainimage img {
    width: 430px;
  }

  #bg-bottomleft {
    display: block;
    position: fixed;
    z-index: -1;
    left: 0px;
    bottom: -2px;
  }

  #bg-bottomleft img {
    width: 30vw;
  }

  #top-bg-image {
    display: none;
  }

  #event-title {
    font-size: 5.5rem;
    width: 350px;
  }
}
