@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
   font-family: 'Avenir Next';
   src: local('AvenirNext-Bold');
   font-weight: bold;
   font-style: normal;
 }
 
 @font-face {
  font-family: 'Cedarville Cursive';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url(https://takaio.neocities.org/.well-known/CedarvilleCursive-Regular.ttf) format('truetype');
}
 
 html {
  scroll-behavior: smooth;
  scrollbar-color: rgb(255 255 255 / 50%) rgb(0 0 0 / 25%);
  scrollbar-gutter: stable;
  font-family: 'DM Sans';
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-shadow: inset 0 0 0 100000px rgba(46 17 17 / 75%);
  background-image: url(https://takaio.neocities.org/images/wiki/corkboard.jpg);
  background-size: 70%;
}

html::-webkit-scrollbar {
  display: none;
}

:root {
  font-family: 'Cedarville Cursive';
  font-kerning: normal;
}

.toggle {
  font-family: 'DM Sans';
}

#toggle {
  position: fixed;
  display: flex;
  height: fit-content;
  width: fit-content;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  bottom: 0%;
  left: 0%;
  padding: 5%;
  margin: 4%;
  z-index: 99;
  background: rgb(247, 235, 217);
  padding: 10px;
  border: solid 2px black;
  color: black;
  font-family: 'DM Sans';
  text-align: right;
  cursor: pointer;
  transition: all .3s ease-in-out;
}

#toggle:hover {
  box-shadow: rgb(255 252 244 / 50%) 0px 0 15px;
  background: rgb(255 252 244);
}

body {
  width: auto;
  overflow-y: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 5% 10% 2% 10%;
  height: 100%;
}

/* Body */

.heading {
  padding: 1%;
  width: 35%;
  max-width: 475px;
  min-height: 90px;
  text-align: center;
  user-select: none;
  overflow: visible;
  background-image: url('https://takaio.neocities.org/images/wiki/rippedPaper1.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-2deg);
  transition: all .3s ease-in-out;
  
}

.heading:hover {
  transform: rotate(-2.5deg);
  transition: all .3s ease-in-out;
  cursor: pointer;
}

.h-bg {
  height: 100%;

}

h1 {
  color: black;
  font-size: 3em;
  margin: 0px;
}

main {
  padding: 5%;
  padding-top: 3%;
  background-color: rgb(0 0 0 / 0%);
  width: 100%;
  height: 200vh;
  align-items: center;
}

section {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: fit-content;
  gap: 20px;
}

article {
  height: 400px;
  width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.credits {
  height: fit-content;
}

#item, #item2 {
  height: 100%;
  width: 100%;
  max-height: 325px;
  max-width: 300px;
  background: rgb(247, 235, 217);
  border: 2px solid black;
  box-sizing: border-box;
  transition: all .3s ease-in-out;
  transform-origin: 50% 20%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  top: -30px;
  padding: 3% 3% 0% 3%;
  user-select: none;
}

#item2 {
  position: relative;
  top: -15px;
  padding: 5% 3% 3% 3%;
  width: 85%;
}

#item:hover, #item2:hover {
  transform: rotate(1deg);
  user-select: none;
}

.image {
  background: green;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
  border: 2px solid black;
  box-sizing: border-box;
}

article img {
  user-select: none;
  object-fit: contain;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

article::before, article::after, #item::before, #item::after {
  box-sizing: border-box;
}

article p {
  margin: 0px;
  text-align: center;
  font-size: 1.5em;
}

br {
  display: block;
   margin: -8px 0;
}

span {
  color: blue;
}

a:link, a:visited, a:hover {
  text-decoration: none;
  color: black;
}

.pin {
  height: 75px;
  width: 75px;
  position: relative;
  top: 3px;
  left: -35px;
  z-index: 1;
  user-select: none;
}

.row {
  display: flex;
  justify-content: center;
  gap: 1%
}

/* DIVIDER*/ 
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150vw;
  height: 150px;
  position: relative;
  right: 500px;
  background-image: url('https://takaio.neocities.org/images/wiki/divider.webp');
  background-position: center;
  background-size: 100%;
  background-repeat: repeat-x;
}

/* Modal Shit */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99;
    backdrop-filter: brightness(0.5);
    visibility: hidden;
    opacity: 1;
    transition: opacity .3s;
    cursor: default;
}

.modal:link, .modal:visited {
  color: inherit;
  text-decoration: none;
}

.modal:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 101;
}
 
/* Displaying Modal */

.modal:target {
    visibility: visible;
    opacity: 1;
}

.modal .modal-container {
  display: flex;
  flex-direction: column;
  width: 300px;
  z-index: 105;
  background: #fff;
  padding: 1em;
  gap: 1em;
  justify-content: center;
  font-family: 'DM Sans';
  border: 2px solid black;
}

.NEI-modal-container {
  width: 375px;
  min-height: 90px;
  text-align: center;
  user-select: none;
  overflow: visible;
  background-image: url('https://takaio.neocities.org/images/wiki/rippedPaper2.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  display: flex;
  flex-direction: column;
  padding: 3em;
  gap: 0.5em;
  justify-content: center;
  z-index: 105;
  border: none;
}

.modal .modal-header, .modal .NEI-modal-header {
  min-height: fit-content;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.modal-header h3 {
  margin: 0px;
}

.NEI-modal-header h3, .NEI-modal-header br {
  margin: 0px;
  font-family: 'Cedarville Cursive';
  line-height: 1.2em;
  font-size: 1.6em;
}

.modal .modal-body {
  min-height: fit-content;
  max-height: calc(100vh - 100px);
  overflow: auto;
  text-align: center;
}

.modal-body p {
  margin: 0px;
  font-family: 'DM Sans';
  color: rgba(0 0 0 / 60%);
}

/* footer */ 

footer {
  margin: 20px 0px 0px 0px;
  width: 100%;
  position: relative;
  bottom: 0%;
  display: flex;
  justify-content: space-evenly;
  font-family: 'DM Sans';
}

footer p, footer a:visited {
  color: rgb(255 255 255 / 35%);
  text-decoration: none;
  transition-duration: .2s;
  width: 150px;
  display: flex;
  justify-content: center;
}

footer p:hover {
  color: rgb(255 255 255 / 75%);
  text-shadow: rgb(255 252 244 / 50%);
  transition-duration: .2s;
}