/* FONT */
@import url('https://fonts.googleapis.com/css2?family=Kaisei+Tokumin&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth
}

body {
    font-family: "Kaisei Tokumin", Arial, serif;
    font-weight: 400;
    font-style: normal;
    text-align:center;
    background-color:black;
    color:white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a{
  display:block;
}

.top{
  flex-grow: 1;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  /* padding: 0 20%; */
}

.logo{
  /* Logo image centering: */
  margin: auto;
  /* --------------------- */

  width: min(100%, 300px);
}

.logo img{
  display: block;
}

footer {
  position: sticky;
  background-color: black;
  font-family: "MS Gothic", sans-serif;
  font-weight: bold;
  font-size: 0.8rem;
  overflow: hidden;
  bottom: 0;
  z-index: 2;

  display: block;
}

footer hr{
  display: none;
  margin: auto;
  margin-bottom: 10px;
}

/* START HAMBURGER BUTTON */
.button_container{
  position:fixed;
  top: 5%;
  right: 2%;
  height: 27px;
  width: 35px;
  cursor: pointer;
  z-index: 100;
  display: none;
}
.button_container:hover {
  opacity: .7;
}
.button_container.active .hamburger-top {
  transform: translateY(11px) translateX(0) rotate(45deg);
}
.button_container.active .hamburger-mid {
  opacity: 0;
}
.button_container.active .hamburger-bot {
  transform: translateY(-11px) translateX(0) rotate(-45deg);
}

.button_container span {
  background: #ffffff;
  border: none;
  height: 5px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all .35s ease;
  cursor: pointer;
}
.button_container span:nth-of-type(2) {
  top: 11px;
}
.button_container span:nth-of-type(3) {
  top: 22px;
}
/* END HAMBURGER BUTTON */

/* START HAMBURGER MENU */
.overlay {
  position: fixed;
  background: black;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s, height .35s;
  overflow: hidden;
  z-index: 3;
}
.overlay.open {
  opacity: .9;
  visibility: visible;
  height: 100%;
}
.overlay.open li {
  animation: fadeInRight .5s ease forwards;
  animation-delay: .35s;
}
.overlay.open li:nth-of-type(2) {
  animation-delay: .4s;
}
.overlay.open li:nth-of-type(3) {
  animation-delay: .45s;
}
.overlay.open li:nth-of-type(4) {
  animation-delay: .50s;
}
.overlay nav {
  position: relative;
  height: 70%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  font-family: 'Varela Round', serif;
  font-weight: 400;
  text-align: center;
}
.overlay ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  position: relative;
  height: 100%;
}
.overlay ul li {
  display: block;
  height: 25%;
  height: calc(100% / 4);
  min-height: 50px;
  position: relative;
  opacity: 0;
}
.overlay ul li a {
  display: block;
  position: relative;
  color: #FFF;
  text-decoration: none;
  overflow: hidden;
}
.overlay ul li img{
  max-width: 75%;
  max-height: auto;
}
.overlay ul li a:hover:after, .overlay ul li a:focus:after, .overlay ul li a:active:after {
  width: 100%;
}
.overlay ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  transform: translateX(-50%);
  height: 3px;
  background: #FFF;
  transition: .35s;
}
/* END HAMBURGER MENU */

/* START MEMORIES SECTION */
.bg-layer1{
  flex-grow: 1;
  background: linear-gradient(to right, #0a426a 0%,#530000 100%);
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bg-layer2{
  background: url("../images/pattern1.png") left top repeat;
  height:100%;
  flex-grow: 1;
  display: flex;

  justify-content: center;
  align-items: center;
  position:relative;
}

.memories-heading{
  position:absolute;
  top:0;
  left:0;
  align-self: flex-start;
  height: auto;
  width: min(100%, 500px);
}

.memories-content{
  margin: auto;
  align-self: center;
  justify-self: center;
}

.scrolling-background-container {
  position:relative;
  flex-grow: 1;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.scrolling-background{
  z-index: -1;
  position: relative;
  opacity: 0.25;
  background: url("../images/icons-bg.png") repeat;
  animation: slide 100s linear infinite;
  height: 2692px;
  width: 2692px;
  top: -60px;
}
/* END MEMORIES SECTION */

/* START CHARACTER SECTION */
.character-heading{
  position:absolute;
  top:0;
  left:0;
  align-self: flex-start;
  height: auto;
  width: min(100%, 500px);
  z-index: 2;
}

.character-description{
  background-color: rgba(0, 0, 0, 0);
  position: relative;
  top:40%;
  z-index: 1;
  margin-bottom:-80px;
}

nav {
  padding:10px;
}

nav ul{
  list-style-type: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* END CHARACTER SECTION */

/* NAVIGATION BUTTONS */
.globalnav-button {
  height: 45px;
  width: 222px;
  outline-style: solid;
  outline-color:indigo;
  outline-width: 1px; 
}

#globalnav-button-top:hover {
  content:url('../images/top-focus.png');
  box-shadow: 0 0 30px #bc5fff;
}

#globalnav-button-omoide:hover {
  content:url('../images/omoide-focus.png');
  box-shadow: 0 0 30px #bc5fff;
}

#globalnav-button-profile:hover {
  content:url('../images/profile-focus.png');
  box-shadow: 0 0 30px #bc5fff;
}

#globalnav-button-projects:hover {
  content:url('../images/projects-focus.png');
  box-shadow: 0 0 30px #bc5fff;
}

/* START ANIMATIONS */
@keyframes slide {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -2692px -2692px; /* The image width */
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 20%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}
/* END ANIMATIONS */

/* START MEDIA */
@media (max-width: 767px) {
  footer{display:none}
}
@media (min-width: 768px) {
  nav{
    order: 1;
    margin: 0 auto;
  }

  footer{
    order: 2;
  }

  footer hr{display:block}

  nav ul{
    flex-direction: row;
  }

  /* Fix this repetition */
  .memories-heading{
    width: min(calc(50% - 1rem), 700px);
  }
  .character-heading{
    width: min(calc(50% - 1rem), 700px);
  }

  .button_container{
    display: none;
  }

  body footer{
    display:block;
  }

  .bg-layer1{
    height: 90vh;
  }

  .scrolling-background-container{
    height: 90vh;
  }
}
/* END MEDIA */
