body {
	margin: 0;
	font-family: lilex;
	overscroll-behavior-y: none;
}

@font-face {
  font-family: OMORI_GAME;
  src: url(../assets/fonts/OMORI_GAME.ttf);
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: OMORI_GAME2;
  src: url(../assets/fonts/OMORI_GAME2.ttf);
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: lilex;
  src: url(../assets/fonts/Lilex-VariableFont_wght.ttf);
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: lilex;
  src: url(../assets/fonts/Lilex-Italic-VariableFont_wght.ttf);
  unicode-range: U+0000-00FF;
  font-style: italic;
}


.row {
  background-color: #6c0fff;
  overflow-x: visible;
  overflow-y: hidden;
  display: grid;
  grid-template-columns: 15vw 70vw 15vw;
  min-height: 120vmin;
}


.row [class*="meta"] {
  position: relative;
  z-index: 0;

  color: white;
  width: 100%;
  background-size: 100%;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  -ms-interpolation-mode: nearest-neighbor;
}

.row .meta-right {
  background-image: url("../assets/backgrounds/borders/br.jpg");
}

.row .meta-left {
  background-image: url("../assets/backgrounds/borders/bl.jpg");
}

/* Style du milieu */
#frame {
  position: relative;
  z-index: 3;
  box-sizing: border-box;

  padding: 24px;
  background: transparent;
}

#frame::after {
  content: "";
  position: absolute;
  top: -24px;
  left: -24px;
  right: -24px;
  bottom: -24px;
  background: #fff;
  z-index: 1;
  pointer-events: none;
}

#frame::before {
  content: "";
  position: absolute;
  top: -48px;
  left: -48px;
  right: -48px;
  bottom: -48px;
  box-sizing: border-box;

  border-style: solid;
  border-width: 48px;
  border-image: url("../assets/BorderInner.png") 30 / 48px repeat;

  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  -ms-interpolation-mode: nearest-neighbor;

  z-index: 2;
  pointer-events: none;
}

#frame > * {
  position: relative;
  z-index: 4;
}

table {
  border-collapse: collapse;
  border: 2px solid rgb(140 140 140);
  font-family: sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

th {
  background-color: #ddb5ff;
}

th, td {
  border: 1px solid rgb(160 160 160);
  padding: 8px 10px;
}

/* Boites de dialogue */
.dialogue-box {
  position: relative;
  border: 1px solid black;
  background: black;
  padding: 1rem;
  overflow: auto;
  font-family: OMORI_GAME2;
  margin-bottom: 1em;
}

.dialogue-box .wb {
  border: 3px solid white;
}

.dialogue-box .pfp {
  float: right;
  display: flex;
  align-items: center;
  padding-left: 1em;
}

.dialogue-box .pfpl {
  float: left !important;
  padding: 0 1em 0 0 !important;
}


.dialogue-box > .wb {
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  box-sizing: border-box;
}

.dialogue-box > .wb > * {
  position: relative;
}

.dialogue-box > span {
  font-size: 28px;
  color: white;
  line-height: 29px;
}

.dialogue-box > span > span {
  display: inline-block;
  width: 41px;
}

.light {
    background-image: radial-gradient(#FFFFFF, #3F3F3F, #000000);
}

/* Uhhhh layout des photos polaroid ig? */

.polaroids {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1%;
}
.polaroid {
  flex: 0 0 calc(25% - 1%);
  padding: 0;
}

.polaroid img {
  width: 100%;
}

.secret { color: white }

@media only screen and (max-width: 900px) {
  #frame {
    width: 100vw;
  }

  .row .meta-right {
    display: none;
  }

  .row .meta-left {
    display: none;
  }
}
