﻿body {
  font-family: 'Arial', sans-serif;
  background-image: url('../img/bg/bg.jpg');
  background-size: contain;
  background-position: top;
  background-repeat: repeat;
  color: #bababa;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.logo_dau_trang {
  height: 150px;
  transition: filter 0.3s ease-in-out;
  margin-bottom: 10px;
}

.logo_dau_trang:hover {
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 1))
    drop-shadow(0 0 10px rgba(255, 255, 255, 1))
    drop-shadow(0 0 15px rgba(246, 255, 141, 1))
}

.banner_ben_phai {
  width: 300px;
  height: 100px;
  background: url('https://via.placeholder.com/300x100?text=Banner+Quảng+Cáo') no-repeat center;
  background-size: cover;
  border-radius: 10px;
}
.the_game {
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  width: 100%;
  padding-top: 100%;
  position: relative;
}
.noi_dung_the_game {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}
.the_game:hover {
  transform: scale(1.05);
}
.logo_game {
  width: 100%;
  height: 60%;
  object-fit: contain;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  filter: drop-shadow(0 4px 2px rgb(11, 16, 82));
}
.nut_vao_game {
  background-image: linear-gradient(to bottom, #fad9ad, #af4004);
  color: white;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 25px;
  border: solid 1px #7c6200;
  box-shadow: inset 0px 0px 0px 1px #834102;
  text-align: center;
  margin: 8px auto;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  transition: background-image 0.5s ease-in-out, 
              box-shadow 0.5s ease-in-out, 
              font-size 0.3s ease-in-out;
}

.nut_vao_game:hover {
  background-image: linear-gradient(to bottom, #faad06, #fb872e);
  box-shadow: 0 0 7px 3px rgba(255, 255, 255, 0.8);
  border: solid 2px #fac13c;
}
.van_ban_toc_do {
  color: #008ae8;
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 8px;
  font-weight: bold;
}
.banner_chan_trang {
  width: 100%;
  height: 150px;
  background: url('https://via.placeholder.com/1200x150?text=Banner+Chân+Trang') no-repeat center;
  background-size: cover;
  border-radius: 10px;
}
.thanh_ben {
  position: fixed;
  top: 300px;
  width: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 100px;
  z-index: 1000;
}
.thanh_ben_trai {
  left: 0;
}
.thanh_ben_phai {
  right: 0;
}
.quang_cao_ben {
  width: 100px;
  height: 150px;
  position: relative;
}
.quang_cao_ben a {
  display: block;
  width: 100%;
  height: 100%;
}
.quang_cao_ben img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease-in-out, filter 0.5s ease-in-out;
}
.quang_cao_ben img:hover {
  transform: scale(1.1);
  filter: 
  drop-shadow(0 0 5px rgba(255, 255, 255, 1))
  drop-shadow(0 0 10px rgba(255, 255, 255,1))
  drop-shadow(0 0 20px rgba(123, 240, 253, 1))
          
          ;
}
.nut_dong {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgb(94 150 254 / 70%);
  color: rgb(114, 229, 255);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.nut_dong:hover {
  background: rgba(80, 1, 249, 0.7);
}
.luoi {
  display: grid;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
header {
  background: linear-gradient(135deg, #2d4b4b 0%, #002504 100%);
  background-image: url('../img/bg/bg_dark.jpg');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* padding: 16px 24px; */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.menu {
  width: 100%;
  background: rgba(24, 29, 83, 0.9);
  opacity: 1;
  display: flex;
  padding: 10px 1000px 10px 1000px;
  gap: 30px;
  justify-content: center;
}
.main_menu {
  display: flex;
  width: 50%;
  justify-content: center;
}
.nut_menu {
  background-image: linear-gradient(to bottom, #2b75ea, #0421af);
  color: white;
  font-size: small;
  font-weight: bold;
  padding: 8px 30px;
  border-radius: 7px;
  border: solid 1px #4992f4;
  box-shadow: inset 0px 0px 0px 1px #013c62;
  text-align: center;
  margin: 1px auto;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  transition: background-image 0.5s ease-in-out, 
          box-shadow 0.5s ease-in-out,;
}

.nut_menu:hover {
  background-image: linear-gradient(to bottom, #06adfa, #3633fb);
  box-shadow: 0 0 7px 3px rgb(139 244 255 / 90%);
  border: solid 2px #4ce7d3;
}

main {
  flex: 1;
  padding: 32px 24px;
}
footer {
  background: linear-gradient(135deg, #2d4b4b 0%, #002504 100%);
  background-image: url('../img/bg/bg_dark.jpg');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 24px 24px;
  text-align: center;
}

.style {
  border: solid 2px #0061d5;
  box-shadow: inset 0px 0px 0px 1px #834102;
  background-image: linear-gradient(to bottom, rgba(94, 164, 255, 0.85), rgba(22, 19, 152, 0.85));
  box-shadow: 0px 10px 10px 4px #00176b;
}

@media (max-width: 640px) {
  .banner_ben_phai {
      width: 150px;
      height: 50px;
  }
  .thanh_ben {
      width: 50px;
  }
  .quang_cao_ben {
      width: 120px;
      height: 120px;
  }
  .luoi {
      grid-template-columns: repeat(2, 1fr);
  }
  header {
      padding: 16px;
  }
  main {
      padding: 16px;
  }
}
@media (min-width: 641px) and (max-width: 1024px) and (orientation: portrait) {
  .banner_ben_phai {
      width: 200px;
      height: 80px;
  }
  .thanh_ben {
      width: 80px;
  }
  .quang_cao_ben {
      width: 150px;
      height: 150px;
  }
  .luoi {
      grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 641px) and (max-width: 1024px) and (orientation: landscape) {
  .banner_ben_phai {
      width: 200px;
      height: 80px;
  }
  .thanh_ben {
      width: 80px;
  }
  .quang_cao_ben {
      width: 150px;
      height: 150px;
  }
  .luoi {
      grid-template-columns: repeat(5, 1fr);
  }
}
@media (min-width: 1025px) {
  .banner_ben_phai {
      width: 300px;
      height: 100px;
  }
  .thanh_ben {
      width: 100px;
  }
  .quang_cao_ben {
      width: 200px;
      height: 200px;
  }
  .luoi {
      grid-template-columns: repeat(5, 1fr);
  }
}