@import url(./reset.css);
@import url(./header.css);
@import url(./footer.css);

:root {
  --common-padding: calc((100% - 1400px) / 2);
}

@media (max-width: 1500px) {
  :root {
    --common-padding: 4%;
  }
}

#visual {
  background-size: cover;
  width: 100%;
  min-height: 305px;
  position: relative;
  padding: 60px var(--common-padding);
  background-color: #252225;
  background-image: url(../images/visual_bg.png);
  background-position: center right 300px;
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

#visual p {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5; /* 150% */
}

#visual span {
  color: #fff;
  font-size: 26px;
  font-weight: 500;
  line-height: 136.2%; /* 35.412px */
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid #fff;
}

#visual strong {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  line-height: 136.2%; /* 57.204px */
}

#visual button {
  /* padding: 10px 30px 12.5px;
  background: #1c3f95;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  border-radius: 50px;
  border: 2px solid #fff; */
  margin-top: 20px;
}
#visual button {
  max-width: 160px;
}

#visual button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result_page #visual button {
  display: none;
}

#event {
  width: 92%;
  max-width: 1400px;
  margin: 20px auto 0;
  cursor: pointer;
}

#event .pc {
  display: block;
}
#event .mo {
  display: none;
}

#info {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  gap: 15px;
}

.result_page #info {
  margin-bottom: 150px;
}

#info > div {
  border-radius: 20px;
  border: 2px solid #004b8b;
  box-shadow: 0px 10px 24px 0px rgba(0, 0, 0, 0.2);
  padding: 20px;
  background: #fff;
  overflow: hidden;
  z-index: 10;
  transition: 0.75s ease;
  width: 100%;
}

#info > div .marquee_box {
  display: flex;
  gap: 10px;
  position: relative;
  padding-top: 30px;
}

#info .marquee_box > span {
  color: #707070;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  position: absolute;
  top: 0;
}

#info .marquee_box > span:nth-of-type(1) {
  left: 0;
}

#info .marquee_box > span:nth-of-type(2) {
  left: calc(50% + 10px);
}

#info > div:nth-of-type(2) {
  background-image: url(../images/info_bg.svg);
  background-position: top right;
  background-size: 185px;
  background-repeat: no-repeat;
}

#info .info_tit {
  display: flex;
  align-items: center;
  color: #12273a;
  font-size: 20px;
  font-weight: 700;
  line-height: 136.2%; /* 29.964px */
  gap: 10px;
  margin-bottom: 15px;
}

#info .info_tit > img {
  width: 24px;
}

.marquee-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  background: #f6f6f6;
  border: 1px solid #dddddd;
}

#info > div:nth-of-type(1) .marquee-wrap {
  height: 100px;
}

#info > div:nth-of-type(2) .marquee-wrap {
  height: 60px;
}

.marquee-wrap.wrap3 {
  background: none;
  border: none;
}

.marquee-wrap::before {
  content: "국내";
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: red;
  position: absolute;
  top: -50px;
}

.marquee {
  width: max-content;
  height: fit-content;
  gap: 15px;
  position: absolute;
  display: flex;
  white-space: nowrap;
  background: none;
  overflow: hidden;
  padding-right: 15px;
  /* animation-name: slidemarquee;
  animation-timing-function: linear;
  animation-fill-mode: infinite; */
}

/* .marquee-wrap.wrap1 .marquee {
  animation-duration: 50s;
}
.marquee-wrap.wrap1 .marquee2 {
  animation-delay: -25s;
}
.marquee-wrap.wrap2 .marquee {
  animation-duration: 120s;
}
.marquee-wrap.wrap2 .marquee2 {
  animation-delay: -60s;
}
.marquee-wrap.wrap3 .marquee {
  animation-duration: 90s;
}
.marquee-wrap.wrap3 .marquee2 {
  animation-delay: -45s;
} */

#info > div:nth-of-type(1) .marquee li {
  border-radius: 50px;
  border: 1px solid #a3a3a3;
  background: #fff;
  width: auto;
  height: 65px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.05);
}

#info > div:nth-of-type(1) .marquee li img {
  object-fit: contain;
}

#info > div:nth-of-type(2) .marquee li {
  width: 100%;
  display: flex;
  align-items: center;
  height: fit-content;
}

#info > div:nth-of-type(2) .marquee li a {
  width: 100%;
  height: 100%;
  cursor: pointer;
  padding: 15px 80px 15px 25px;
  border-radius: 10px;
  border: 1px solid #e2e2e2;
  background: #fff;
  color: #222;
  font-size: 16px;
  font-weight: 400;
  line-height: 136.2%; /* 21.792px */
  transition: 0.35s ease;
  position: relative;
}
#info > div:nth-of-type(2) .marquee li a::after {
  content: "";
  width: 18.5px;
  height: 10px;
  background-image: url(../images/icon/arrow-r.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.35s ease;
}

#info > div:nth-of-type(2) .marquee li a:hover {
  border-radius: 10px;
  border: 1px solid #343443;
  background: #f6f6f6;
}

#info > div:nth-of-type(2) .marquee li a:hover::after {
  opacity: 1;
}

@media (max-width: 1400px) {
  #visual {
    background-position: center right -100px;
    background-size: cover;
  }
}

@media (max-width: 1024px) {
  #visual {
    background-image: url(../images/visual_bg_mo.png);
    background-position: center right;
  }

  #info {
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    padding-bottom: 0;
    max-width: 100%;
  }

  #info > div:nth-of-type(1),
  #info > div:nth-of-type(2) {
    width: 100%;
    max-width: 100%;
    position: unset;
  }
  #info > div:nth-of-type(1) ul {
    align-items: center;
  }

  #info > div:nth-of-type(2) .marquee {
    width: 100%;
    height: fit-content;
    max-width: 100%;
    align-items: flex-start !important;
    flex-wrap: wrap;
    padding-right: 0;
    border-radius: 0;
    overflow: visible;
  }
  #info > div:nth-of-type(2) .marquee li {
    width: calc((100% - 10px) / 2);
  }

  #info > div:nth-of-type(2) {
    max-height: fit-content;
  }

  #info > div:nth-of-type(2) .marquee li {
    width: 100%;
  }

  #info > div:nth-of-type(2) .marquee li a {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }

  #info > div:nth-of-type(2) .marquee li a::after {
    opacity: 1;
    right: 15px;
  }

  .marquee-wrap.wrap3 {
    height: fit-content;
    overflow-y: scroll;
    max-height: 500px;
    min-height: 150px;
    border-radius: 0;
    align-items: flex-start;
    transition: 0.5s ease;
  }

  #info > div:nth-of-type(2).is_active .marquee-wrap.wrap3 {
    max-height: 500px;
  }

  .marquee-wrap.wrap3::-webkit-scrollbar-thumb {
    border-radius: 50px;
  }

  .marquee-wrap.wrap3 .marquee {
    position: unset;
    animation: none;
  }

  .marquee-wrap.wrap3 .marquee2 {
    display: none !important;
  }

  #info > div:nth-of-type(2) .marquee li a {
    padding: 10px 40px 10px 15px;
    white-space: wrap;
  }

  .wrap3 .marquee {
    animation: none !important;
  }
}

@media (max-width: 768px) {
  #visual {
    background-position: center right -100px;
    min-height: 0;
    padding: 40px var(--common-padding);
  }

  #info > div:nth-of-type(1) .drop_btn {
    display: none;
  }

  #visual p {
    font-size: 16px;
  }
  #visual strong {
    font-size: 30px;
  }

  #visual span {
    font-size: 20px;
  }

  #event .pc {
    display: none;
  }
  #event .mo {
    display: block;
  }

  #info > div {
    padding: 20px;
    max-height: unset;
  }

  #info .info_tit {
    font-size: 18px;
    gap: 5px;
  }

  #info .info_tit > img {
    width: 20px;
  }

  #info > div .marquee_box {
    padding-top: 0;
  }
  #info .marquee_box > span {
    width: 100%;
    position: unset;
  }

  #info > div > div {
    flex-direction: column;
  }

  .marquee-wrap.wrap3 {
    align-items: flex-start;
    justify-content: flex-start;
    border-radius: 0;
  }

  #info > div ul {
    flex-direction: row;
  }

  .marquee-wrap {
    width: 100%;
  }

  .marquee {
    position: absolute;
    display: flex;
    align-items: center;
    white-space: nowrap;
    background: none;
    width: max-content;
    overflow: hidden;
    animation: slidemarquee 50s linear infinite;
    padding: 0;
    padding-right: 15px;
  }
  .marquee2 {
    animation-delay: -25s;
  }

  @keyframes slidemarquee {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-100%);
    }
  }

  .wrap1 .marquee {
    animation: slidemarquee 50s linear infinite;
  }
  .wrap1 .marquee2 {
    animation-delay: -25s;
  }
  .wrap2 .marquee {
    animation: slidemarquee 135.7s linear infinite;
  }
  .wrap2 .marquee2 {
    animation-delay: -67.85s;
  }

  #info > div:nth-of-type(2) .marquee li a {
    font-size: 14px;
  }
}

@media (max-width: 550px) {
  #info > div {
    padding: 15px;
  }
}

@keyframes slidemarquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
