body {
  cursor: url(img/background/cursors/Cursor.svg),
    url(img/background/Pointer.svg), pointer;
}

a:hover,
img[onClick],
div[onclick] {
  cursor: url("img/background/Pointer.svg"),
    url("img/background/cursors/Finger%20cursor.png"), pointer;
}

@font-face {
  font-family: "Headline";
  src: url("Fonts/Headline-Regular.otf");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Headline;
  background-color: #f5f5f5;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Slide-out Menu */
.slide-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background: #1c3e74;
  color: white;
  transition: left 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.slide-menu.active {
  left: 0;
}

.menu-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-header h2 {
  font-size: 1.2em;
}

.close-menu {
  background: none;
  border: none;
  color: white;
  font-size: 2em;
  cursor: url(img/background/Pointer.svg), pointer;
  line-height: 1;
}

.menu-section {
  padding: 20px;
}

.menu-section-title {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu-links {
  list-style: none;
}

.menu-links li {
  margin: 10px 0;
}

.menu-links a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  transition: color 0.2s;
}

.menu-links a:hover,
.menu-links a.active {
  color: #ffcc00;
}

/* Header */
.toi-header {
  background: #1c3e74;
  padding: 15px 20px;
  color: white;
  transition: all 0.3s ease;
}

.toi-header.scrolled {
  padding: 10px 20px;
}

.toi-header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.toi-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.toi-logo-container img {
  height: 40px;
}

.toi-war-badge {
  background: #dc2626;
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 0.75em;
  font-weight: bold;
}

.toi-header-right {
  display: flex;
  gap: 10px;
}

.toi-header-right button {
  background: #2563a8;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 600;
  transition: background 0.2s;
}

.toi-header-right button:hover {
  background: #1e4a87;
}

.toi-header-right a {
  text-decoration: none;
}

/* Navigation */
.toi-nav {
  background: #2563a8;
  border-bottom: 3px solid #1e4a87;
  position: sticky;
  top: 0;
  z-index: 100;
}

.toi-nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.toi-nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.toi-hamburger {
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: url(img/background/Pointer.svg), pointer;
  padding: 5px 0;
}

.toi-hamburger span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

.toi-nav-logo {
  color: white;
  font-weight: bold;
  font-size: 1.1em;
}

.toi-nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
}

.toi-nav-links li a {
  display: block;
  color: #ddd;
  text-decoration: none;
  padding: 15px 20px;
  transition: background 0.2s;
  font-weight: 500;
}

.toi-nav-links li a.active {
  text-decoration: underline;
  color: #fff;
}

.toi-nav-links li a.hover {
  font-weight: 900;
}

/* Content */
.content-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.content-header {
  text-align: center;
  margin-bottom: 40px;
}

.content-header h2 {
  color: #1c3e74;
  font-family: Headline;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.content-header p {
  color: #666;
  font-size: 1.2em;
}

/* Game */
.game-wrapper {
  display: flex;
  justify-content: center;
}

.container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 600px;
  width: 100%;
}

.stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 30px;
  gap: 20px;
}

.stat {
  text-align: center;
}

.stat-label {
  font-family: Headline;
  color: #666;
  font-size: 1.6em;
  margin-bottom: 5px;
}

.stat-value {
  font-family: Headline;
  font-size: 2.5em;
  font-weight: bold;
  color: #2563a8;
}

.game-area {
  display: block;
}

.anagram {
  font-family: Headline;
  font-size: 2.5em;
  font-weight: bold;
  color: #1c3e74;
  text-align: center;
  margin: 30px 0;
  letter-spacing: 3px;
}

#answerInput {
  font-family: Headline;
  width: 100%;
  padding: 15px;
  font-size: 1.6em;
  border: 2px solid #ddd;
  border-radius: 5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

#answerInput:focus {
  outline: none;
  border-color: #2563a8;
}

.buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.buttons button {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: 600;
  cursor: url(img/background/Pointer.svg), pointer;
  transition: all 0.2s;
  min-width: 120px;
}

.submit-btn {
  background: #2563a8;
  color: white;
}

.submit-btn:hover {
  background: #1e4a87;
}

.hint-btn {
  background: #f59e0b;
  color: white;
}

.hint-btn:hover {
  background: #d97706;
}

.skip-btn {
  background: #6b7280;
  color: white;
}

.skip-btn:hover {
  background: #4b5563;
}

.message {
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
}

.message.show {
  opacity: 1;
  transform: translateY(0);
}

.message.correct {
  background: #d1fae5;
  color: #065f46;
}

.message.incorrect {
  background: #fee2e2;
  color: #991b1b;
}

.message.hint {
  background: #fef3c7;
  color: #92400e;
}

.game-over {
  display: none;
  text-align: center;
}

.game-over.show {
  display: block;
}

.game-over h2 {
  color: #1c3e74;
  font-size: 2.5em;
  margin-bottom: 20px;
}

.restart-btn {
  background: #2563a8;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
}

.restart-btn:hover {
  background: #1e4a87;
}

/* Footer */
footer {
  background: #1c3e74;
  color: white;
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.footer-section a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin: 8px 0;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.socials img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.socials a:hover img {
  opacity: 1;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .toi-nav-links {
    display: none;
  }

  .content-header h2 {
    font-size: 2em;
  }

  .container {
    padding: 20px;
  }

  .anagram {
    font-size: 1.8em;
  }

  .buttons {
    flex-direction: column;
  }

  .buttons button {
    width: 100%;
  }
}

.restart-btn:hover {
  cursor: url(img/background/Pointer.svg), pointer;
}
