﻿*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1E1E1E;
}

html, body {
  background-color: #1E1E1E;
  color: #FFFFFF;
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

.fullscreen-page {
  min-height: calc(100vh - 64px);
}

.mud-popover {
  z-index: 3000 !important;
}

.account-banner {
  background-color: #1E1E1E;
  color: #FFFFFF;
  padding: 1rem;
}

.mud-popover {
  background-color: #1E1E1E !important;
  color: #FFD300;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid #FFD300;
}
.mud-popover .mud-menu-item:hover {
  background-color: #FFD300 !important;
  color: #1E1E1E !important;
}
.mud-popover .mud-menu-item.logout:hover {
  background-color: #FF3B30 !important;
  color: #FFFFFF !important;
}

.btn {
  background-color: #FFD300;
  color: #1E1E1E;
  border: none;
  border-radius: 1rem;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}
.btn:hover {
  background-color: #1E1E1E;
  color: #FFFFFF;
}
.btn.btn-outline {
  background-color: transparent;
  color: #1E1E1E;
  border: 2px solid #1E1E1E;
}
.btn.btn-outline:hover {
  background-color: #1E1E1E;
  color: #FFD300;
}
.btn.btn-black {
  background-color: #1E1E1E;
  color: #FFD300;
  border: 2px solid #1E1E1E;
}
.btn.btn-black:hover {
  background-color: #FFD300;
  color: #1E1E1E;
  border: 2px solid #1E1E1E;
}
.btn.btn-black-second {
  background-color: #1E1E1E;
  color: #FFD300;
  border: 2px solid #1E1E1E;
}
.btn.btn-black-second:hover {
  background-color: #2A2A2A;
  color: #FFD300;
  border: 2px solid #2A2A2A;
}
.btn.btn-yellow {
  background-color: #FFD300;
  color: #1E1E1E;
}
.btn.btn-yellow.hover {
  background-color: #1E1E1E;
  color: #FFD300;
}
.btn.btn-danger {
  background-color: #FF3B30;
  color: #FFFFFF;
  border: none;
  border-radius: 1rem;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}
.btn.btn-danger.hover {
  background-color: #1E1E1E;
  color: #FF3B30;
}
.btn.btn-success {
  background-color: #00C896;
  color: #FFFFFF;
  border: none;
  border-radius: 1rem;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}

.card {
  border-radius: 1.5rem;
  box-shadow: 0 0.5rem 1rem rgba(30, 30, 30, 0.1);
  padding: 1.5rem;
  background-color: #FFFFFF;
}
.card-header {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1E1E1E;
}
.card-body {
  font-size: 1rem;
  color: #E5E5E5;
}

.home-card {
  border-radius: 1.5rem;
  background-color: #FFFFFF;
  box-shadow: 0 0.5rem 1rem rgba(30, 30, 30, 0.1);
  padding: 2rem;
  text-align: center;
}
.home-card h2 {
  color: #1E1E1E;
  font-size: 1.5rem;
}

.container-custom {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.main-content-reset {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.appbar-bottom {
  background-color: #1E1E1E;
  border-top: 2px solid #FFD300;
}
.appbar-bottom .mud-icon-button {
  color: #FFD300 !important;
}
.appbar-bottom .mud-icon-button:hover {
  background-color: rgba(255, 211, 0, 0.1);
}

.home-wrapper {
  background-color: #1E1E1E;
  padding: 1rem;
  margin: auto;
  text-align: center;
  border-radius: 2rem;
  margin-top: 1rem;
}

.home-panel {
  background-color: #FFD300;
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 20px;
}

.logo-banner {
  background-color: #FFD300;
  color: #1E1E1E;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
}
.logo-banner h1 {
  font-weight: 900;
  margin-bottom: 10px;
}
.logo-banner .yellow-car-icon {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 1rem;
}

.home-sub {
  background-color: #FFD300;
  padding: 2rem;
  border-radius: 1.5rem;
  display: flex;
  margin-top: 1rem;
}

.home-latest-games {
  background-color: #1E1E1E;
  color: #FFD300;
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.latest-games-table {
  background-color: #1E1E1E;
  border: 2px solid #FFD300;
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.latest-games-table .mud-table-root {
  background-color: transparent;
}
.latest-games-table .mud-table-head {
  background-color: #FFD300;
  color: #1E1E1E !important;
}
.latest-games-table .mud-table-head .mud-table-cell {
  font-weight: bold;
  color: #1E1E1E !important;
}
.latest-games-table .mud-table-cell {
  color: #FFFFFF !important;
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.95rem;
}
.latest-games-table .mud-table-row {
  transition: background-color 0.2s ease;
  color: #FFD300 !important;
}
.latest-games-table .mud-table-row:hover {
  background-color: rgb(55.5, 55.5, 55.5);
}
.latest-games-table .mud-table-row td:last-child {
  font-weight: bold;
}
.latest-games-table .mud-table-row td:last-child.win {
  color: #00C896;
}
.latest-games-table .mud-table-row td:last-child.loss {
  color: #FF3B30;
}
.latest-games-table .mud-table-row td:last-child.draw {
  color: #FFD300;
}

.home-btn {
  width: 100%;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 1rem;
  border-radius: 1rem;
}

.home-btn-black {
  background-color: #1E1E1E;
  color: #FFD300;
}

.home-btn-outline {
  border: 2px solid #1E1E1E;
  background-color: transparent;
  color: #1E1E1E;
}

.custom-form {
  background-color: #1E1E1E;
  border-radius: 1rem;
  padding: 2rem;
  color: #FFD300;
}
.custom-form .mud-text {
  color: #FFD300;
}
.custom-form .custom-input .mud-input-input {
  background-color: #1E1E1E !important;
  color: #FFD300 !important;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  font-size: 1rem;
}
.custom-form .custom-input .mud-input-input::placeholder {
  color: #FFD300 !important;
  opacity: 0.7;
}
.custom-form .custom-input .mud-input-label {
  color: #FFD300 !important;
}
.custom-form .mud-button {
  background-color: #FFD300;
  color: #1E1E1E;
  border: none;
  border-radius: 1rem;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
  margin-top: 5px;
}
.custom-form .mud-button:hover {
  background-color: rgb(204, 168.8, 0) !important;
}
.custom-form .mud-link {
  color: #FFD300 !important;
  text-align: center;
  display: block;
  margin-top: 2rem;
}

.custom-form {
  background-color: #1E1E1E;
  border-radius: 1rem;
  padding: 2rem;
  color: #FFD300;
}
.custom-form .mud-text {
  color: #FFD300;
}
.custom-form .custom-input .mud-input-input {
  background-color: #1E1E1E !important;
  color: #FFD300 !important;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  font-size: 1rem;
}
.custom-form .custom-input .mud-input-input::placeholder {
  color: #FFD300 !important;
  opacity: 0.7;
}
.custom-form .custom-input .mud-input-label {
  color: #FFD300 !important;
}
.custom-form .mud-button {
  background-color: #FFD300;
  color: #1E1E1E;
  border: none;
  border-radius: 1rem;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
  margin-top: 5px;
}
.custom-form .mud-button:hover {
  background-color: rgb(204, 168.8, 0) !important;
}
.custom-form .mud-link {
  color: #FFD300 !important;
  text-align: center;
  display: block;
  margin-top: 2rem;
}

.friends-title {
  color: #FFD300;
  font-weight: bold;
  background-color: #1E1E1E;
  padding: 0.5rem;
  text-align: center;
}

.friends-alert {
  background-color: #1E1E1E;
  color: #FFD300;
}

.mud-card {
  background-color: #2A2A2A !important;
  color: #FFD300 !important;
  border: 1px solid #3B3B3B;
  padding: 0.8rem;
}

.friends-divider {
  margin-left: 10px;
  border-color: #3B3B3B !important;
}

.friends-search-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.friends-search-wrapper .friends-search {
  width: 100%;
  display: flex;
  justify-content: center;
}
.friends-search-wrapper .friends-search .friends-search-bar {
  width: 500px;
}
@media (max-width: 600px) {
  .friends-search-wrapper .friends-search .friends-search-bar {
    width: 350px;
  }
}
.friends-search-wrapper .friends-search .friends-search-bar .mud-input-adornment-end {
  display: none !important;
}
.friends-search-wrapper .friends-search .friends-search-bar .mud-input-root {
  background-color: #1E1E1E !important;
  color: #FFD300 !important;
  border: 1px solid #3B3B3B !important;
  border-radius: 4px;
}
.friends-search-wrapper .friends-search .friends-search-bar .mud-input-root.mud-input-focused {
  border: 1px solid #FFD300 !important;
  box-shadow: 0 0 0 2px rgba(255, 211, 0, 0.3);
}
.friends-search-wrapper .friends-search .friends-search-bar .mud-input-label {
  color: #FFD300 !important;
  margin-left: 10px;
}
.friends-search-wrapper .friends-search .friends-search-bar .mud-input {
  border-bottom: none !important;
}
.friends-search-wrapper .friends-search .friends-search-bar .mud-input::before, .friends-search-wrapper .friends-search .friends-search-bar .mud-input::after {
  display: none !important;
}
.friends-search-wrapper .friends-search .friends-search-bar .mud-input input {
  padding-left: 0.5rem !important;
}

.search-result-window {
  background-color: #1E1E1E;
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E5E5E5;
  border-radius: 10px;
  padding: 15px;
  column-gap: 20px;
}
.search-result-window:hover {
  background-color: rgb(17.25, 17.25, 17.25);
}
.search-result-window .search-result-text {
  pointer-events: none;
  color: #FFD300;
}
.search-result-window .search-result-text .mud-typography-caption {
  color: rgb(255, 228.6, 102);
}

.no-friends-message {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.no-friends-message .mud-typography {
  color: #ccaa00;
  margin-top: 10px;
}

.pending-request-card {
  background-color: #3B3B3B !important;
  border-color: #2A2A2A !important;
  padding: 1.5rem;
}

.profile-container {
  background-color: #1E1E1E;
  color: #FFD300;
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(255, 211, 0, 0.2);
}

.profile-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
  color: #FFD300;
}

.profile-input {
  margin-bottom: 1rem;
}
.profile-input .mud-input-control {
  background-color: #1E1E1E !important;
  border-radius: 4px;
  padding: 0.5rem;
}
.profile-input .mud-input {
  color: #E5E5E5 !important;
}
.profile-input .mud-input-label {
  color: #ccaa00 !important;
}
.profile-input .mud-input-slot input {
  color: #FFD300 !important;
  background-color: #1E1E1E !important;
  font-weight: bold;
}
.profile-input .mud-input-root {
  border-bottom: 1px solid #FFD300 !important;
}

.profile-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.game-wrapper {
  text-align: center;
}
.game-wrapper .game-card {
  background-color: #2A2A2A !important;
  color: #FFD300 !important;
  border: 1px solid #3B3B3B;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(255, 211, 0, 0.15);
  padding: 1.5rem;
}
.game-wrapper .score-input {
  font-size: 2rem;
  font-weight: bold;
  color: #FFD300;
  background-color: transparent;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  animation: pop-score 0.3s ease-in-out;
  transition: transform 0.2s;
}
.game-wrapper .score-history-chart {
  background-color: #3B3B3B;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 2rem;
}
.game-wrapper .game-score-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}
.game-wrapper .game-score-layout .player-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.game-wrapper .game-score-layout .vs-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FFD300;
  animation: pulse-vs 2s infinite;
}
.game-wrapper .lead-status {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.game-wrapper .lead-green {
  color: #00C896;
  animation: pulse-lead 1.5s infinite;
}
.game-wrapper .lead-yellow {
  color: #FFD300;
  animation: pulse-lead 1.5s infinite;
}
.game-wrapper .lead-red {
  color: #FF3B30;
  animation: pulse-lead 1.5s infinite;
}
.game-wrapper .games-divider {
  margin: 40px 0 40px 0;
  border-color: #3B3B3B !important;
}
.game-wrapper .score-chart-wrapper {
  height: 100%;
  position: relative;
}
@media (min-width: 600px) {
  .game-wrapper .score-chart-wrapper {
    max-width: 600px;
  }
}
.game-wrapper .score-chart-wrapper .score-history-chart {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4/4;
  background-color: #3B3B3B;
  border-radius: 12px;
}

.score-timeline .mud-expand-panel-content,
.score-timeline .mud-collapse-wrapper-inner,
.score-timeline .mud-collapse-wrapper,
.score-timeline .mud-collapse-container {
  padding: 0 !important;
  margin: 0 !important;
}
.score-timeline .mud-expand-panel-gutters {
  padding: 0 !important;
}
.score-timeline .mud-expand-panel {
  margin: 0 !important;
}

@keyframes pulse-lead {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}
