@font-face {
  font-family: "Krungthep";
  src: url("fonts/ChicagoFLF.ttf");
}
@font-face {
  font-family: 'basiic';
  src: url(https://cinni.net/fonts/basiic.ttf);
}

body {
  background-image: url('images/8.png');
  background-repeat: repeat;
  font-family: "Inconsolata", Menlo, Geneva;
  font-size: 0.9rem;
  margin: 0;
  overflow-x: hidden;
}

/* grid container */
.holy-grail-grid {
  display:grid;
  grid-template-areas:
      'header'
      'main-content'
      'left-sidebar'
      'right-sidebar'
      'footer';
}

/* general column padding */
.holy-grail-grid > * {
  padding: 1rem;
}

/* assign columns to grid areas */
.holy-grail-grid > .header {
  grid-area: header;
  background: white;
}
.holy-grail-grid > .main-content {
  grid-area: main-content;
  padding-top: 3rem;
}
.holy-grail-grid > .left-sidebar {
  grid-area:left-sidebar;
  padding-top: 4rem;
}
.holy-grail-grid > .right-sidebar {
  grid-area:right-sidebar;
  padding-top: 4rem;
}
.holy-grail-grid > .footer {
  grid-area:footer;
}

.holy-grail-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
        'header header header header'
        'left-sidebar main-content main-content right-sidebar'
        'footer footer footer footer';
}

a {
  color: black;
  text-decoration: none;
}

a:hover{
  color: LimeGreen;
}

.menu-deco {
  font-size: 1.3rem;
  font-family: "Krungthep", "Inconsolata", Menlo;
  line-height: .9;
  user-select: none;
  pointer-events: none;
}

.menu {
  display: flex;
}

.header {
  background-color: white;
  border-bottom: 2px solid black;
  height: 1.3rem;
  width: 100%;
  position: fixed;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 5px;
}

.header ul { list-style-type: none; display: flex; margin: 0; padding: 0; font-size: 1rem; font-weight: normal; }
.header li { margin: 0 15px; font-family: "Krungthep", "Inconsolata", Menlo; }

.menu-btn { display: none; }
.menu-icon { display: none; cursor: pointer; padding: 10px; }


.window {
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto 2rem auto;
}

.window p {
  padding: 0 10px 0 10px;
}

.window img {
  width: 100%;
  height: auto;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px;
  display: block;
}

.details {
  border-bottom: 1px solid black;
  display: flex;
  align-items: center;
  padding: 4px;
  font-family: "Krungthep";
  font-size: 10px;
  user-select: none;
}

.details p {
  margin: 0;
}

.title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  gap: 10px;
}

.title {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: "basiic";
}

.side-image {
  height: 25px;
}

.home-card {
  position: relative;
  width: 100%;
  max-width: 700px;
}

.rectangle {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 440px;
  background-color: white;
  border: 2px solid black;
  padding: 10px;
  box-sizing: border-box;
}

.rect1,
.rect2,
.rect3 {
  position: absolute;
  width: 100%;
  height: 440px;
  background-color: white;
  border: 2px solid black;
  padding: 10px;
  box-sizing: border-box;
}

.rect1 {
  top: 6px;
  left: 6px;
  z-index: 3;
}

.rect2 {
  top: 12px;
  left: 12px;
  z-index: 2;
  box-shadow: 2px 2px;
}

.rect3 {
  top: 13px;
  left: 14px;
  z-index: 1;
  background-color: black;
}


.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  padding: 40px 10px;
  width: 100%;
  max-height: 330px;
  overflow-y: hidden;
  box-sizing: border-box;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid-item a {
  font-size: 1.1rem;
  font-family: "basiic";
  margin-top: 5px;
}

.grid-item img {
  height: 35px;
  width: auto;
}

.grid-item a:hover {
  text-decoration: underline;
}

.arrow-container {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  max-width: 660px;
  margin: 3rem 2.1rem;
  padding: 0 10px;
}

#info p {
  font-size: 1rem;
}

/* mobile */
@media (min-width: 100px) and (max-width: 600px) {

  .holy-grail-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      'header'
      'left-sidebar'
      'main-content'
      'right-sidebar'
      'footer';
    }
    .holy-grail-grid > .left-sidebar {
    min-height: 17rem;
    width: 100%;
    box-sizing: border-box;
    }
    .holy-grail-grid > .main-content {
      padding-top: 0;
      padding-bottom: 0;
    }
    .holy-grail-grid > .right-sidebar {
      display: none;
    }
    #info {
      display: block;
      margin-left: auto;
      margin-right: auto;
      display: flex;
      justify-content: center;
      margin-top: 1.8rem;
      margin-bottom: 1rem;
      width: 90%;
      max-width: 300px;
    }
    #phaistos,
    #fish,
    #nonstop {
      display: none;
    }
    .menu {
      display: none;
      flex-direction: column;
      width: 100%;
      background-color: white; }
    .menu-deco {
      display: none;
    }
    .header {
      flex-direction: column;
      align-items: flex-start;
      height: auto;
      padding: 0 10px;
    }
    .menu-icon {
      display: block;
      font-size: 1.3rem;
      font-family: "Krungthep";
      align-items: center;
      height: 30px;
    }
    .menu-icon::before {
      content: "✸"; font-size: 1.4rem; margin-right: 10px; line-height: 1; }
    .menu-text {
      font-size: 1.2rem;
      font-family: "Krungthep", "Inconsolata", Menlo;
      line-height: 1;
      margin-right: 10px;
      user-select: none;
      pointer-events: none;
    }
    .header ul {
      list-style-type: none;
      display: none;
      margin: 0;
      padding-bottom: 10px;
    }
    .menu li {
      margin: 10px 0;
      padding: 0 10px;
    }
    .menu-btn:checked ~ .menu { display: flex; flex-direction: column; }
    .grid-container {
      grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
      padding: 30px 10px;
      overflow-y: auto;
      max-height: 360px;
    }
    .rectangle {
      border-right: 4px solid black;
      border-bottom: 4px solid black;
    }
    .rect1,
    .rect2,
    .rect3 {
      display: none;
    }
}

/* tablet */
@media (min-width: 601px) and (max-width: 899px) {
  .holy-grail-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      'header'
      'left-sidebar'
      'main-content'
      'right-sidebar'
      'footer';
    }
    #info {
    width: 90%;
    max-width: 300px; 
  }
    .holy-grail-grid > .left-sidebar {
    min-height: 10rem;
    min-width: 100%;
    padding-top: 4rem; 
    display: flex;
    justify-content: center;
  }
  .holy-grail-grid > .main-content {
  padding-top: 0;
  display: flex;
  justify-content: center;
}

    .buttons, .holy-grail-grid > .right-sidebar {
      display: none;
    }
    #phaistos,
    #nonstop,
    #fish {
      display: none;
    }
    .grid-container {
      padding: 30px 10px;
      max-height: 360px;
      overflow-y: auto;
  }
}

/* desktop breakpoint */
@media (min-width:900px) {
    .holy-grail-grid {
        grid-template-columns: 325px 3fr 3fr 305px;
        grid-template-areas:
            'header header header header'
            'left-sidebar main-content main-content right-sidebar'
            'footer footer footer footer';
    }
    .holy-grail-grid > .main-content {
      padding-top: 5.4rem;
      padding-left: .1rem;
    }
    .holy-grail-grid > .left-sidebar {
      padding-top: 4rem;
      min-height: 9rem;
      display: flex;
      flex-direction: column;
    }
    .holy-grail-grid > .right-sidebar {
      padding-top: 4rem;
    }
    .window {
    width: 90%;
    max-width: 300px;
  }
    #info {
      width: 240px;
      margin-left: 1.5rem;
    }
    #nonstop {
    width: 250px;
    margin-top: 12.5rem;
    margin-left: 1.3rem;
    }
    #fish {
      width: 220px;
      margin-left: 1.8rem;
    }
    #phaistos {
      width: 224px;
      margin-left: 2rem;
      margin-top: 19rem;
    }
    .buttons {
      transform: translateX(12px);
    }
    .buttons img {
      width: 130px;
      height: 20px; 
    }
}