@font-face {
  font-family: Font1;
  src: url(fonts/font1.otf);
}

@font-face {
   font-family: Font2;
   src: url(fonts/font2.otf);
}

@font-face {
   font-family: Font3;
   src: url(fonts/font3.ttf);
}

@font-face {
  font-family: Font4;
  src: url(fonts/font4.ttf);
}

@font-face {
  font-family: Font5;
  src: url(fonts/font5.otf);
}

@font-face {
  font-family: Font6;
  src: url(fonts/font6.ttf);
}

@font-face {
  font-family: Font7;
  src: url(fonts/font7.ttf);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  cursor: url('cursorHover.png'), auto;
  position: relative;
  min-height: 100vh;
  background-color: #f0f0f0;
}

/* Infinite Scrolling Background */
.scrolling-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url('images/manBG.png');
  background-size: 1920px 1080px;
  animation: scrollBackground 20s linear infinite;
}

@keyframes scrollBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 400px 0;
  }
}

.scrolling-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(90, 90, 90, 0.9);
  padding: 15px 30px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 100px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #5e5e5e;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 30px;
  transition: background-color 0.3s;
}

.dropbtn:hover {
  background-color: #7e7e7e;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border: 2px solid black;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: #cccccc;
}

.dropdown.show .dropdown-content {
  display: block;
}

/* Main Content */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 150px 20px 50px;
  position: relative;
  z-index: 1;
}

/* Man Games Specific Styles */
.games-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: rgba(109, 109, 109, 0.9);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid #000;
}

.man-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 30px;
}

.man-image {
  max-width: 250px;
  border: 3px solid #000;
  background-color: #fff;
  padding: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.man-games-title {
  font-size: 48px;
  color: #000;
  font-family: Font7;
  text-align: center;
  text-decoration: underline;
  margin-bottom: 20px;
}

.games-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
}

.game-box {
  width: 100%;
  height: 120px;
  background-color: #fff;
  border: 3px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.game-box:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-box h3 {
  font-family: Font1;
  font-size: 22px;
  color: #000;
}

.play-button {
  background-color: #000000;
  color: white;
  border: 2px solid #000;
  padding: 8px 20px;
  font-size: 16px;
  font-family: Font1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background-color: #494949;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.play-options {
  text-align: center;
  margin: 20px 0 40px;
}

.play-options p {
  font-size: 18px;
  color: #fff;
  font-family: Font1;
}

.highlight {
  color: #fff;
  font-weight: bold;
}

.highlight-blue {
  color: #6e8efb;
  font-weight: bold;
}

.games-description {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #000;
}

.games-description h3 {
  font-family: Font7;
  font-size: 24px;
  margin-bottom: 15px;
  text-align: center;
  color: #333;
}

.games-description p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.game-features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.feature {
  background-color: rgba(110, 142, 251, 0.2);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #000;
  width: calc(33% - 20px);
  min-width: 200px;
  text-align: center;
}

.feature h4 {
  font-family: Font1;
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.feature p {
  font-size: 14px;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .games-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .game-item {
    width: 80%;
    max-width: 250px;
    margin-bottom: 20px;
  }
  
  .man-image {
    max-width: 200px;
  }
  
  .man-games-title {
    font-size: 36px;
  }
  
  .feature {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding-top: 120px;
  }
  
  .games-container {
    padding: 20px 15px;
  }
  
  .man-image {
    max-width: 150px;
  }
  
  .man-games-title {
    font-size: 28px;
  }
  
  .play-options p {
    font-size: 16px;
  }
}