* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  text-align: center;
  background-color: #222;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  max-width: 100%;
  width: 100%;
}

h1 {
  margin-bottom: 20px;
  color: #fff;
}

.player-input {
  margin-bottom: 20px;
}

.player-input input {
  padding: 10px;
  margin: 5px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  width: 100%;
  max-width: 200px;
}

.player-input input::placeholder {
  color: #888;
}

.player-input button {
  padding: 10px 20px;
  font-size: 1rem;
  color: #fff;
  background-color: #3498db;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.player-input button:hover {
  background-color: #2980b9;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 20px;
  max-width: 300px;
  margin: 0 auto;
}

.cell {
  width: 100%;
  aspect-ratio: 1;
  background-color: #444;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cell:hover {
  background-color: #555;
  transform: scale(1.05);
}

.cell.x::before {
  content: 'X';
  color: #ff4757;
}

.cell.o::before {
  content: 'O';
  color: #2ed573;
}

.status {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #fff;
}

.restart-btn {
  padding: 10px 20px;
  font-size: 1rem;
  color: #fff;
  background-color: #3498db;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.restart-btn:hover {
  background-color: #2980b9;
}

.hidden {
  display: none;
}

.ad-space {
  margin: 20px auto;
  width: 100%;
  max-width: 728px;
  text-align: center;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .player-input input {
    max-width: 100%;
  }

  .board {
    max-width: 90%;
  }

  .ad-space {
    max-width: 90%;
  }
}

/* Travel Advertisement */
#travel-ad {
    margin-top: 40px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.travel-ad-container h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.travel-ad-container p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.travel-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #2575fc;
    border-radius: 25px;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
    z-index: 2;
    position: relative;
}

.travel-btn:hover {
    background: #2575fc;
    color: #fff;
}

/* Animated Icons */
.animated-icons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.animated-icons i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    animation: float 6s infinite ease-in-out;
}

.animated-icons .fa-plane {
    animation-delay: 0s;
}

.animated-icons .fa-bus {
    animation-delay: 2s;
}

.animated-icons .fa-hotel {
    animation-delay: 4s;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design for Advertisement */
@media (max-width: 768px) {
    .travel-ad-container h2 {
        font-size: 1.5rem;
    }

    .travel-ad-container p {
        font-size: 1rem;
    }

    .travel-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .animated-icons i {
        font-size: 2rem;
    }
}
