
body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  margin: 0;
  min-height: 100vh;
  padding: 0;
}

main {
  padding-bottom: 100px;
}

.menu-center {
  min-height: calc(100vh - 180px); /* navbar + footer */
justify-content: center;
}

.menu-container {
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.menu-small {
  justify-content: flex-start;
  padding-top: 60px;
}

.menu-title {
  color: white;
  font-size: 3rem;
  margin-bottom: 30px;
}

.menu-button {
  width: 320px;
  padding: 15px;
  font-size: 1.4rem;
  font-weight: bold;
  color: white;

  background: #ffcc00;
  border: none;
  border-radius: 14px;

  cursor: pointer;

  transition:
          transform 0.2s ease,
          box-shadow 0.2s ease,
          background 0.2s ease;
}

.menu-button:hover {
  transform: translateY(-5px);
  background: #ffd633;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.menu-button:active {
  transform: translateY(0);
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

form {
  margin: 0;
  display: block;
}


.navbar {
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(6px);
}

.navbar .nav-link {
  color: white !important;
  font-weight: 500;
}

.navbar .nav-link:hover {
  color: #ffcc00 !important;
}

footer.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;

  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);

  z-index: 9999;
}

footer.footer a {
  color: #ffcc00;
  text-decoration: none;
}

footer.footer a:hover {
  text-decoration: underline;
}

footer.footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color : white;
}

.game-card {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  padding: 40px 50px;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.game-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.game-input {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.1rem;
  padding: 12px 15px;
  border-radius: 10px;
}

.game-input:focus {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  box-shadow: 0 0 0 2px #ffcc00;
}

.game-form label {
  color: #ffcc00;
  font-weight: 600;
  margin-bottom: 4px;
}

.text-danger {
  font-size: 0.9rem;
}

.game-form .menu-button {
  margin-top: 20px;
  width: 100%;
}

.game-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  /*transition: transform 0.2s ease, box-shadow 0.2s ease;*/
}

.game-table th {
  color: #ffcc00;
  font-weight: 600;
  text-align: left;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
}

.game-table td {
  color: white;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-table tbody tr:hover {
  background: rgba(255, 204, 0, 0.1);
  transform: translateX(2px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-table tr:last-child td {
  border-bottom: none;
}

select.game-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: rgba(255, 255, 255, 0.1);
  color: white;

  padding: 12px 45px 12px 15px;
  border-radius: 10px;
  font-size: 1.1rem;

  cursor: pointer;
}

select.game-input {
  background-image:
          linear-gradient(45deg, transparent 50%, #ffcc00 50%),
          linear-gradient(135deg, #ffcc00 50%, transparent 50%),
          linear-gradient(to right, rgba(255,255,255,0.15), rgba(255,255,255,0.15));

  background-position:
          calc(100% - 22px) 50%,
          calc(100% - 16px) 50%,
          calc(100% - 45px) 50%;

  background-size:
          6px 6px,
          6px 6px,
          1px 60%;

  background-repeat: no-repeat;
}

select.game-input:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

select.game-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ffcc00;
}

select.game-input option {
  background: #203a43;
  color: white;
}


.game-play{
  display: flex;
  width: 100%;
}

:root {
  --cell-size: 52px;
}

.board-wrapper {
  margin: auto;
  flex: 1;
  justify-content: center; /* слева */
  align-items: center;
}

.board {
  display: grid;
  grid-template-columns: repeat(10, var(--cell-size));
  gap: 8px;
  padding: 20px;
  background: #0a4fb3;
  border-radius: 20px;
}

.cell {
  width: var(--cell-size);
  height: var(--cell-size);
  background: #063a86;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disc {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.25s ease;
}

.disc.show {
  transform: scale(1);
}

.disc.x {
  background: radial-gradient(circle at 30% 30%, #ffe066, #ffb700);
}

.disc.o {
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #c92a2a);
}

/* Falling animation */
@keyframes drop {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.game-container{
  margin-top: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-left: auto;
  margin-right: auto;
  text-align: center;

  flex: 1;
}

.all-messages{
  display: flex; 
  flex-direction: column;
  
  gap: 16px;
  margin-left: auto;
  margin-right: auto;

  /*justify-content: center;*/
  /*align-items: center;*/
}

.game-message {
  display: block;
  flex-direction: column;
  gap: 20px;
  
  color: #ffcc00;
  font-size: 1.3rem;
  align-items: center;
  justify-content: center;
  /*margin: auto;*/
  text-align: center;
  
  padding: 15px 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  height: 300px;
  width: 300px;
}

.game-properties {
  display: flex;
  flex-direction: column;
  gap: 6px;

  padding: 14px 18px;
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.06);
  font-size: 1rem;
  font-weight: 500;
}

.game-properties > div:first-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffd633;
  margin-bottom: 6px;
}

.game-state {
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.8rem;
  font-weight: 700;
  color: #ffcc00;

  padding: 20px;
  border-radius: 14px;

  background: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.error-message {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px 20px;
  border-radius: 12px;
  
  gap: 10px;

  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.4);

  color: #ff6b6b;
  font-size: 1rem;
  font-weight: 600;

  width: 300px;
}

