@font-face {
  font-family: 'script_mt_boldregular';
  src: url('../resources/fonts/scriptmtbold-webfont.woff2') format('woff2'),
  url('../resources/fonts/scriptmtbold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'leelawadee-ui';
  src: url('../resources/fonts/LeelawUI.ttf') format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'leelawadee-ui-semilight';
  src: url('../resources/fonts/LeelUIsl.ttf') format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'leelawadee-ui-bold';
  src: url('../resources/fonts/LeelaUIb.ttf') format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-cream: #D0C9C1;
  --c-grey: #474036;
  --c-dark-grey: #231F20;
  --c-brown: #421E0D;
  --c-dark-brown: #201207;
  --c-brick: #A66D63;

  --f-fancy: 'script_mt_boldregular', cursive;
  --f-sans: 'leelawadee-ui', sans-serif;
  --f-sans-light: 'leelawadee-ui-semilight', sans-serif;
  --f-sans-bold: 'leelawadee-ui-bold', sans-serif;

  font-size: 16px;

  --s-title: 1rem;
  --s-text: 0.8rem;

  --tr-header: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
  background-color: var(--c-cream);
  scroll-behavior: smooth;
}

body {
  padding-top: 150px;
  min-height: calc(100vh - 150px);
  max-width: 100vw;
}

.glass-container {
  backdrop-filter: blur(20px) brightness(0.65);
  -webkit-backdrop-filter: blur(20px) brightness(0.65);
  background-color: rgba(66, 30, 13, 0.35);
  border-radius: 15px;
  display: flex;
}

#title-container {
  margin: 0 auto 50px auto;

  width: max-content;
}

#title-container h1 {
  font-family: var(--f-fancy);
  font-size: 2rem;
  text-align: center;
  margin: 10px 15px;
  text-shadow: #00000080 0 3px 10px;
}

body::-webkit-scrollbar-track
{
  box-shadow: inset 0 0 6px #0000004C;
  border-radius: 0;
  background-color: var(--c-cream);

}

body::-webkit-scrollbar
{
  width: 6px;
  background-color: #F5F5F5;
}

body::-webkit-scrollbar-thumb
{
  width: 12px;
  border-radius: 10px;
  box-shadow: 0 0 6px #0000004C;
  background-color: #20120780;
  opacity: 50%;
}

dialog *:focus, dialog:focus {
  outline: none!important;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0)!important;
  -webkit-tap-highlight-color: transparent!important;
}

dialog, dialog::backdrop{
  opacity: 0;
}

dialog[open], dialog[open]::backdrop {
  opacity: 1;
}

@media (min-width: 901px) {

  #title-container h1 {
    font-size: 3.5rem;
  }
}
