*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;

}

img {
  display: block;
}

a {
  color: #007da0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: #5d2f85;
}



/* body backgrounds */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background-image: url('design_images/background_pic.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; 
  background-attachment: fixed;
}

/* Menu */

.logo{
  margin-left: 30px;
}

.logo a {
  text-decoration: none;
  font-family: serif; 
  font-weight: bold; 
  font-style: italic;
  font-size: 30px;
  color: white; /* Inside color of the text */
  
  /* Creates a 2px black outline */
  text-shadow: 
    -2px -2px 0 #000,  
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000;
}


nav {
  font-family: sans-serif;
}

.navbar {
  display: flex;
  height: 100px;
  justify-content: flex-start;
  align-items: center;
  color: rgb(0, 0, 0);
}

/* Desktop Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
  font-weight: bold;
}

.nav-links a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffd700;
}

#enru {
  visibility:hidden;    /* LANGUAGE SWITCH IS TEMPORARILY NOT VISIBLE */
  margin-left: auto;
  margin-right: 25px;
  border: 1px solid #333;
  background-color: #ffffff;
}

#enru span{
  background-color: #333;
  color: #ffffff;
}

#enru a {
  text-decoration: dashed;
  color: #007da0;
}

/* Hide the checkbox and hamburger icon on desktop */
.menu-toggle, .hamburger {
  display: none;
}

@media (max-width: 768px) {
  /* Reveal the hamburger button */

  .hamburger {
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
  }

  /* Style the 3 bars of the hamburger */
  .hamburger span {
    display: block;
    height: 7px;
    width: 100%;
    border: 2px solid #000;
    background-color: rgb(255, 255, 255);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* Turn the horizontal links into a hidden vertical dropdown */
  .nav-links {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    width: 80%;
    position: absolute;
    top: 70px; /* Adjust based on your navbar height */
    right: 0;
    background-color: #333;
    text-align: center;
    padding: 20px 0;
  }

  .nav-links li {
    margin: 15px 0; /* Space out links vertically */
  }

  /* When checkbox is checked, display the menu */
  .menu-toggle:checked ~ .nav-links {
    display: flex;
  }
  
  /* Animated Hamburger to 'X' when checked */
  .menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* end menu */

/*-------------------------*/

/*common for all pages*/

.main {
  flex: 1; /* Tells the main content to grow and absorb all extra space */
}

/*footer*/
footer{
  text-align: center;
  background-color: #ffffff;
  font-size: 12px;
  max-width: 200px;
}

/*page specific*/

/*INDEX PAGE*/


#bzko {
  margin-top: 10%;
  border: 2px solid #ffd95b;
  border-radius: 12px;
  padding: 12px 18px;
  width: 70%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 100px;
  background-color: #812d2d;
  color:#ffd95b;
}

#bzko a{
  color:#ffd95b;
  text-decoration: underline;
}


#pcq_header {
  margin-top: 11%;
  text-align: center;
  font-family: serif; 
  font-weight: bold; 
  font-style: italic;
  font-size: 95px;
  color: white; /* Inside color of the text */
  
  /* Creates a 2px black outline */
  text-shadow: 
    -2px -2px 0 #000,  
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000; 
}





/* THE INNER PAGES */


/* TEXT PAGE - white bacground and centered p 500px or less */

.page {
  margin-top: 15px;
  margin-left: 10%;
  margin-right: 10%;
  margin-bottom: 40px;
  padding: 30px;
  background-color: #ffffff;
  display: grid;
  justify-content: center;
}

.page p{
  margin-bottom: 15px;
  max-width: 500px;
}

.first_page{
  margin-bottom: 0 !important;
}

.mid_page{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}

.last_page{
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* GRID LAYOUT (pg the qest - 4 blocks rearranging from 2x2 on desktop to 1x4 on cell */

/* 1. Desktop Layout (Default) */

.grid_container {
  display: grid;
  /* Splits the space into 2 equal columns side-by-side by default */
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px;                  /* Spacing between the boxes */
  padding: 0px;
}

/* 2. Mobile Layout (Screens 768px wide or smaller) */
@media (max-width: 768px) {
  .grid_container {
    /* Forces the grid down to a single column so items stack */
    grid-template-columns: 1fr; 
  }
}


/*NUMBERS ON THE QUEST PAGE*/

.thequest_number {
  text-align: center;
  font-size: 40px;
  /*color: #e47230;
  font-weight: bold;*/
}

.thequest_letters {
  margin-top: 15px;
}

/*THE RESR OF THE QUEST*/

.header2 {
  text-align: center;
  font-size: 40px;
  color: #e47230;
  font-weight: bold;
}

.header3 {
  margin-top: 25px;
  font-size: 20px;
  color: #e47230;
  font-weight: bold;
}

/*PAST GAMES BLOCK FROMATTING*/

.past_games_block {
  display: inline-block; /* Sits in line, but keeps block properties like width/height */
  width: 200px;
  margin-bottom: 20px;
  vertical-align: top;
}

.header3_nomargin {
  font-size: 20px;
  color: #e47230;
  font-weight: bold;
}

.past_games_block p {
  margin-top: 15px;
}

/* CONTACT FORMATTING */

.contact_container {
  text-align: center;
}

.contact_block{
  display: inline-block; /* Sits in line, but keeps block properties like width/height */
  width: 280px;
  margin-bottom: 20px;
  vertical-align: top;
  text-align: center;
}

.contact_block p {
  margin-top: 15px;
  font-size: 35px;
}