@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: url(https://takaio.neocities.org/.well-known/AvenirNextCyr-Bold.woff2) format('woff2');
   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;
}

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

body {
  background: rgb(46 17 17);
  width: auto;
  overflow-y: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2% 10%;
  max-height: 100%;
}

main {
  background-color: rgb(0 0 0 / 25%);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  align-items: center;
  gap: 1%;
}

h1 {
  margin: 0px;
  font-family: 'Cedarville Cursive';
  font-style: normal;
  color: white;
  font-size: 3em;
  user-select: none;
}

section {
  width: 90%;
  max-width: 1500px;
  display: grid;
  grid-template-columns: 52% 48%;
  grid-template-rows: 38% 27% 35%;
  height: 80%;
}

div img {
  transition: all .05s ease-in-out;
  transition: transform .15s ease-in-out;;
  user-select: none;
  object-fit: contain;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  box-sizing: border-box;
  --c: white;
  --w: 0px;
  filter:drop-shadow(var(--w) 0 0 var(--c)) drop-shadow(calc(var(--w) * -1) 0 0 var(--c)) drop-shadow(0 var(--w) 0 var(--c)) drop-shadow(0 calc(var(--w) * -1) 0 var(--c));
  padding: 4px;
}

div img::before, div img::after {
  box-sizing: border-box;
}

div img:hover {
  --c: white;
  --w: 2px;
  filter:drop-shadow(var(--w) 0 0 var(--c)) drop-shadow(calc(var(--w) * -1) 0 0 var(--c)) drop-shadow(0 var(--w) 0 var(--c)) drop-shadow(0 calc(var(--w) * -1) 0 var(--c));
}

.box1 img:hover {
  transform: rotate(2deg);
  transition: transform .15s ease-in-out;
}

.box1, .box2, .box3 {
  display:flex;
  justify-content: left;
}

.valbox {
  display:flex;
  justify-content: right;
  grid-column: 1;
  grid-row: 1 / 4;
}
.box1 {
  grid-column: 2;
  grid-row: 1;
}
.box2 {
  grid-column: 2;
  grid-row: 2;
}
.box3 {
  grid-column: 2;
  grid-row: 3;
}

#item {
  height: 100%;
  width: fit-content;
  user-select: none;
}

/* tooltip */
#item:hover .tooltip {
  display: block;
}

.tooltip {
    display: none;
    background: rgb(255 252 244);
    padding: 10px;
    position: absolute;
    z-index: 101;
    width:fit-content;
    height:fit-content;
    border: solid 2px black;
    color: black;
    font-family: 'DM Sans';
    text-align: right;
    justify-content: center;
}

/* 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: 500px;
  z-index: 105;
  background: #fff;
  padding: 1em;
  gap: 1em;
  justify-content: center;
}

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

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

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

.modal-body p {
  margin: 0px;
}

/* footer */ 

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

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

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