@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500&family=Roboto:wght@300;400;500;700&display=swap");
:root {
  --main-color: #fa590d;
  --second-color: #ec930e;
}
html {
  scroll-behavior: smooth;
}

body {
  background-color: #17003b;
  /* background: linear-gradient(#422ebd 0%, #28026b 100%); */
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
}

.bar {
  width: 100%;
  padding: 1rem;
  background-color: #17003b;
  display: flex;
  justify-content: space-between;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem;
}
header {
  position: relative;
  /* background-color: blue; */
}
.hero {
  display: grid;
  justify-items: center;
  align-content: space-between;
  padding: 2rem 2rem 0rem 2rem;
}
.bg-topteam2 {
  background: url(./images/topteam2-bg.jpg) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  /* padding-bottom: 2rem; */
}
.top_hero,
.bottom_hero {
  position: absolute;
  width: 50%;
}
.text-sm {
  font-size: 0.8rem;
}
@media (min-width: 600px) {
  .hero {
    padding: 4rem 4rem 0rem 4rem;
  }
  .top_hero,
  .bottom_hero {
    width: 25%;
  }
}

.top_hero {
  top: 0;
  left: 0;
  z-index: -1;
}
.bottom_hero {
  bottom: 0;
  right: 0;
  z-index: -1;
}

.btn {
  width: 200px;
  outline: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--second-color);
  min-width: 200px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  padding: 16px 20px;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  overflow: hidden;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.95;
}

.btn .animation {
  border-radius: 100%;
  animation: ripple 0.6s linear infinite;
}

@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1),
      0 0 0 20px rgba(255, 255, 255, 0.1), 0 0 0 40px rgba(255, 255, 255, 0.1),
      0 0 0 60px rgba(255, 255, 255, 0.1);
  }

  100% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.1),
      0 0 0 40px rgba(255, 255, 255, 0.1), 0 0 0 60px rgba(255, 255, 255, 0.1),
      0 0 0 80px rgba(255, 255, 255, 0);
  }
}
.details {
  display: grid;
}
@media (min-width: 600px) {
  .details {
    grid-template-columns: 1fr 1fr;
  }
}
.rules {
  padding: 1rem;
}
.reward {
  padding: 1rem;
}
.reward_img {
  display: flex;
  justify-content: center;
}
.reward_img > img {
  width: 80%;
}
.register {
  position: relative;
  display: grid;
  justify-items: center;
  font-family: "Noto Sans Thai", sans-serif;
}
.obj_img {
  position: relative;
}
@media (min-width: 700px) {
  .register {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
  }
  .reward_img > img {
    width: 80%;
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
  }
}
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* width: 100%; */
  max-width: 500px;
  background-color: #fff;
  padding: 15px;
  border-radius: 20px;
  position: relative;
}

.title {
  font-size: 28px;
  color: var(--main-color);
  font-weight: 600;
  letter-spacing: -1px;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 30px;
}

.title::before,
.title::after {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  border-radius: 50%;
  left: 0px;
  background-color: var(--main-color);
}

.title::before {
  width: 18px;
  height: 18px;
  background-color: var(--main-color);
}

.title::after {
  width: 18px;
  height: 18px;
  animation: pulse 1s linear infinite;
}

.message,
.signin {
  color: rgba(88, 87, 87, 0.822);
  font-size: 14px;
}

.signin {
  text-align: center;
}

.signin a {
  color: var(--main-color);
}

.signin a:hover {
  text-decoration: underline royvar(--main-color) alblue;
}

.flex {
  display: flex;
  width: 100%;
  gap: 6px;
}

.form label {
  position: relative;
}

.form label .input {
  width: 100%;
  padding: 10px 10px 15px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 10px;
}

.form label .input + span {
  position: absolute;
  left: 10px;
  top: 15px;
  color: grey;
  font-size: 0.6em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .input:placeholder-shown + span {
  top: 15px;
  font-size: 0.7em;
}

.form label .input:focus + span,
.form label .input:valid + span {
  top: 35px;
  font-size: 0.6em;
  font-weight: 600;
}

.form label .input:valid + span {
  color: green;
}

.submit {
  border: none;
  outline: none;
  background-color: var(--main-color);
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  transform: 0.3s ease;
}

.submit:hover {
  background-color: var(--second-color);
}

@keyframes pulse {
  from {
    transform: scale(0.9);
    opacity: 1;
  }

  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

footer {
  background-color: #17003b;
  color: #fff;
  font-family: "Noto Sans Thai", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  margin-top: 1rem;
}
footer > hr {
  width: 100%;
  border: 0;
  height: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin: 1rem 0;
}
footer > img {
  width: 200px;
  height: 44.44px;
}

.shadow__btn {
  cursor: pointer;
  padding: 10px 20px;
  border: none;
  font-size: 1rem;
  color: #fff;
  border-radius: 7px;
  letter-spacing: 4px;
  font-weight: 600;
  text-transform: uppercase;
  transition: 0.5s;
  transition-property: box-shadow;
}

.shadow__btn {
  background: rgb(236, 147, 14);
  box-shadow: 0 0 25px rgb(236, 147, 14);
}

.shadow__btn:hover {
  box-shadow: 0 0 5px rgb(236, 147, 14), 0 0 25px rgb(236, 147, 14),
    0 0 50px rgb(236, 147, 14), 0 0 100px rgb(236, 147, 14);
}
