@property --gradient_reveal {
  syntax: '<color>';
  initial-value: black;
  inherits: false;
}
@property --gradient_base {
  syntax: '<color>';
  initial-value: black;
  inherits: false;
}
@font-face {
  font-family: "InterDisplay";
  src: url("Fonts/InterDisplay-ExtraBold.woff2") format("woff2"),
  font-weight: extra-bold;
  font-style: normal;
}
@font-face {
  font-family: "InterDisplay";
  src: url("Fonts/InterDisplay-Bold.woff2") format("woff2"),
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "IBM-plex-sans";
  src: url("Fonts/IBMPlexSans-Medium.woff2") format("woff2"),
  font-weight: medium;
  font-style: normal;
}
/*flood font*/
@font-face {
  font-family: "FloodFont";
  src:  url("Fonts/FloodFont-Dry.woff") format("woff");
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "FloodFont";
  src:  url("Fonts/FloodFont-Light-Flood.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "FloodFont";
  src:  url("Fonts/FloodFont-Flooded.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "FloodFont";
  src:  url("Fonts/FloodFont-OverFlooded.woff") format("woff");
  font-weight: 900;
  font-style: normal;
}

html {
  background: gray;
  margin: 0px;
  padding: 0px;
  
}
body {
  display: flex;
  background: #202020;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  justify-content: center;
  align-items: center;
}
main_group {
  display: flex;
  flex-grow: 1;
  max-width: 90vw;
  gap: 0.5cm;
  max-height: 60vh;
  height: 50vh;
}
square {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 auto;
  height: auto;
  width: 45vw;
  max-width: 50vh;
  aspect-ratio: 1/1;
  background-image: radial-gradient(circle at top right, #505050 0, black 100%);
  padding: 1cm;
  box-sizing: border-box;
  color: whitesmoke;
  font-family: InterDisplay;
  font-weight: extra-bold;
  font-size-adjust: 1.4;
  box-shadow: 0px 0px 210px 0px rgba(255, 255, 255, 0.3);
  user-select: none;
}
contact-desc {
  display: flex;
  flex-direction: column;
  flex-shrink: 1;
  flex-grow: 1;
  flex-wrap: wrap;
  min-width: 0;
  justify-content: end;
  font-size-adjust: 0.8;
  user-select: all;
  font-family: IBM-plex-sans;
}
section_collection {
  display: flex;
  flex-wrap: wrap;
  direction: row;
  gap: 0.5cm;
  width: 100%;
  height: auto;
  flex-grow: 1;
}
.clickable_square {
  pointer-events: all;
  display: flex;
  flex: 1;
  font-family: inter;
  box-sizing: border-box;
  max-height: 100%;
  padding: 0.5cm;
  min-height: 3cm;
  min-width: 4cm;
  font: inter;
  color: white;
  font-family: InterDisplay;
  font-weight: bold;
  text-decoration: none;
  font-size-adjust: 0.7;
   box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 0.3);
  transition: --gradient_reveal 2s ease-out, --gradient_base 0.2s ease-out;
  
}

.clickable_square:hover {
  --gradient_reveal : transparent;
  --gradient_base : rgba(0, 0, 0, 0.7);
  box-shadow: 0px 0px 20px 0px rgba(255, 255, 255, 0.3);
  transition: --gradient_reveal 0s ease-in, --gradient_base 0.2s ease-in;
  user-select: none;
}
#video_game {
  background-image: linear-gradient(to bottom, var(--gradient_base), 30%, var(--gradient_reveal)), url("ButtonBG/CoverGAME.png");
  background-size: auto, cover;
  background-position: left;
}
#flood_font {
  background-image: linear-gradient(to bottom, var(--gradient_base), 30%, var(--gradient_reveal)), url("ButtonBG/FloodFont.svg");
  background-size: auto, cover;
  background-position: left;
}
#intro_movie {
  background-image: linear-gradient(to bottom, var(--gradient_base), 30%, var(--gradient_reveal)), url("ButtonBG/big_short_terminals.png");
  background-size: auto, cover;
  background-position: center;
}
#package_design {
  background-image: linear-gradient(to bottom, var(--gradient_base), 30%, var(--gradient_reveal)), url("ButtonBG/CoffePak.png");
  background-size: auto, cover;
  background-position: center;
}
#teaser {
  background-image: linear-gradient(to bottom, var(--gradient_base), 30%, var(--gradient_reveal)), url("ButtonBG/EtnoDvaras.png");
  background-size: auto, cover;
  background-position: right;
}
header {
  display: flex;
  z-index: 2;
  flex-direction: row;
  align-items: center;
  font-family: InterDisplay;
  color: whitesmoke;
  font-size: 40pt;
  height: 4cm;
  gap: 0.5cm;
  justify-content: space-between;
  position: sticky;
  top: 0px;
  background-image: linear-gradient(to bottom, #202020, 60%, transparent);
  text-shadow: 0px 0px 10px #202020;
  user-select: none;
}
.backbutton {
  display: flex;
  background: black;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 1cm;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
  box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 0);
  transition: background 0.8s ease-out, color 0.8s ease-out, box-shadow 0.2s ease-out;
  text-shadow: none;
}
.backbutton:hover {
  background: white;
  color: black;
  box-shadow: 0px 0px 210px 0px rgba(255, 255, 255, 1);
  transition: background 0s ease-in, color 0s ease-in, box-shadow 0.1s ease-in;
}
work-container {
  display: flex;
  flex-direction: column;
  width: 90vw;
  height: auto;
  margin: 0 auto;
  gap:0.5cm;
}
#video_container {
  display: flex;
  flex-shrink: 1;
  flex-grow: 0;
  min-width: 20px;
  height: 70vh;
  max-width: auto;
  flex-grow: 0;
  aspect-ratio: 16/9;
}
#video_container_2 {
  display: flex;
  min-width: 20px;
  height: 70vh;
}
.horizontal-layout {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap-reverse;
  justify-content: stretch;
  align-content: start;
  flex-grow: 1;
  height: auto;
  gap: 0.5cm;
}
.horizontal-layout.layout-shrink {
  flex: 0 1;
}
.vertical-layout-description {
  display: flex;
  flex-direction: column;
  flex: 1 1;
  flex-wrap: wrap;
  gap: 0.5cm;
}
.vertical-layout {
  display: flex;
  flex-direction: column;
  gap: inherit;
  flex-wrap: wrap;
  min-width: 5cm;
  width: 6cm;
  flex-grow: 1;
  flex-shrink: 1;
  
}
teaser-button {
  display: flex;
  background: black;
  flex: 1;
  color: white;
  padding: 1cm;
  font-family: IBM-plex-sans;
  font-size: 18pt;
  justify-content: center;
  user-select: none;
  box-shadow: 0px 0px 0px 0px rgba(193, 176, 143, 1);
}
teaser-button:hover {
  color: black;
  background: ghostwhite;
  box-shadow: 0px 0px 50px 0px rgba(193, 176, 143, 1);
  transition: background 0.1s ease-out, color 0.2s ease-out, box-shadow 0.2s ease-out;
  cursor: pointer;
}
teaser-button:active {
  color: black;
  background: #FFD685;
  box-shadow: 0px 0px 50px 0px rgba(193, 176, 143, 0.5);
  transition: background 0s linear, color 0s linear, box-shadow 0s linear;
}
.standart-wrap {
  flex-wrap: wrap;
}
description {
  background-color: black;
  display: flex;
  color: white;
  flex: 1;
  flex-grow: 1;
  font-family: IBM-plex-sans;
  font-weight: medium;
  font-size: 14pt;
  height: auto;
  box-sizing: border-box;
  padding: 1cm;
  min-width: 300px;
  overflow-y: auto;
  max-height: 70vh;
}

.wide_display {
  width: 100%;
}
.header_image {
  display: block;
  flex-grow: 1;
  flex-shrink: 1;
  height: 70vh;
  gap: 0;
  min-width: 100px;
  object-fit: cover; 
}

.Font_test {
  display: flex;
  flex: 1 1;
  font-family: FloodFont;
  font-size: 64pt;
  height: auto;
  min-height: 50vh;
  min-width: 400px;
  flex-basis: 25cm;
  resize: none;
  background: #5A81DB;
  color: white;
  border-style: none;
  box-shadow: 0px 0px 0px 0px rgba(90, 129, 219, 1);
  transition: background 0.2s ease-out, box-shadow 0.4s ease-out;
}
.Font_test:hover {
  background: #8197D2;
  box-shadow: 0px 0px 25px 0px rgba(90, 129, 219, 1);
  transition: background 0.1s ease-in, box-shadow 0.2s ease-in;
}

set_weight_btn {
  user-select: none;
  display: flex;
  font-family: IBM-plex-sans;
  font-size: 18pt;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
  color: whitesmoke;
  background: black;
  min-width: 6cm;
  height: auto;
  min-height: 2.4cm;
  box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, 0);
}
set_weight_btn:hover, descriptionset_weight_btn:focus {
  color: black;
  background: ghostwhite;
  cursor: pointer;
  box-shadow: 0px 0px 50px 0px rgba(90, 129, 219, 1);
  transition: background 0.1s ease-out, color 0.2s ease-out, box-shadow 0.2s ease-out;
}
set_weight_btn:active {
  background: #5A81DB;
  color: white;
  box-shadow: 0px 0px 100px 0px rgba(90, 129, 219, 0.5);
  transition: background 0s linear, color 0s linear, box-shadow 0s linear;
}
#font_preview {
  background-color: #5A81DB;
  font-family: FloodFont;
  font-size: 32pt;
}
.horizontal_gal {
  background: gray;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 1cm;
  height: fit-content;
  gap: 1cm;
}
.gal_image {
  display: flex;
  width: 50%;
}
#gameFrame {
  display: block;
  width: 100%;
  height: 100%;
  border:none;
}
.game_frame {
  display: block;
  flex-grow: 1;
  flex-shrink: 1;
  height: 70vh;
  width: 55%;
  gap: 0;
  min-width: 900px;
  object-fit: cover; 
}
.game_fullscreen {
  display: flex;
  z-index: 1;
  background: black;
  flex: 0 1;
  color: white;
  padding: 1cm;
  font-family: IBM-plex-sans;
  font-size: 18pt;
  justify-content: center;
  user-select: none;
  text-decoration: none;
  box-shadow: 0px 0px 0px 0px rgba(132, 159, 178, 1);
}
.game_fullscreen:hover {
  color: black;
  background: ghostwhite;
  box-shadow: 0px 0px 50px 0px rgba(132, 159, 178, 1);
  transition: background 0.1s ease-out, color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.game_fullscreen:active {
  color: black;
  background: #849FB2;
  box-shadow: 0px 0px 50px 0px rgba(132, 159, 178, 0);
  transition: background 0s linear, color 0s linear, box-shadow 0s linear;  
  cursor: pointer;
}

.wide_display.pixel-img {
  image-rendering: pixelated;
  image-orientation: -moz-crisp-edges;
  image-orientation: crisp-edges;
}