/* Base layout */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: #111;
    color: #eee;
}

.container {
    max-width: 960px;
    margin: auto;
    padding: 20px 12px; /* Add horizontal padding */
    box-sizing: border-box;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: #222;
    padding: 10px 20px;
    gap: 10px;
}

.nav-brand {
    flex-shrink: 0;
}

.nav-brand img.brand-logo {
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(92.83deg, #ff7426 0%, #f93a13 100%);
    padding: 2px;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.nav-buttons button img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-buttons button {
    background: none;
    border: none;
    padding: 4px;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    background: radial-gradient(#1a1a1a, #000);
    border: 2px solid #ff7426;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
}

.nav-links a:hover {
    color: #fff;
}

/* Buttons */
/* button, input[type=submit] {
    background: #0077cc;
    color: #fff;
    border: none;
    padding: 10px 14px;
    margin: 5px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover, input[type=submit]:hover {
    background: #005fa3;
} */

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #1b1b1b;
}

th, td {
    border: 1px solid #333;
    padding: 10px;
    text-align: center;
}

/* Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background: #222;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
}

.modal-content {
    background: #222;
    color: #eee;
    padding: 20px;
    border-radius: 10px;
    min-width: 300px;
}

.modal .close {
    float: right;
    cursor: pointer;
    font-size: 2rem;
}

/* Dart Input UI */
.dart-panel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.dart-panel button {
    font-size: 1rem;
    padding: 14px 0;
    background: #2b2b2b;
}

.dart-panel .action {
    grid-column: span 2;
    background: #cc3333;
}

.dart-score {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 10px;
    color: #00ff99;
}

/* Checkout suggestion */
.checkout {
    margin-top: 15px;
    padding: 10px;
    background: #202020;
    border-left: 4px solid #0f0;
    font-style: italic;
    color: #aaffaa;
}

#dart-ui {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 15px;
    overflow-x: hidden;
}

.throw-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
    overflow: hidden;
}

.throw-boxes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: hidden;
}

.dart-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
}

.multiplier-buttons,
.match-actions {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: center;
}

.dart-number-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.bull-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.turn-status,
.live-info {
    text-align: center;
    margin: 10px 0;
    font-size: 1.8em;
    font-weight: bold;
    color: #ff7426;
}


/* Player list */
.player-list {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 6px;
    list-style: none;
}

.player-list li {
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 480px) {
    .dart-panel {
        grid-template-columns: repeat(3, 1fr);
    }

    .dart-panel button {
        font-size: 0.85rem;
        padding: 10px;
        min-width: 50px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.75rem;
    }
    .fc .fc-toolbar-title {
        font-size: 1rem;
    }
}

a:focus {
    outline: none;
    position: relative;
  }
  
  a:focus::after {
    width: 50px;
  }
  
  a::after {
    content: "";
    background: var(--white);
    position: absolute;
    bottom: 5px;
    left: var(--gap);
    height: 3px;
    width: 0;
    transition: 0.5s;
    transition-delay: 0.2s;
  }

  .admin-page, .profile-page, .lobby-page, .leagues-page, .log-out-page {
    display: none;
    font-size: 3rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.previous-page, .bugreport-page, .news-page {
    display: block;
    font-size: 3rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.admin-page, .profile-page, .lobby-page, .leagues-page, .log-out-page, .previous-page, .bugreport-page, .news-page {
    display: block;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #222;
        position: absolute;
        top: 110px;
        right: 0;
        width: 200px;
        padding: 10px;
        border-left: 1px solid #333;
        z-index: 1000;
    }

    .nav-links li a {
        font-size: 2em; /* Increase as needed (e.g., 1.2em or 18px) */
        margin-top: 1em;
    }

    .nav-links.show {
        display: flex;
    }
}

.footer {
    text-align: center;
    font-size: 1.2em;
    background: #222;
    color: #fff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#multiplier-buttons button {
    padding: 12px 20px;
    font-size: 1.1em;
    border-radius: 6px;
    font-weight: bold;
}

.throw-box {
    width: 100px;
    height: 60px;
    background-color: #111;
    border: 2px solid #ff7426;
    color: white;
    font-size: 2em;
    border-radius: 6px;
    font-weight: bold;
    user-select: none;
    margin-top: 20px;
  
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .news-container {
    max-width: 800px;
    margin: 2em auto;
    padding: 1.5em;
    background: #1a1a1a;
    color: #f0f0f0;
    border-radius: 8px;
}

.news-container h1 {
    text-align: center;
    margin-bottom: 1.5em;
    font-size: 2em;
}

.news-item {
    padding: 1em;
    border-bottom: 1px solid #444;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 0.9em;
    color: #aaa;
}

.news-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 0.2em;
}

.news-body {
    margin-top: 0.5em;
}

.news-body a {
    color: linear-gradient(92.83deg, #ff7426 0%, #f93a13 100%);
    text-decoration: underline;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

#site-footer {
    margin-top: auto;
    background-color: #343a40; /* match header background */
    color: white;
    text-align: center;
    padding: 12px 0;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

main {
    flex: 1;
}



/* Cool CSS for app */

/* BUTTONS */

/* CSS */
button {
    align-items: center;
    appearance: none;
    background-clip: padding-box;
    background-color: initial;
    background-image: none;
    border-style: none;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    flex-direction: row;
    flex-shrink: 1;
    font-family: Eina01,sans-serif;
    font-size: 1rem;
    font-weight: 800;
    justify-content: center;
    line-height: 24px;
    margin: 0;
    min-height: 48px;
    outline: none;
    overflow: visible;
    padding: 10px 16px;
    pointer-events: auto;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
    width: auto;
    word-break: keep-all;
    z-index: 0;
  }
  
  @media (min-width: 768px) {
    button {
      padding: 10px 22px;
    }
  }
  
  button:before,
  button:after {
    border-radius: 80px;
  }
  
  button:before {
    background-image: linear-gradient(92.83deg, #ff7426 0, #f93a13 100%);
    content: "";
    display: block;
    height: 100%;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -2;
  }
  
  button:after {
    background-color: initial;
    background-image: linear-gradient(#541a0f 0, #0c0d0d 100%);
    bottom: 4px;
    content: "";
    display: block;
    left: 4px;
    overflow: hidden;
    position: absolute;
    right: 4px;
    top: 4px;
    transition: all 100ms ease-out;
    z-index: -1;
  }
  
  button:hover:not(:disabled):before {
    background: linear-gradient(92.83deg, rgb(255, 116, 38) 0%, rgb(249, 58, 19) 100%);
  }
  
  button:hover:not(:disabled):after {
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    transition-timing-function: ease-in;
    opacity: 0;
  }
  
  button:active:not(:disabled) {
    color: #ccc;
  }
  
  button:active:not(:disabled):before {
    background-image: linear-gradient(0deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), linear-gradient(92.83deg, #ff7426 0, #f93a13 100%);
  }
  
  button:active:not(:disabled):after {
    background-image: linear-gradient(#541a0f 0, #0c0d0d 100%);
    bottom: 4px;
    left: 4px;
    right: 4px;
    top: 4px;
  }
  
  button:disabled {
    cursor: default;
    opacity: .24;
  }


  @media only screen and (max-width: 430px) {
    body {
      font-size: 0.95rem;
    }
  
    .container {
      padding: 10px 5px;
    }
  
    .navbar {
    flex-wrap: nowrap; /* Don't wrap into column */
    gap: 6px;
    padding: 6px 10px;
    }

    .nav-brand img.brand-logo {
    height: 50px;
    }

    .nav-buttons button {
    width: 42px;
    height: 42px;
    padding: 2px;
    }
    
    .nav-buttons button img {
    width: 24px;
    height: 24px;
    }

    .nav-links a {
    font-size: 0.85rem;
    }

    .nav-buttons button img {
      width: 28px;
      height: 28px;
    }
  
    .dart-panel {
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }
  
    .dart-panel button {
      font-size: 0.9rem;
      padding: 10px 0;
    }
  
    .dart-score {
      font-size: 2rem;
    }
  
    .throw-box {
      width: 80px;
      height: 50px;
      font-size: 1.5em;
    }
  
    .dart-controls,
    .bull-actions,
    .multiplier-buttons,
    .match-actions {
      gap: 8px;
      flex-wrap: nowrap;
    }
  
    .dart-number-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  
    button {
    font-size: clamp(0.75rem, 2vw, 0.95rem);
    padding: 6px 10px;
    }
  
    .turn-status,
    .live-info {
      font-size: 1.5em;
    }
  }
  