﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

body {
    color: white;
    background: transparent;
    position: relative;
    padding-bottom: 80px;
    min-height: 100vh;
    margin: 0;
    padding-top: 80px;
}

.content {
    position: relative;
    z-index: 1; /* keeps the content above the video */
    color: white;
}


footer {
    background-color:white;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Styles the gradient overlay */
.gradient-overlay {
    display: none;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: transparent;
  padding: 1rem;
  text-align: center;
  line-height: normal;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: white !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.player {
    margin: auto;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.scoreOptions   {
    margin:auto;
    float:none; 
}

     

.scores.displayScores span {
    display:none; 
}

.scores.displayScores thescore span {
    display:inline-block; 
}

.ownershipMsg {
    padding-left: 7px;
    padding-right: 7px;
    padding-top: 7px;
    padding-bottom: 7px;
    border: solid 1px black;
    border-radius: 5px;
    font-size: 10px; 
    color: black;
    background-color: azure;
    margin:15px;
}

.scores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 1rem auto;
    max-width: 1200px;
}

.player-score {
    position: relative;
    perspective: 2000px;
    width: 120px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
}

.player-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-card.thinking {
    transform: rotateY(0deg);
}

.player-card.revealed {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.card-front {
    background: linear-gradient(145deg, #3a7bc1, #1a4a8f);
    color: white;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.15);
}

.card-back {
    background: linear-gradient(145deg, #ffffff, #e8e8e8);
    transform: rotateY(180deg);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.05);
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateZ(10px);
}

.player-name {
    font-size: 0.9rem;
    margin: 0.5rem 0;
    text-align: center;
    word-break: break-word;
    padding: 0 0.5rem;
}

.score-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2a6bb1;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(42, 107, 177, 0.3);
    transform: translateZ(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.thinking-animation {
    display: none;
    gap: 8px;
    margin-top: 1rem;
    transform: translateZ(15px);
}

.thinking-animation.active {
    display: flex;
}

.player-card.thinking .card-front {
    opacity: 1;
    background: linear-gradient(145deg, #2a6bb1, #1a4a8f);
}

.thinking-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: floatingDot 1.6s infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.thinking-dot:nth-child(1) { animation-delay: 0s; }
.thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.thinking-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes floatingDot {
    0%, 100% {
        transform: translateY(0) scale(0.8) translateZ(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-15px) scale(1.2) translateZ(10px);
        opacity: 1;
    }
}

@keyframes impatientHover {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-1deg);
    }
    75% {
        transform: translateY(-5px) rotate(1deg);
    }
}

@keyframes impatientBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(-2deg);
    }
    35% {
        transform: translateY(-8px) rotate(2deg);
    }
    45% {
        transform: translateY(-8px) rotate(-2deg);
    }
    55% {
        transform: translateY(-8px) rotate(2deg);
    }
    75% {
        transform: translateY(-4px) rotate(-1deg);
    }
}

@keyframes impatientDot {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-12px) scale(1.2);
        opacity: 1;
    }
}

.scoreOptions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 2rem auto;
    padding: 0 1rem;
    max-width: 1200px;
}

.score-card {
    flex: 0 0 auto;
}

.score-card img {
    width: 130px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scoreOptions a {
    text-decoration: none;
    display: inline-block;
}

/* Add these new styles */
.poker-container {
    position: relative;
    transform: none;
    left: auto;
    top: auto;
    margin: 0.5rem auto 2rem;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.title-section {
    margin-bottom: 3rem;
}

.title-text {
    margin-top: 50px;
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle-text {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0.5rem 0 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.room-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modern-input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.modern-input:focus {
    border-color: #4a9eff;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 12px rgba(74, 158, 255, 0.3);
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.modern-button {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.3),
        0 0 0 2px rgba(99, 102, 241, 0.1);
    min-width: 140px;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modern-button:hover {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.4),
        0 0 0 3px rgba(99, 102, 241, 0.2);
}

.modern-button:active {
    transform: translateY(1px);
    box-shadow: 
        0 2px 8px rgba(99, 102, 241, 0.3),
        0 0 0 2px rgba(99, 102, 241, 0.2);
}

.modern-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success variant */
.modern-button.success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 
        0 4px 15px rgba(34, 197, 94, 0.3),
        0 0 0 2px rgba(34, 197, 94, 0.1);
}

.modern-button.success:hover {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 
        0 8px 25px rgba(34, 197, 94, 0.4),
        0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Danger variant */
.modern-button.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 
        0 4px 15px rgba(239, 68, 68, 0.3),
        0 0 0 2px rgba(239, 68, 68, 0.1);
}

.modern-button.danger:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 
        0 8px 25px rgba(239, 68, 68, 0.4),
        0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Add shine effect to all buttons */
.modern-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.modern-button:hover::before {
    animation: shine 1.5s infinite;
    opacity: 1;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.avatar-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.avatar-nav-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.avatar-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Update control button styles */
.control-buttons {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.control-buttons-center,
.control-buttons-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Group buttons by function */
.control-buttons .modern-button,
.control-buttons form .modern-button {
    margin: 0;
    white-space: nowrap;
}

/* Compact button icons */
.control-buttons .modern-button .button-icon {
    margin-right: 4px;
    font-size: 1rem;
}

/* Responsive layout */
@media (max-width: 600px) {
    .control-buttons {
        justify-content: center;
        gap: 0.25rem;
    }
    
    .control-buttons .modern-button {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .control-buttons {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .control-buttons .modern-button,
    .control-buttons form .modern-button {
        padding: 8px 16px;
        font-size: 0.9rem;
        min-width: 100px;
    }
}

/* Mobile responsive styles */
@media (max-width: 1200px) {
    .scoreOptions {
        gap: 1rem;
        max-width: 1000px;
    }
    .score-card img {
        width: 120px;
    }
}

@media (max-width: 992px) {
    .scoreOptions {
        gap: 0.875rem;
        max-width: 800px;
    }
    .score-card img {
        width: 110px;
    }
}

@media (max-width: 768px) {
    .scoreOptions {
        gap: 0.75rem;
        max-width: 600px;
    }
    .score-card img {
        width: 90px;
    }
}

@media (max-width: 480px) {
    .scoreOptions {
        gap: 0.5rem;
    }
    .score-card img {
        width: 70px;
    }
}

/* Small screen adjustments */
@media (max-height: 700px) {
    .app-title {
        margin: 1rem auto;
        font-size: 1.8rem;
    }

    .app-subtitle {
        font-size: 0.9rem;
        margin-top: 0.25rem;
    }

    .poker-container {
        margin: 0.5rem auto;
        min-height: calc(100vh - 140px);
    }

    .create-table-section,
    .room-form {
        margin: 1rem auto;
        padding: 1.5rem;
    }

    .avatar-carousel {
        margin: 1rem 0;
    }

    .avatar-image {
        width: 100px;
        height: 100px;
    }

    .scores {
        margin: 1rem auto;
    }

    .control-buttons {
        margin: 1rem auto;
    }
}

/* Very small screen adjustments */
@media (max-height: 500px) {
    .app-title {
        display: none; /* Hide title on very small screens */
    }

    .poker-container {
        margin: 0 auto;
        padding: 0.5rem;
    }

    .score-card img {
        width: 60px;
    }

    .avatar-image {
        width: 80px;
        height: 80px;
    }
}

.player-name-header {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

/* Add shine effect on cards */
.card-front::before, .card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255,255,255,0.1) 45%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0.1) 55%,
        transparent 100%
    );
    pointer-events: none;
}

/* Fix navigation text colors */
.navbar-nav .nav-link {
    color: white !important; /* Override Bootstrap's default */
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

.navbar-nav .nav-link.active {
    color: white !important;
}

/* Update navbar brand and link colors */
.navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Ensure all navigation links are white */
.navbar-nav .nav-link,
.nav-link,
a.nav-link {
    color: white !important;
}

.navbar-nav .nav-link:hover,
.nav-link:hover,
a.nav-link:hover {
    color: white !important;
}

/* Ensure all navigation links are black */
.nav-link[href^="/"],
.nav-link[href^="#"] {
    color: black !important;
}

/* Add chase animation styles */
.chase-animation {
    position: fixed;
    bottom: 120px;
    left: 0;
    width: 100%;
    height: 80px;
    animation: chase 8s linear;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
}

/* Running developer */
.dev-running {
    position: absolute;
    font-size: 56px;
    bottom: 15px;
    left: 15%;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.7));
    z-index: 10000;
    animation: devRun 0.3s infinite alternate;
}

/* Main 911 card */
.card-chasing {
    position: absolute;
    left: calc(15% + 80px);
    bottom: 15px;
    z-index: 9999;
    animation: cardRun 0.3s infinite alternate;
}

.playing-card {
    width: 60px;
    height: 84px;
    background: #ffffff;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    border: 2px solid #ff0000;
    overflow: hidden;
}

.card-corner {
    position: absolute;
    color: #ff0000;
    font-weight: bold;
    padding: 3px;
}

.top-left {
    top: 2px;
    left: 2px;
    text-align: left;
}

.bottom-right {
    bottom: 2px;
    right: 2px;
    transform: rotate(180deg);
}

.card-value {
    font-size: 12px;
    line-height: 1;
}

.card-suit {
    font-size: 10px;
}

.card-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff0000;
    font-size: 24px;
    font-weight: bold;
}

/* Mob cards */
.card-mob {
    position: absolute;
    font-size: 42px;
    bottom: 15px;
    animation: cardRun 0.3s infinite alternate;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.7));
}

/* Position mob cards */
.mob-0 { left: calc(15% + 160px); animation-delay: -0.1s; }
.mob-1 { left: calc(15% + 220px); animation-delay: -0.2s; }
.mob-2 { left: calc(15% + 280px); animation-delay: -0.3s; }
.mob-3 { left: calc(15% + 340px); animation-delay: -0.4s; }

/* Animations */
@keyframes chase {
    0% {
        transform: translateX(100vw);
        opacity: 1;
    }
    10%, 90% {
        opacity: 1;
    }
    100% {
        transform: translateX(-120vw);
        opacity: 1;
    }
}

@keyframes devRun {
    0% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(-15px) scale(1.1);
    }
}

@keyframes cardRun {
    0% {
        transform: rotate(15deg) translateY(0) skewX(-5deg);
    }
    100% {
        transform: rotate(25deg) translateY(-12px) skewX(-15deg);
    }
}

/* Add animated background styles */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: all 2s ease;
    background: linear-gradient(135deg, #1a2a6c, #2a3a7c, #1a2a6c);
    overflow: hidden;
}

.floating-card {
    position: absolute;
    width: 100px;
    height: 140px;
    opacity: 0.15;
    animation: float var(--duration, 15s) ease-in-out infinite;
    transform-origin: center;
    background: white;
    border-radius: 10px;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(var(--scale, 1));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.floating-card.critical {
    opacity: 0.25;
    box-shadow: 
        0 0 30px rgba(255, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 0, 0, 0.2);
    background: rgba(255, 0, 0, 0.9);
    padding: 5px;
    border-color: rgba(255, 255, 255, 0.5);
}

.floating-card .card-score {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.floating-card .card-suit {
    font-size: 24px;
    margin: 5px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.floating-card .card-name {
    font-size: 12px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.card-svg {
    width: 100%;
    height: 100%;
    fill: rgba(255, 255, 255, 0.9);
}

.card-text {
    fill: #1a2a6c;
    font-size: 32px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.card-name {
    fill: #1a2a6c;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

.floating-card.critical {
    opacity: 0.25;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
    z-index: 1;
}

.card-svg.critical {
    fill: rgba(200, 0, 0, 0.9);
}

.warning-stripes {
    stroke: rgba(255, 255, 0, 0.3);
    stroke-width: 5;
    stroke-linecap: round;
}

.critical-text {
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 2;
}

.card-text.critical {
    fill: #ff0;
    font-size: 40px;
    font-weight: bold;
    filter: drop-shadow(0 0 3px rgba(255, 0, 0, 0.8));
}

.card-name.critical {
    fill: #ff0;
    filter: drop-shadow(0 0 2px rgba(255, 0, 0, 0.8));
}

@keyframes float {
    from {
        transform: translate(0, 0) rotate(var(--rotation, 0deg)) scale(var(--scale, 1));
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    50% {
        transform: translate(var(--wobble), -50vh) rotate(calc(var(--rotation) + 180deg)) scale(var(--scale, 1));
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    to {
        transform: translate(calc(var(--wobble) * -1), -100vh) rotate(calc(var(--rotation) + 360deg)) scale(var(--scale, 1));
        opacity: 0;
    }
}

/* Remove all video-related styles */
.video-container,
#background-video,
.gradient-overlay {
    display: none !important;
}

/* Update content styles */
.content {
    position: relative;
    z-index: 1;
    color: white;
}

/* Ensure background animation is visible */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: all 2s ease;
    background: linear-gradient(135deg, #1a2a6c, #2a3a7c, #1a2a6c);
    overflow: hidden;
}

/* Update body styles */
body {
    color: white;
    background: transparent;
    position: relative;
    padding-bottom: 80px;
    min-height: 100vh;
    margin: 0;
}

/* Update navbar styles */
.navbar {
    display: none;
}

/* Update footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: transparent;
    padding: 1rem;
    text-align: center;
    line-height: normal;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Center the create table section better */
.create-table-section {
    position: relative;
    transform: none;
    left: auto;
    top: auto;
    margin: 2rem auto;
    width: 90%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.3);
}

.create-table-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
}

/* Add app logo/title at the top */
.app-title {
    position: relative;
    margin: 1rem auto 0.5rem;
    transform: none;
    left: auto;
    top: auto;
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    margin-top: 0;
}

.app-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Form and input styles */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
    width: 100%;
    max-width: 400px;
}

.form-control:focus {
    background: white;
    border-color: #4a9eff;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
    outline: none;
}

.form-control::placeholder {
    color: #666;
    opacity: 0.8;
}

/* Form helper text */
.form-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Create table section */
.create-table-section {
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 500px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.create-table-section h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Form container */
.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Flying card animation */
.flying-card {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.flying-card img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    backface-visibility: hidden;
}

.flying-card.arrived {
    transform: translate(var(--targetX), var(--targetY)) scale(0.6) rotateY(180deg) !important;
    opacity: 0;
}

/* Add highlight effect to player card when receiving score */
@keyframes receiveScore {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.receiving-score {
    animation: receiveScore 0.6s ease-out;
}

/* Add title for the login form */
.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}

/* SVG filter for flames (add to top of file) */
@keyframes flameWave {
    0%, 100% { transform: scaleY(1) translateY(0); }
    50% { transform: scaleY(1.1) translateY(-2px); }
}

.player-card.revealed::before,
.player-card.revealed::after,
.flame-particles {
    transform: rotateY(180deg) translateZ(1px);
}

/* Flame particles */
.flame-particle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='particle' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' style='stop-color:%23ffffff;stop-opacity:0.9'/%3E%3Cstop offset='100%25' style='stop-color:%23ff8800;stop-opacity:0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='50' cy='50' r='50' fill='url(%23particle)'/%3E%3C/svg%3E") center/cover no-repeat;
    mix-blend-mode: screen;
    animation: particleFloat 1.5s ease-out infinite;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--float-x, 0), var(--float-y, -40px)) scale(0);
        opacity: 0;
    }
}

/* New navigation styles */
.top-nav {
    position: fixed;
    top: 0;
    right: 20px;
    z-index: 1000;
    padding: 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
    color: white !important;
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.nav-link:hover .nav-text {
    color: white;
}

/* Override any other navigation styles */
.nav-links a,
.nav-links a:visited,
.nav-links a:active,
.nav-links a:focus {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-links a:hover {
    color: white !important;
}

/* Remove any conflicting styles */
.nav-link[href^="/"],
.nav-link[href^="#"] {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link[href^="/"]:hover,
.nav-link[href^="#"]:hover {
    color: white !important;
}

/* Mobile responsive navigation */
@media (max-width: 768px) {
    .top-nav {
        right: 50%;
        transform: translateX(50%);
    }
    
    .nav-text {
        display: none;
    }
    
    .nav-link {
        padding: 0.5rem;
    }
    
    .nav-icon {
        font-size: 1.4rem;
    }
}

/* Homepage styles */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 160px);
    padding: 2rem;
    text-align: center;
}

.welcome-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #b8c6db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.action-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-button-icon {
    font-size: 1.4rem;
}

/* Modal styles */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-wrapper.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-wrapper.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: white;
    transform: scale(1.1);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.2rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .action-button {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        padding: 1.5rem;
    }
}

@media (max-height: 600px) {
    .home-container {
        padding: 1rem;
    }

    .welcome-section {
        padding: 1.5rem;
    }
}

/* Bulge animation for cards with scores */
.player-card.has-score:not(.revealed) {
    animation: cardBulge 2s ease-in-out infinite;
    transform-origin: center center;
    animation-delay: calc(var(--card-index, 0) * -0.3s);
}

@keyframes cardBulge {
    0%, 100% {
        transform: scale(1) translateY(0);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.08) translateY(-5px);
        box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
    }
}

/* Firework animations */
.firework {
    position: absolute;
    inset: -100%;
    pointer-events: none;
    z-index: 100;
}

.firework-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: explode var(--duration, 0.8s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    box-shadow: 0 0 8px currentColor;
}

@keyframes explode {
    0% {
        transform: translate(50%, 50%) scale(0.1);
        opacity: 1;
    }
    100% {
        transform: translate(
            calc(50% + var(--dx) * 120px),
            calc(50% + var(--dy) * 120px)
        ) scale(0);
        opacity: 0;
    }
}

/* Score reveal animation */
.player-card.revealing {
    animation: reveal3D 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes reveal3D {
    0% {
        transform: rotateY(0) translateZ(0) scale(1);
    }
    50% {
        transform: rotateY(90deg) translateZ(60px) scale(1.1);
    }
    100% {
        transform: rotateY(180deg) translateZ(0) scale(1);
    }
}

/* Share button styles */
#shareButton {
    position: relative;
    overflow: hidden;
}

#shareButton::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: inherit;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
}

#shareButton:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Add animation for the copy feedback */
@keyframes copyFeedback {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

#shareButton.copied {
    animation: copyFeedback 0.3s ease-out;
}

/* Hide share button on mobile if native share is available */
@media (max-width: 768px) {
    #shareButton {
        display: flex !important;
    }
}

/* Table header styling */
.table-header {
    position: fixed;
    top: 20px;
    left: 20px;
    text-align: left;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.table-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 0.25rem;
    background: linear-gradient(135deg, #fff, #b8c6db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.table-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

/* Shared URL styles */
.shared-url-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 2rem 0;
    padding: 0 1rem;
}

.shared-url-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    max-width: 600px;
    width: 100%;
    justify-content: center;
}

.shared-url-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.url-icon {
    font-size: 1.2rem;
}

#sharedUrlTitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 500px;
}

.owner-control {
    background: linear-gradient(135deg, #4a9eff, #357abd);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.owner-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #357abd, #2868a9);
}

/* Make the form display inline */
.control-buttons form {
    display: inline-flex;
    margin: 0;
}

/* Adjust button icons */
.button-icon {
    margin-right: 4px;
    font-size: 1em;
}

.shared-urls-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    max-width: 600px;
    transition: opacity 0.3s ease;
}

.shared-url-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    min-width: 200px;
    max-width: calc(50% - 0.5rem);
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.shared-url-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.url-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 1rem;
    max-width: calc(100% - 2rem);
}

.mini-button {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    opacity: 0.7;
    align-self: flex-end;
}

.mini-button:hover {
    opacity: 1;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    cursor: pointer;
}

.checkbox-text {
    color: rgba(255, 255, 255, 0.9);
}

.join-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.public-tables {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
}

.public-tables h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.public-tables-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.public-table-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.public-table-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.table-name-section {
    font-weight: 500;
}

.table-users {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.table-divider {
    text-align: center;
    position: relative;
    margin: 1rem 0;
}

.table-divider::before,
.table-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.table-divider::before { left: 0; }
.table-divider::after { right: 0; }

.table-divider span {
    background: #1a1a1a;
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.create-button-wrapper {
    position: relative;
    display: inline-block;
}

.create-options {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
}

/* Add a pseudo-element to bridge the gap */
.create-button-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px; /* Height of the gap */
    background: transparent;
}

.create-button-wrapper:hover .create-options {
    display: flex;
}

/* Make sure submenu stays visible when hovering over it */
.create-options:hover {
    display: flex;
}

.option-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.75rem 1rem;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.option-icon {
    font-size: 1.2rem;
}

.login-options {
    margin-bottom: 2rem;
}

.google-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 0.75rem;
    background: white;
    color: #444;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.google-login-button:hover {
    background: #f8f8f8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-icon {
    width: 18px;
    height: 18px;
}

.login-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.login-divider::before { left: 0; }
.login-divider::after { right: 0; }

.login-divider span {
    background: transparent;
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
}

.user-name {
    color: white;
    font-weight: 500;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.logout-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.25rem;
    margin-left: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.logout-icon {
    font-size: 1.1rem;
    transform: scaleX(-1);  /* Flip the door icon */
}

/* Timer styles */
.timer-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.timer-display {
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#timerDisplay {
    font-size: 3rem;
    font-weight: bold;
    font-family: monospace;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.timer-warning #timerDisplay {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 1s ease;
}

.timer-danger #timerDisplay {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    transition: all 1s ease;
}

/* Background transition styles */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: all 2s ease;
    background: linear-gradient(135deg, #1a2a6c, #2a3a7c, #1a2a6c);
    overflow: hidden;
}

.background-warning {
    background: linear-gradient(135deg, #1a2a6c, rgba(255, 215, 0, 0.3), #1a2a6c);
}

.background-danger {
    background: linear-gradient(135deg, #1a2a6c, rgba(255, 0, 0, 0.3), #1a2a6c);
}

/* Critical card animation */
@keyframes criticalBlink {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.critical-mode .critical-text {
    animation: criticalBlink 1s infinite;
}

.timer-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.normal {
    background-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.legend-dot.warning {
    background-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.legend-dot.danger {
    background-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Remove cards only when they're off screen */
.floating-card {
    animation-fill-mode: forwards;
}

/* Card content styling */
.floating-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.sound-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sound-toggle:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.sound-toggle i {
    font-size: 1.2rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

@keyframes intense-shake {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-3px) translateY(1px); }
    75% { transform: translateX(3px) translateY(-1px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.anxiety-low {
    animation: shake 0.5s ease-in-out infinite;
    border-color: rgba(255, 255, 0, 0.3);
}

.anxiety-medium {
    animation: shake 0.3s ease-in-out infinite;
    border-color: rgba(255, 165, 0, 0.5);
    box-shadow: 0 4px 20px rgba(255, 165, 0, 0.2);
}

.anxiety-high {
    animation: intense-shake 0.3s ease-in-out infinite;
    border-color: rgba(255, 69, 0, 0.7);
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.3);
    background: rgba(139, 0, 0, 0.6);
}

.anxiety-critical {
    animation: intense-shake 0.2s ease-in-out infinite, pulse 0.5s ease-in-out infinite;
    border-color: rgba(255, 0, 0, 0.8);
    box-shadow: 0 4px 30px rgba(255, 0, 0, 0.4);
    background: rgba(139, 0, 0, 0.8);
}

.anxiety-critical #timerDisplay {
    color: #ff4444;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

/* Timer Progress Bar */
.timer-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    --progress-width: 100%;
}

.timer-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: white;
    transition: width 1s linear, background-color 0.3s ease-in-out;
    animation: progressPulse 2s ease-in-out infinite;
    width: var(--progress-width);
}

@keyframes progressPulse {
    0%, 100% { opacity: 0.95; }
    50% { opacity: 0.7; }
}

/* Progress bar states */
.anxiety-low .timer-progress::after {
    background: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.anxiety-medium .timer-progress::after {
    background: #ffa500;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.4);
}

.anxiety-high .timer-progress::after {
    background: #ff4500;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
}

.anxiety-critical .timer-progress::after {
    background: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    animation: progressPulse 1s ease-in-out infinite;
}

/* Base responsive layout */
@media (max-width: 1200px) {
    .poker-container {
        padding: 1rem;
    }

    .scoreOptions {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .score-card img {
        width: 100px;
    }
}

@media (max-width: 992px) {
    .table-header {
        position: static;
        margin: 1rem auto;
        text-align: center;
        max-width: 600px;
    }

    .timer-display {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .timer-legend {
        flex-wrap: wrap;
        justify-content: center;
    }

    .scores {
        gap: 1rem;
    }

    .player-score {
        width: 110px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .scoreOptions {
        gap: 0.5rem;
    }

    .score-card img {
        width: 80px;
    }

    .control-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .control-buttons-left,
    .control-buttons-center,
    .control-buttons-right {
        width: 100%;
        justify-content: center;
    }

    .modern-button {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    #timerDisplay {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .table-header {
        margin: 0.5rem;
        padding: 0.75rem;
    }

    .table-name {
        font-size: 1.2rem;
    }

    .table-subtitle {
        font-size: 0.8rem;
    }

    .scoreOptions {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
        padding: 0 0.25rem;
    }

    .score-card img {
        width: 100%;
        max-width: 70px;
    }

    .player-score {
        width: 90px;
        height: 140px;
    }

    .player-name-header {
        font-size: 0.9rem;
    }

    .scores {
        gap: 0.5rem;
    }

    .timer-progress {
        height: 8px;
    }
}

/* Handle very small screens */
@media (max-width: 360px) {
    .scoreOptions {
        grid-template-columns: repeat(3, 1fr);
    }

    .player-score {
        width: 80px;
        height: 120px;
    }

    .score-value {
        font-size: 2rem;
    }

    #timerDisplay {
        font-size: 2rem;
    }
}

/* Handle landscape orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .poker-container {
        padding-top: 0.5rem;
    }

    .table-header {
        position: static;
        margin: 0.5rem auto;
        padding: 0.5rem;
    }

    .scoreOptions {
        margin: 0.5rem auto;
    }

    .timer-wrapper {
        margin: 0.5rem 0;
    }

    .scores {
        margin: 0.5rem auto;
    }
}

/* Hidden score styles */
.hidden-score {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: readyPulse 2s ease-in-out infinite;
}

.ready-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2ecc71;
    text-shadow: 
        0 0 10px rgba(46, 204, 113, 0.5),
        0 0 20px rgba(46, 204, 113, 0.3);
    letter-spacing: 1px;
    transform-style: preserve-3d;
    animation: readyFloat 2s ease-in-out infinite;
}

@keyframes readyFloat {
    0%, 100% {
        transform: translateY(0) scale(1) rotate3d(1, 1, 0, 0deg);
    }
    50% {
        transform: translateY(-5px) scale(1.1) rotate3d(1, 1, 0, 3deg);
    }
}

@keyframes readyPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

/* Global Controls */
.global-controls {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 1rem;
    padding: 0 1rem;
}

.global-controls .control-buttons {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.global-controls .control-buttons-left,
.global-controls .control-buttons-center {
    display: flex;
    flex: 1;
    gap: 0.5rem;
}

.global-controls .control-buttons-right {
    flex: 1;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.global-controls .modern-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    min-width: 140px;
    text-align: center;
}

.global-controls .modern-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.global-controls .modern-button.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-color: #27ae60;
}

.global-controls .modern-button.success:hover {
    background: linear-gradient(135deg, #3ed884, #2ecc71);
    border-color: #2ecc71;
}

.global-controls .modern-button.danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #c0392b;
}

.global-controls .modern-button.danger:hover {
    background: linear-gradient(135deg, #f85a4a, #e74c3c);
    border-color: #e74c3c;
}

.global-controls .modern-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

.global-controls .modern-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Control buttons styling */
#ToggleScores,
#ToggleOwnerCard,
#ClearScores {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.3),
        0 0 0 2px rgba(99, 102, 241, 0.1);
}

#ToggleScores:hover,
#ToggleOwnerCard:hover,
#ClearScores:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #818cf8, #6366f1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.4),
        0 0 0 3px rgba(99, 102, 241, 0.2);
}

#ToggleScores:active,
#ToggleOwnerCard:active,
#ClearScores:active {
    transform: translateY(1px);
    box-shadow: 
        0 2px 8px rgba(99, 102, 241, 0.3),
        0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Add shine effect */
#ToggleScores::before,
#ToggleOwnerCard::before,
#ClearScores::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

#ToggleScores:hover::before,
#ToggleOwnerCard:hover::before,
#ClearScores:hover::before {
    animation: shine 1.5s infinite;
    opacity: 1;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}