@import url("https://fonts.googleapis.com/css2?family=Cedarville+Cursive&display=swap");
@import url("https://fonts.googleapis.com/css?family=Niramit");

html,
body {
  background-color: #b4c3c6;
}


ul { list-style-type: none; }

a {
  color: #b4c3c6;
  transition: 0.5s all;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  background-color: #f6f5f2;
}

hr {
  border: 1px dashed #b4c3c6;
  margin: 0px;
}

body {
  font-family: "Niramit", sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1.3;
  color: #9c9c9c;
  margin: 30px 0;
  padding: 0;
  text-align: left;
}

.title {
  font-size: 30px;
  font-family: "Niramit", sans-serif;
  color: #b4c3c6;
  letter-spacing: 0.5px;
  line-height: 1;
  margin: 20px 0;
  padding: 0;
  text-transform: lowercase;
}

.cursive {
  font-size: 12px;
  font-family: "Cedarville Cursive", sans-serif;
  font-weight: bold;
  color: #b4c3c6;
  letter-spacing: 1px;
  text-transform: lowercase;
}

h2 {
  font-size: 15px;
  font-family: "Niramit", sans-serif;
  font-weight: normal;
  color: #b4c3c6;
  text-transform: lowercase;
  border-bottom: dotted 2px;
}

/*#container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center; 
  min-height: 100vh;
}*/

#boxes {
  top: calc(50% - 300px);
  left: calc(50% - 300px);
  height: 600px;
  width: 600px;
  position: absolute;
  background: white;
  box-shadow: 0 0 0 2px white;
  overflow: visible;
}

@media screen and (max-width: 600px) {
  #boxes {
    top: calc(100% - 650px);
    left: calc(100% - 500px);
  }
}

#boxes:before,
#box_1:before,
#box_1:after {
  content: "";
  background: url() no-repeat center center/cover;
  height: 300px;
  width: 300px;
  position: absolute;
  box-shadow: inset 0 0 0 2px white;
}

#boxes:before {
  top: 0;
  right: 0;
  background-image: url("images/lemon.png");
}
#box_1:before {
  bottom: 0;
  left: 0;
  background-image: url("images/lime.png");
}
#box_1:after {
  bottom: 0;
  right: 0;
  background-image: url("images/mushroom.jpg");
}

#box_1,
#box_2,
#box_3,
#box_4 {
  width: 100px;
  margin: 0;
  float: none;
  overflow: visible;
  font-size: 0;
}

.panel {
  font-family: "Niramit", sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: #9c9c9c;
  padding: 0;
  margin: 0;
  background: none;
  position: absolute;
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: #b4c3c6 transparent;
  display: none;
}

#welcome {
  display: block;
  top: 15px;
  left: 30px;
  width: 250px;
  height: 275px;
  overflow-y: auto;
}

#about,
#credits,
#navi {
  display: block;
  padding: 10px;
  border: 10px solid transparent;
  overflow-y: auto;
  box-sizing: border-box;
  height: 300px;
  width: 300px;
  background: white;
  opacity: 0;
  transition: 1s all;
  z-index: 2;
}

#about {
  top: 0;
  right: 0;
}
#about img,
#navi img {
  max-width: 100% !important;
}

#credits {
  bottom: 0;
  right: 0;
}

#navi {
  bottom: 0;
  left: 0;
}

#about:hover,
#credits:hover,
#navi:hover {
  opacity: 1;
}

@media screen and (max-width: 600px) {
  #boxes {
    top: 0;
    left: 0;
    height: auto;
    width: 100%;
    position: static;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #boxes:before,
  #box_1:before,
  #box_1:after {
    display: none;
  }

  #box_1,
  #box_2,
  #box_3,
  #box_4 {
    width: 100%;
    margin: 1px 0;
    overflow: visible;
  }

  #welcome,
  #about,
  #navi,
  #credits {
    position: static;
    width: 90%;
    max-width: 500px;
    margin: 30px auto;
    display: block;
    opacity: 1;
  }
}
