:root {
  --blue: #69d1f0;
  --lightblue: #d4f3f6;
  --pink: #f4cbc7;
  --lightpink: #fce0fc;
  --purple: #cdb4db;
  --white: #fbfdff;

  --pinkS: #e66d9a;
  --blueS: #188edc;
  --purpleS: #a324ec;
  --lighterpink: #fff4ff;
  --blueOpaco: #4e717c;
  --blueGray: #adbfd5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "love";
  src: url("font/CRUSOGP_.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Averia";
  src: url("font/Averia.ttf") format("truetype"),
    url("font/Averia.woff2") format("woff2"),
    url("font/Averia.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Averia", "Segoe UI", sans-serif;
  color: var(--blueOpaco);
  background-color: #5393a7;
  background-image: url("./imagenes/secretshrineta/bg5.gif");
  background-position: center;
  background-repeat: repeat;
  background-blend-mode: screen;
}

img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}

h1 {
  margin: 0;
  font-family: "love", "Comic Sans MS", cursive;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  text-shadow: 1px 1px 0 var(--blueOpaco);
  font-weight: bold;
}

p {
  margin: 0;
}

a {
  color: var(--blueS);
  text-decoration: underline;
  text-decoration-style: dotted;
}

a:hover,
a:focus-visible {
  color: var(--blue);
}

a:focus-visible {
  outline: 3px solid var(--pinkS);
  outline-offset: 3px;
}

.main {
    width: min(95%, 900px);
    margin: 3% auto;
    background-color: var(--white);
    border-image-slice: 17 17 17 17;
    border-image-width: 21px;
    border-image-outset: 20px;
    border-image-repeat: repeat;
    border-image-source: url(./imagenes/secretshrineta/whitelace.png);
    border-style: solid;
}

.inner {
  margin: 10px;
  background-color: var(--purple);
  border: 2px dotted var(--pinkS);
  background-image: url("./imagenes/secretshrineta/bg1.gif");
  background-blend-mode: screen;
}

.innerinner {
  margin: 10px;
  border: 2px solid var(--pink);
}

.intro-row {
  display: flex;
  width: 100%;
}

.divleft {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.div1 {
  width: 100%;
  min-height: 100px;
  padding: 1.2rem 1rem 0.9rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("./imagenes/secretshrineta/bg3.png");
  background-position: 75px -10px;
  background-color: var(--blueGray);
  background-blend-mode: soft-light;
}

.tagline {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--lightblue);
  color: var(--blueS);
  border-block: 2px dotted var(--blueS);
  text-align: center;
}

.kobato-gif2-wrapper {
  width: 100%;
  min-height: 225px;
  background-color: var(--blueOpaco);
  overflow: hidden;
}

.kobato-gif2 {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.note-box {
  background-color: var(--lighterpink);
  color: var(--pinkS);
  border-top: 2px dotted var(--pinkS);
}

.note-box p {
  margin: 10px;
  line-height: 1.7;
}

.note-box img {
  display: inline-block;
  vertical-align: middle;
}

.div2 {
  flex: 1 1 45%;
  min-width: 0;
  border-left: 2px solid var(--pink);
  background-color: var(--white);
}

.kobato-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kobato-gif:hover {
  opacity: 0.7;
}

.div3 {
  position: relative;
  width: 100%;
  background-color: var(--blue);
  background-image: url("./imagenes/secretshrineta/bg1.jpg");
  background-position: -30px -30px;
  border-block: 2px solid var(--blueOpaco);
}

.border1 {
  margin: 15px;
  width: min(60%, 600px);
  background-color: var(--white);
  border-image-slice: 15 15 9 15;
  border-image-width: 15px 15px 9px 15px;
  border-image-outset: 0;
  border-image-repeat: stretch;
  border-image-source: url("./imagenes/music/border1.png");
  border-style: solid;
}

.border1 p {
  color: var(--blueOpaco);
  margin: 10px;
  line-height: 1.7;
}

.border1 p + p {
  margin-right: 65px;
}

.kobato-gif {
  position: absolute;
  right: -4px;
  bottom: 0;
  max-width: 500px;
  width: min(58vw, 500px);
}

.rose {
  position: absolute;
  bottom: -10px;
  left: -50px;
  width: clamp(60px, 12vw, 100px);
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  animation: scroll 12s linear infinite alternate;
}

.marquee-content img {
  width: auto;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.div4 {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  background-color: var(--pink);
  background-image: url("./imagenes/secretshrineta/bg3.gif");
  background-blend-mode: overlay;
  color: var(--pinkS);
  overflow: hidden;
}

.kobato-img2 {
  flex: 0 1 300px;
  width: 100%;
  max-width: auto;
  width: min(100%, 300px);
  min-width: 0;
  align-self: stretch;
  object-fit: contain;
  object-position: left center;
  z-index: 1;
}

.video-column {
  flex: 1 1 42%;
}

.video-box {
  position: relative;
  width: 100%;
  min-height: 230px;
  height: 100%;
}

.embed {
  width: 100%;
  height: 100%;
  min-height: 230px;
  border: 0;
}

.div4-text {
  flex: 1 1 58%;
  min-width: 0;
  padding: 1rem 1rem 0.5rem 0;
}

.div4-text p {
  line-height: 1.7;
}

.div4-text img {
  display: inline-block;
  vertical-align: middle;
}

.fairy-wrap {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

footer {
  padding: 1rem 0.75rem;
  text-align: center;
}

footer p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 90%;
}

@media (max-width: 900px) {
  .intro-row {
    flex-direction: column;
  }

  .divleft,
  .div2 {
    width: 100%;
    flex-basis: auto;
  }

  .div2 {
    border-left: 0;
    border-top: 2px solid var(--pink);
  }

  .kobato-img {
    min-height: 260px;
    object-position: center top;
  }

  .kobato-gif2, .kobato-gif2-wrapper {
    margin-left: 0;
    display: none;
  }

  .border1 {
    width: calc(100% - 30px);
  }

  .kobato-gif {
    display: none;
  }

  .div4 {
    flex-direction: column;
  }

  .kobato-img2 {
    flex-basis: auto;
    width: min(100%, 500px);
    align-self: flex-start;
    contain: content;
    display: none;
  }
  .rose {
    display: none;
  }

  .div4-text {
    padding: 0 1rem 1rem;
  }
}

@media (max-width: 600px) {
  .main {
    width: min(96%, 850px);
  }

  .inner {
    margin: 8px;
  }

  .innerinner {
    margin: 8px;
  }

  .div1 {
    min-height: 80px;
    padding-top: 1rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .note-box p,
  .border1 p,
  .div4-text p,
  footer p {
    font-size: 0.95rem;
  }

  .marquee {
    display: none;
  }

  .rose {
    display: none;
  }

  .video-box,
  .embed {
    min-height: 220px;
  }
}

@media (max-width: 400px) {
  .div1 {
    min-height: 70px;
  }

  .tagline,
  .note-box p,
  .border1 p,
  .div4-text p,
  footer p {
    font-size: 0.9rem;
  }
}
