@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  margin: 0;
  width: 100vw;
  height: 100vh;
  -webkit-animation: fadeIn 1.5s ease 0s 1 normal;
  animation: fadeIn 1.5s ease 0s 1 normal;
}

img {
  pointer-events: none;
  -webkit-animation: fadeIn 1.5s ease 0s 1 normal;
  animation: fadeIn 1.5s ease 0s 1 normal;
}

.overlay-color{
  mix-blend-mode: overlay;
}

@keyframes fadeIn {
    0% {
      opacity: 0
    }

    100% {
      opacity: 1
    }
  }

  @-webkit-keyframes fadeIn {
    0% {
      opacity: 0
    }

    100% {
      opacity: 1
    }
  }
  
#overlay-button {
  position: absolute;
  right: 1.2em;
  top: 2em;
  z-index: 5;
  cursor: pointer;
  user-select: none;
}
#overlay-button span {
  height: 2px;
  width: 24px;
  border-radius: 2px;
  background-color: #111;
  position: relative;
  display: block;
  transition: all .2s ease-in-out;
}
#overlay-button span:before {
  top: -10px;
  visibility: visible;
}
#overlay-button span:after {
  top: 10px;
}
#overlay-button span:before, #overlay-button span:after {
  height: 2px;
  width: 24px;
  border-radius: 2px;
  background-color: #111;
  position: absolute;
  content: "";
  transition: all .2s ease-in-out;
}
#overlay-button:hover span, #overlay-button:hover span:before, #overlay-button:hover span:after {
  background: #111;
}

input[type=checkbox] {
  display: none;

}

input[type=checkbox]:checked ~ #overlay {
  visibility: visible;

}

input[type=checkbox]:checked ~ #overlay-button:hover span, input[type=checkbox]:checked ~ #overlay-button span {
  background: transparent;


}
input[type=checkbox]:checked ~ #overlay-button span:before {
  transform: rotate(45deg) translate(7px, 7px);

}
input[type=checkbox]:checked ~ #overlay-button span:after {
  transform: rotate(-45deg) translate(7px, -7px);


}

#overlay {
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 2;
  visibility: hidden;
  position:fixed;
  opacity: 90%;
}
#overlay.active {

}
#overlay ul {
  flex-direction: column;
  text-align: center;
  height: 100vh;
  padding-top:5em;
  padding-left:1em;
  list-style-type: none;
}
#overlay ul li {
  padding: 0.2em;
 text-align: center;
}
#overlay ul li a {
}
#overlay ul li a:hover {
  color: #000!important;
}

/* ??????? */
.vertical-text {
  writing-mode: vertical-rl;       /* ???????? */
  text-orientation: mixed;         /* ??????????? */
  white-space: nowrap;             /* ???????????? */
  height: 90vh;                    /* ???????? */
}

.vertical-text > div {
  writing-mode: inherit;
  text-orientation: inherit;
  display: inline-block;
  margin-left: 2rem;               /* ?????? */
  max-height: 100%;
}

.vertical-text p {
  line-height: 1.8;
  font-size: 1rem;
}

