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

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

body {
  font-family: "Arial", sans-serif;
  background-color: #121213;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  opacity: 100%;
  font-size: 2.2dvw;
  margin: 0;
  user-select: none;
  -webkit-user-drag: none;
  cursor: url(img/background/cursors/Cursor.svg), auto;
  -webkit-user-drag: none;
}

img {
  -webkit-user-drag: none;
}

.top-bar {
  background-color: #000 !important;
  color: #ffffff !important;
  padding: 10px 30px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

.top-bar-content {
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.contrarynavigationbar {
  background-color: #f6d24b !important;
  padding: 20px 30px !important;
  position: static !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

button {
  color: black;
}

.nav-content {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 15px !important;
}

.logo-link {
  display: inline-block !important;
}

.logo-link img {
  height: 50px !important;
  width: auto !important;
}

.nav-links {
  display: flex !important;
  gap: 25px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

.nav-links a {
  font-family: Helvetica, Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.2s ease !important;
  padding: 5px 0 !important;
  border-bottom: 3px solid transparent !important;
}

.nav-links a:hover {
  color: #666 !important;
  border-bottom: 3px solid #000 !important;
  cursor: url(img/background/cursors/Pointer.svg), pointer;
}

.nav-links a.active {
  color: #666 !important;
}

.logo-link:hover {
  cursor: url(img/background/cursors/Pointer.svg), pointer;
}

.game-container {
  max-width: 500px;
  width: 100%;
}

h1 {
  text-align: center;
  font-size: clamp(18px, 3vw, 24px);
  margin-bottom: 10px;
  color: #f6d24b;
  text-transform: uppercase;
  letter-spacing: 2px;
  word-break: keep-all;
  white-space: nowrap;
}

.subtitle {
  text-align: center;
  color: #888;
  margin-bottom: 20px;
  font-size: 14px;
}

.hint-box {
  background-color: #1a1a1b;
  border: 2px solid #f6d24b;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.hint-label {
  color: #f6d24b;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.hint-text {
  color: #ffffff;
  margin-top: 5px;
  font-size: 16px;
}

.board {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}

.row {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.tile {
  width: 62px;
  height: 62px;
  border: 2px solid #3a3a3c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  background-color: #121213;
  color: #ffffff;
  transition: all 0.3s ease;
}

.tile.filled {
  border-color: #565758;
  animation: pop 0.1s ease;
}

.tile.correct {
  background-color: #02a95b !important;
  border-color: #006548 !important;
  color: #ffffff !important;
  animation: flip 0.5s ease;
}

.tile.present {
  background-color: #faa61a !important;
  border-color: #faa61a !important;
  color: #ffffff !important;
  animation: flip 0.5s ease;
}

.tile.absent {
  background-color: #b50938 !important;
  border-color: #b50938 !important;
  color: #ffffff !important;
  animation: flip 0.5s ease;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes flip {
  0% {
    transform: rotateX(0);
  }
  50% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0);
  }
}

.keyboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.keyboard-row {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.key {
  background-color: #818384;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 15px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  min-width: 43px;
  transition: background-color 0.1s ease;
  cursor: url(img/background/cursors/Pointer.svg), pointer;
}

.key:hover {
  background-color: #a0a0a0;
  cursor: url(img/background/cursors/Pointer.svg), pointer;
}

.key.wide {
  min-width: 65px;
  font-size: 12px;
}

.key.correct {
  background-color: #538d4e;
}

.key.present {
  background-color: #faa61a;
}

.key.absent {
  background-color: #b50938;
}

.message {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  color: #000000;
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.message.show {
  opacity: 1;
}

@media (max-width: 600px) {
  body {
    padding-top: 200px !important;
  }

  .contrarynavigationbar {
    padding: 12px 20px !important;
  }

  .logo-link img {
    height: 35px !important;
  }

  .nav-links {
    gap: 15px !important;
  }

  .nav-links a {
    font-size: 14px !important;
  }

  .tile {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  .key {
    padding: 12px;
    min-width: 32px;
    font-size: 11px;
    cursor: url(img/background/cursors/Pointer.svg), pointer;
  }

  .key.wide {
    min-width: 50px;
  }
}

.footer {
  background-color: #3a3a3a;
  color: #ffffff;
  padding: 40px 20px 20px;
  margin-top: 60px;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: -20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
  cursor: url(img/background/cursors/Pointer.svg), pointer;
}

.footer-section h3 {
  color: #f6d24b;
  font-size: 18px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
  color: #cccccc;
  font-size: 14px;
  line-height: 1.8;
  text-decoration: none;
}

.footer-section a:hover {
  color: #f6d24b;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 20px 0;
  border-top: 1px solid #555;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #f6d24b;
  cursor: url(img/background/cursors/Pointer.svg), pointer;
}

.footer-badges {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-badges img {
  height: 200px;
  width: auto;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-newsletter input {
  padding: 10px;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #2a2a2a;
  color: #ffffff;
}

.footer-newsletter button {
  padding: 10px 20px;
  background-color: #f6d24b;
  color: #000000;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: url(img/background/cursors/Pointer.svg), pointer;
  transition: background-color 0.2s ease;
}

.footer-newsletter button:hover {
  background-color: #ffd700;
  cursor: url(img/background/cursors/Pointer.svg), pointer;
}

.footer-section button {
  color: #000000 !important;
}

.footer-section button a {
  color: #000000 !important;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #555;
  color: #888;
  font-size: 12px;
  cursor: url(img/background/cursors/Cursor.svg), pointer;
}

.footer-bottom a {
  color: #f6d24b;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
  cursor: url(img/background/cursors/Pointer.svg), pointer;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
