html {
  scroll-behavior: smooth;
}

body { 
  margin: 0;
  padding: 0;
  overflow-x:hidden;
  font-family: "Comic Sans MS", "Comic Sans";
  background-image: url("../assets/yellow_pattern.jpg");
  background-repeat: repeat;
  background-size: 400px;
}

.flex {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.row {
  flex-direction: row !important;
}

.space {
  width: 60vw;
  text-align: center;
  margin: auto;
}

.banner {
  background-image: url("../assets/speed_lines.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.banner > img {
  object-fit: contain;
  width: 100%;
}

.menu nav {
  background: #161c22;
  border-bottom: 3px solid #ffd153;
  height: 60px;
  text-align: left;
  width: 100%;
  z-index: 0;
  position: relative;
  padding-bottom: 1vw;
  padding-top: 0.2vw;
}

.menu nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 90%;
}

.menu nav ul li {
  display: inline-block;
  margin-right: 20px;
}

.menu nav ul li > a {
  color: black;
  font-size: 1vw;
  letter-spacing: 0;
}

a {
  text-decoration: none;
}

.about {
  background-color: #161c22;
  color: white;
  padding: 10px 0px;
}

.about p {
  text-align: left;
  margin: 2% 4%;
}

.about .bubble {
  margin-left: 4%;
  color: black;
  font-weight: 700;
  max-width: 14vw !important;
  width: 14vw;
  font-size: 1vw;
  letter-spacing: 0;
  padding: 13px 4px !important;
}

.about .bubble:before {
  display: none;
}

.commands{
  background-color: #161c22;
}

.commands ul {
  text-align: left;
  margin-top: 3vw;
}

li > span {
  font-weight: 600;
}

.commands-list li {
  font-size: 1vw;
  list-style-type: square;
}

.invite {
  background-color: #161c22;
  color: white;
  padding: 10px 0px;
  padding-bottom: 4%;
}

.invite .bubble {
  margin: auto;
  margin-left: 4%;
  color: black;
  font-weight: 700;
  padding: 13px 4px !important;
  width: 40vw !important;
  font-size: 1.8vw;
  margin: auto;
  letter-spacing: 0;
  max-width: unset;
}

.invite .bubble:before {
  display: none;
}

.invite-container{
  justify-content: space-evenly;
}

.invite-container > a > img {
  width: 100%;
  margin-top: 6vw;
  margin-right: 20vw;
}

.invite-container > a, .invite-container > div {
  width: 50%;
}

.mirio-invite > img {
  width: 70%;
}




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

.comic {
  display:flex;
  flex-wrap:wrap;
  font-family: "Comic Sans MS", "Comic Sans";
  padding:1vmin;
}

.panel {
  background-color:#fff;
  border:solid 2px #000;
  box-shadow:0 6px 6px -6px #000;
  display:inline-block;
  flex:1 1;
  height:200px;
  margin:1vmin;
  overflow:hidden;
  position:relative;
}

.text {
  background-color:#fff;
  border:solid 2px #000;
  margin:0;
  padding:3px 10px;
  font-size: 1vw;
}

.top-left {
  left:-6px;
  position:absolute;
  top:-2px;
  transform:skew(-15deg);
}

.bottom-right {
  bottom:-2px;
  position:absolute;
  right:-6px;
  transform:skew(-15deg);
}

.speech {
  background-color:#fff;
  border:solid 2px #000;
  border-radius:12px;
  display:inline-block;
  margin:.5em;
  padding:.5em 1em;
  position:relative;
  left: 6vw;
  font-size: 12px;
}

.speech:before {
  border:solid 12px transparent;
  border-left:solid 12px #000;
  border-top:solid 12px #000;
  bottom:-24px;
  content:"";
  height:0;
  left:24px;
  position:absolute;
  transform:skew(-15deg);
  width:0;
}

.speech:after {
  border:solid 10px transparent;
  border-left:solid 10px #fff;
  border-top:solid 10px #fff;
  bottom:-19px;
  content:"";
  height:0;
  left:27px;
  position:absolute;
  transform:skew(-15deg);
  width:0;
}

.panel:nth-child(1) {
  flex-basis: 100%;
  height: 18vw; 
  background-image: url("../assets/manga_background_panel1.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.panel:nth-child(2) {
  flex-basis: 100%;
  height: 10vw;
  background-image: url("../assets/manga_background_panel2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.panel:nth-child(3) {
  flex-basis: 200px;
  background-image: url("../assets/typing.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.panel:nth-child(4) {
  flex-basis: 200px;
  background-image: url("../assets/mirio_think.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

/* .bubble containers: add the texture above a solid background */
.bubble {
  max-width: 140px;
  margin: 0;
  padding: 2px 4px;
  text-align: center;
  font-family: "Comic Sans MS", "Comic Sans";
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.2rem;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" transform="rotate(25)" opacity="0.3" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g  fill="%23250E17"><circle cx="25" cy="25" r="12.5"/><circle cx="75" cy="75" r="12.5"/><circle cx="75" cy="25" r="12.5"/><circle cx="25" cy="75" r="12.5"/></g></svg>'),
    #fff;
  background-size: 12px, 100%;
  border: 0.4rem solid #000;
  position: relative;
}

/* for the highlight container change the solid backgorund to a yellow-ish hue */
.bubble--highlight {
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" transform="rotate(25)" opacity="0.8" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g  fill="%23d68810"><circle cx="25" cy="25" r="12.5"/><circle cx="75" cy="75" r="12.5"/><circle cx="75" cy="25" r="12.5"/><circle cx="25" cy="75" r="12.5"/></g></svg>'),
    #ffcd28;
  background-size: 13px, 100%;
  font-weight: 700;
}

/* for every .bubble container add a solid background behind the container itself, slightly offset */
.bubble:before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.15rem;
  width: 100%;
  height: 100%;
  /* with the same texture, but different color, for both the texture and the background */
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" transform="rotate(35)" opacity="1" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="%23250E17"><circle cx="25" cy="25" r="12.5"/><circle cx="75" cy="75" r="12.5"/><circle cx="75" cy="25" r="12.5"/><circle cx="25" cy="75" r="12.5"/></g></svg>'),
    #000;
  background-size: 12px, 100%;
  border: 0.4rem solid #000;
  z-index: -1;
}

@media only screen and (max-width: 801px) {
  .space {
    width: 80% !important;
  }

  .menu nav ul {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
  }

  .menu nav ul li {
    width: 30%;
    margin-bottom: 10px;
    height: 5vw;
    margin-right: 0;
  }
  
  .bubble { 
    z-index: unset;
    border: 0.25rem solid #000;
  }

  .bubble:before {
    border: 0.25rem solid #000;
  }

  .menu nav {
    padding: 2vw 0;
    height: 22vw;
  }

  .menu nav ul li > a {
    font-size: 2.5vw;
    letter-spacing: 0;
    position: absolute;
    left: 1.5vw;
  }

  .about .bubble {
    max-width: unset !important;
    width: 30vw;
    font-size: 2.8vw;
    letter-spacing: 0;
    padding: 3vw 1vw !important;
  }

  .about p {
    font-size: 2.5vw;
  }

  .commands ul {
    padding-left: 8vw;
    margin-top: 7vw;
  }

  .commands-list li {
    font-size: 2vw;
  }

  .panel:nth-child(1) {
    height: 40vw;
  }

  .panel:nth-child(2) {
    height: 20vw;
  }

  .panel:nth-child(4) {
    height: 35vw;
  }

  .text {
    font-size: 2vw;
  }

  .invite .bubble {
    width: 60vw !important;
    font-size: 2.8vw;
    max-width: unset !important;
  }

  .invite-container > a, .invite-container > div {
    width: 80%;
  }

}