/* MARK: global variables
*/
:root {
  --background-color: black;
  --text-color: white;
  --text-color-dim: #999999;

  --button-background-color: #10101090;
  --button-background-color-hover: #40404090;

  scroll-behavior: smooth;
  -webkit-user-drag: none;
  user-select: none;
}

@font-face {
  font-family: "Clash";
  src: url(fonts/Clash_Regular.otf) format("opentype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Clash";
  src: url(fonts/Clash_Bold.otf) format("opentype");
  font-weight: bold;
  font-style: normal;
}

/* MARK: general
*/
* {
  color: var(--text-color);
  color-scheme: dark;
  font-family: "Clash", "Playpen Sans Thai", cursive;
  font-weight: var(--font-weight);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-align: center;
}

body {
  background-color: var(--background-color);
  margin: 0px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100dvh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url("assets/Background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 60%;
  font-size: 12px;
}

a {
  text-decoration: none;
  -webkit-user-drag: none;
  user-select: none;
}

h1 {
  margin-top: 25px;
  font-size: 5dvh;
  text-align: center;
  font-weight: bold;
  user-select: none;
}

h2 {
  font-size: 3dvh;
  margin: 0px;
  user-select: none;
  margin-top: 10px;
}

h3 {
  font-size: 2.5dvh;
  margin: 0px;
  user-select: none;
  margin-top: 20px;
}

img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

footer {
  display: flex;
  font-size: 1.5dvh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 2dvh;
}

footer span {
  margin-bottom: 15px;
  font-size: 2dvh;
}

footer p {
  color: var(--text-color-dim);
  margin: 0px;
  margin-bottom: 10px;
}

/*MARK: button
*/
.button {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  border-style: solid;
  border-radius: 12px;
  border-width: 2px;
  font-size: 2dvh;
  border-color: color-mix(in srgb, white 20%, transparent);
  background-color: var(--button-background-color);
  color: #ffffff;
  cursor: pointer;
  transition: all 200ms ease-in-out;
}

/* PC */
@media (pointer: fine) {
  .button:hover {
    background-color: var(--button-background-color-hover);
    box-shadow: 0 0 10px 0px color-mix(in srgb, white 30%, transparent);
  }
}

/* Mobile */
@media (pointer: coarse) {
  .button:active {
    background-color: var(--button-background-color-hover);
    box-shadow: 0 0 10px 0px color-mix(in srgb, white 30%, transparent);
  }
}

.button .icon {
  margin: 0px 0px 15px 0px;
  height: 8dvh;
  border-radius: 6px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0px;
}

.logo {
  height: 15dvh;
  margin-top: 3dvh;
}
