body {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    margin: 0;
    min-height: 100vh;
    background-color: #f0f0f0;
}

main {
    padding: 56px 16px 24px;
    box-sizing: border-box;
}

.auth-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.42);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.auth-strip-left,
.auth-strip-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.auth-strip-right {
    margin-left: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.auth-form {
    margin: 0;
}

.nav-chip,
.lang-chip {
    border: 1px solid rgba(34, 55, 73, 0.18);
    background: rgba(255, 255, 255, 0.82);
    color: #223749;
    padding: 9px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-chip:hover,
.lang-chip:hover {
    background: #f8fafc;
    border-color: rgba(34, 55, 73, 0.32);
    color: #0f172a;
    transform: translateY(-1px);
}

.nav-chip-home {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.nav-chip-home:hover {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
}

.nav-chip-google {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.12);
}

.nav-chip-account {
    background: rgba(255, 255, 255, 0.82);
    color: #223749;
}

.auth-user-label {
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.google-glyph {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    color: #ffffff;
    background: conic-gradient(from 210deg, #ea4335 0deg 90deg, #fbbc05 90deg 180deg, #34a853 180deg 270deg, #4285f4 270deg 360deg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.72);
}

.language-switch .auth-form {
    display: inline-flex;
}

.lang-chip {
    min-width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 6px;
    background: transparent;
    border-color: transparent;
}

.lang-chip.is-active {
    background: #223749;
    border-color: #223749;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(34, 55, 73, 0.22);
}

.flag-icon {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

@media (max-width: 720px) {
    .auth-strip {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .auth-strip-left {
        flex: 0 0 auto;
    }

    .auth-strip-right {
        gap: 8px;
        flex-wrap: wrap;
    }

    .auth-user-label {
        font-size: 13px;
    }
}

.container {
    text-align: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



h1 {
    margin-bottom: 20px;
}

canvas {
    display: block;
    margin: 0 auto 20px;
    border: 1px solid #000;
}

.error-message-container {
    height: 20px; /* Adjust this value as needed */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .error-message {
    margin: 0;
  }

  button {
    background-color: #223749; /* Adjust the background color */
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    transition-duration: 0.4s;
  }
  
  button:hover {
    background-color: #4546a0; /* Adjust the hover background color */
  }

  .auth-strip button,
  .auth-strip .lang-chip {
    margin: 0;
  }

  .instructions {
    position: relative;
  }
  
  .instructions-container {
    position: relative;
  }

  .instructions-content {
    position: absolute;
    width: 100%; /* You can adjust the width as needed */
    z-index: 1; /* To make sure the content appears above other elements */
    display: none; /* Hide the content by default */
    background-color: #849fb0;
    min-width: 240px; /* Adjust the width of the instructions element */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding: 10px;
    font-size: 14px; /* Adjust the font size */
    line-height: 1.6; /* Adjust the line height */
  }
  
  .instructions-content p {
    margin: 0;
  }
  
  .instructions-btn {
    display: inline-block;
  }
  
  .show {
    display: block;
  }
  

.tournaments-page {
  background-color: #ffcccc;
    /* styles for the tournament list page */
}

.tournaments-page .highlighted-tournament {
    background-color: #ff8080;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tournaments-page .highlighted-tournament h2 a {
    color: #223749; /* same color as your button background */
    text-decoration: none; /* remove default link underline */
}

.tournaments-page .highlighted-tournament h2 a:hover {
    color: #4546a0; /* same color as your button hover background */
}

/* .tournaments-page .past-tournaments {
} */

.tournaments-page .past-tournaments ul {
    list-style-type: none; /* remove default bullet points */
    padding-left: 0; /* remove default padding */
}

.tournaments-page .past-tournaments ul li a {
    color: #223749; /* same color as your button background */
    text-decoration: none; /* remove default link underline */
}

.tournaments-page .past-tournaments ul li a:hover {
    color: #4546a0; /* same color as your button hover background */
}

.stage {
  margin-bottom: 20px;
}

.games {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.game {
  width: calc(50% - 10px);
  margin-bottom: 10px;
  border: 1px solid #ddd;
  padding: 10px;
  box-sizing: border-box;
}
