body {
    font-family: Arial, sans-serif;
    background-color: #dbcdc0;
    margin: 0;
    padding: 0;
    text-align: center;
    touch-action: manipulation;
    overflow-x: hidden;
    align-items: center;
}
table{
    margin-top: 5%;
    padding: 5%;
}

/* button{
    border-radius: 5px;
    height: 12%;
    width: 12%;
    border: 10px solid #100707;
    font-size: 30px;
    background-color: white;
}

input{
    width:12%;
    height: 50px;
    border-radius: 5px;
    border: 10px solid #100707;
    font-size: 30px;
    margin-top: 5%;
} */
#user-answer{
    height: auto;
    width: 100%;
    max-width: 500px;
    flex-direction: row;
    display: flex;
    gap: 10px;
    margin-top: 10vh;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: center;
}

input{
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid #333;
    font-size: 18px;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 3s ease;
}

input:focus{
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 8px rgba(0, 102, 204, 0.3);
}

input::placeholder{
    font-size: 16px;
    color: #999;
}

#user-answer button{
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    background-color: #0066cc;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 3s ease;
}

#user-answer button:hover:not(:disabled){
    background-color: #0052a3;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#user-answer button:disabled{
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.box {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    background-color: white;
}

#intro-section {
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-in;
}

#difficulty-selection h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #333;
}

/* Responsive Tutorial Video Wrapper */
.video-container {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 24px auto 36px auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

/* Covers both <video> and <iframe> */
.video-container video,
.video-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    object-fit: cover;
}

#difficulty{
    border-radius: 8px;
    height: auto;
    width: auto;
    background-color: #0066cc;
    margin: 10px;
    font-size: large;
    font-weight: bold;
    color: white;
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#difficulty:hover:not(:disabled) {
    background-color: #0052a3;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

#difficulty:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#timer {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#timer-circle {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

#timer-progress {
    transition: stroke-dashoffset 0.1s linear;
}

#timer-text {
    position: absolute;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    text-align: center;
    line-height: 120px;
}

#alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.alert-content {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

#alert-message {
    font-size: 1.4em;
    color: #333;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

#alert-btn {
    padding: 12px 32px;
    border-radius: 8px;
    border: none;
    background-color: #0066cc;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#alert-btn:hover {
    background-color: #0052a3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .box {
    height: 5vh;
    width: 5vh;
    border-radius: 50%;
    background-color: white;
    }
}

@media screen and (max-width: 600px) {
    .box {
    height: 3vh;
    width: 3vh;
    border-radius: 50%;
    background-color: white;
    }
}

/* =========================================================
   UNIVERSAL PARTNER & NAV BAR
   ========================================================= */

/* Ensure the game canvas/controls don't get covered by the bottom bar */
body {
  padding-bottom: 110px !important;
  box-sizing: border-box;
}

#bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 84px;
  background-color: #161822;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  box-sizing: border-box;
  z-index: 99999; /* Keeps it above canvas/gameboard layers */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#bar .bar-left, 
#bar .bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

#bar .bar-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9ea8b6;
  white-space: nowrap;
}

#bar .nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#bar .nav-item:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

#bar img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

#bar .nav-link {
  color: #e2c082;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(226, 192, 130, 0.35);
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

#bar .nav-link:hover {
  background-color: rgba(226, 192, 130, 0.12);
  color: #f0cf95;
}

/* Mobile responsive collapse */
@media screen and (max-width: 700px) {
  body {
    padding-bottom: 140px !important;
  }

  #bar {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    min-height: auto;
  }

  #bar img {
    width: 46px;
    height: 46px;
  }

  #bar .bar-title {
    font-size: 0.85rem;
  }

  #bar .nav-link {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}

/* Container: Floating dark card centered above the partner bar */
#consent-popup {
  box-sizing: border-box;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 100px; /* Sits cleanly above the bottom navigation bar */
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 620px;
  background-color: #1f232d; /* Calm slate matching the card tone */
  color: #f5f6f8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Learn more link */
#consent-popup a {
  color: #e2c082; /* Warm champagne gold */
  text-decoration: underline;
}

/* Button layout container */
.consent-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

/* Shared button foundation */
.consent-button {
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Accept button: Warm accent gold with dark text */
#consent-accept {
  background-color: #e2c082;
  color: #12141a;
}

#consent-accept:hover {
  background-color: #f0cf95;
}

/* Reject button: Ghost style with subtle border */
#consent-reject {
  background-color: transparent;
  color: #9ea8b6;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#consent-reject:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #f5f6f8;
}

/* Responsive adjustment for small mobile screens */
@media screen and (max-width: 600px) {
  #consent-popup {
    bottom: 90px;
    padding: 14px 16px;
    font-size: 0.88rem;
  }
}