/* Font Definitions */
@font-face {
  font-family: sanvitopro;
  src: url("data/sanvitopro-regular.otf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: iowan;
  src: url("data/bitstream-iowan-old-style-regular.otf");
  font-weight: normal;
  font-style: normal;
}

/* Root Variables */
:root {
  --Kbrown: #663300;
  --Ksanvitopro: sanvitopro, cursive, verdana, serif;
  --Kiowan: iowan, cursive, verdana, serif;
}

/* Global Styles */
html {
  background-image: url("/images/background.png");
  cursor: url("/images/cursor_0_base.png"), auto;
}

body {
  margin: 0;
  background-color: #f5e6c0; /* Fallback background color */
  background-image: url("/images/background.png"); /* Set the new background image */
  cursor: url("/images/cursor_0_base.png"), auto;
  background-repeat: repeat;
  background-position: center; /* Center the background image */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  cursor: url("/images/cursor_0_base.png"), auto;
}

img {
  max-width: 100%;
  max-height: 100vh; /* Ensures the image fits within the viewport height */
  width: auto; /* Maintains aspect ratio */
  height: auto; /* Maintains aspect ratio */
  display: block;
}

* {
  box-sizing: border-box;
}

/* Fade-in Animation */
.fade-in {
  animation: fadeIn 2s;
  -webkit-animation: fadeIn 2s;
  -moz-animation: fadeIn 2s;
  -o-animation: fadeIn 2s;
  -ms-animation: fadeIn 2s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-moz-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Debugging Styles */
.dbgBORDER {
  border: 1px dotted red;
}

.dbgHIDE {
  display: none;
}

/* ************ */
/* *   DIVs   * */
/* ************ */


#home_div {
  height: 98vh;
  overflow-x: scroll;
  overflow-y: scroll;
  /* border: 1px solid blue; */
}

#others_div {
  display: none;
}

div.filler {
  height:50vh;
  /* background-color:teal; */
}


/* ************ */
/* *   TAGs   * */
/* ************ */

/* ---------------------------------------------------------------------------------------------------- */

img.homenavbar_logo {
  display: block;
  max-width: 90vw;
  max-height: 45vh;
  margin-left: auto;
  margin-right: auto;
  /* border: 1px solid green; */
}

img.homenavbar_img {
  display: block;
  max-width: 30vw;
  max-height: 45vh;
  margin-left: auto;
  margin-right: auto;
  /* border: 1px solid green; */
}


img.pagesnavbar_logo {
  display: inline-block;
  max-width: 30vw;
  max-height: 20vh;
  /* min-height: 10vh; */
  margin-left: auto;
  margin-right: auto;
  margin-top: 0px;
  margin-bottom: auto;
  padding: 0px;
  /* border: 1px solid green; */
}

img.pagesnavbar_img {
  display: inline-block;
  max-width: 10vw;
  max-height: 20vh;
  /* min-height: 10vh; */
  margin-left: auto;
  margin-right: auto;
  margin: 0px;
  padding: 0px;
  /* border: 1px solid green; */
}

img.icon {
  display: block;
  /* margin: auto; */
  /* position: absolute; */
  /* width: 4vw; */
  width: clamp(18px, 4vw, 48px);
}

p.article_ttl {
  display:inline-block;
  font-size: clamp(12pt, 3vw, 48pt);
  /* font-size: calc(12pt + 2vw); */
  /* font-size:3vw; */
  /* white-space:nowrap; */
}

p.article_txt {
  display:inline-block;
  font-size: clamp(10pt, 2vw, 40pt);
  max-height: 0px;
  transition: max-height 1s;
  overflow:auto; 
}

.gam_btn_img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 50vw;
  /* max-height: 50%; */
}

/* .bnr_btn_img { */
  /* display: inline; */
  /* margin-left: auto; */
  /* margin-right: auto; */
  /* max-width: 50%; */
  /* width: 50%; */
  /* height: 50px; */
  /* border: 1px solid black; */
/* } */

/* .img_basic {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  max-width: 100%; */
  /* max-height: 50%; */
  /* border: 1px solid black; */
/* } */

/* ---------------------------------------------------------------------------------------------------- */

/* table{ */
  /* display: inline; */
  /* border-collapse: collapse; */
  /* table-layout: fixed; */
/* } */

table.navbar_home {
  margin-left: auto;
  margin-right: auto;
}

/* table.navbar_pages { */
  /* margin-left: auto; */
  /* margin-right: auto; */
/* } */

/* td.navbar_pages {
} */


table.games_tbl {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

/* ---------------------------------------------------------------------------------------------------- */


h1 {
  color: var(--Kbrown);
  font-family: var(--Ksanvitopro);
  font-size: 7vw;
  font-style: italic;
  text-align: left;
  margin: unset;
  margin-left: 1vw;
}


input {
  font-family: var(--Kiowan);
  resize: both;
  font-size: 3vw;
  width: auto;
}

textarea {
  font-family: var(--Kiowan);
  resize: both;
  font-size: 3vw;
  width: 100%;
  margin: auto;
}


p {
  font-family: var(--Kiowan);
  font-size: clamp(12pt, 3.5vw, 22pt); /* Adjusted scaling for smoother transitions */
  text-align: left;
  color: var(--Kbrown);
  max-width: 90%;
  margin: auto;
  line-height: 1.5; /* Improves readability */
}

/* Adjust font size for larger screens */
@media (min-width: 768px) {
  p {
    font-size: clamp(12pt, 3vw, 20pt); /* Slightly smaller scaling for tablets and up */
  }
}

@media (min-width: 1200px) {
  p {
    font-size: clamp(12pt, 2.5vw, 18pt); /* Further refined for large screens */
  }
}

/* .centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
} */


/* ---------------------------------------------------------------------------------------------------- */


/* img { border: 1px solid red; }
p { border: 1px solid greenyellow; }
table { border: 1px solid blue; }
th { border: 1px dashed orange; }
tr { border: 1px solid darkgreen; }
td { border: 1px dashed darkviolet; } */


.dbgBORDER {
  border: 1px dotted red;
}

.dbgHIDE {
  display: none;
}
