
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&display=swap');
body {
background-image: url('../img/BG2.png');
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;
display: flex;
flex-direction: column;
min-height: 100vh;
margin: 0;
}

.content {
flex: 1;
display: flex;
flex-wrap: wrap;
gap: 10px;
padding: 0 1rem 3rem;
justify-content: flex-start;
}

.booth {
border: 1px solid #ccc;
border-radius: 10px;
overflow: hidden;
width: calc(14% - .5rem);
min-width: 100px;
text-align: center;
background-color: white;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
cursor: pointer;
text-decoration: none !important;
}

@media screen and (max-width: 480px) {
.booth {
  border: 1px solid #ccc;
 border-radius: 10px;
 overflow: hidden;
 width: calc(33% - .5rem);
 min-width: 100px;
 text-align: center;
 background-color: white;
 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 cursor: pointer;
 text-decoration: none !important;
  }
}
@media screen and (min-width: 481px) and (max-width: 1024px) {
.booth {
  border: 1px solid #ccc;
 border-radius: 10px;
 overflow: hidden;
 width: calc(14% - .5rem);
 min-width: 100px;
 text-align: center;
 background-color: white;
 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 cursor: pointer;
 text-decoration: none !important;
}
}

.booth.maintenance {
pointer-events: none;
opacity: 0.5;
}

.booth img {
width: 100%;
height: auto;
}

.booth .booth-title {
color: black !important;
font-size: 0.9rem;
font-weight: bold;
margin: 10px 0;
text-decoration: none !important;
height: 3rem;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

.booth .booth-status {
font-size: 0.7rem;
display: flex;
align-items: center;
justify-content: center;
padding: 8px;
color: white;
border-radius: 5px;
margin: 10px;
}

.booth .booth-status.maintenance {
background-color: red;
}

.booth .booth-status.active {
background-color: green;
}

.booth .booth-status.playing {
background-color: orange;
}

h3.booth-title-underline {
  margin: 0 !important;
  width: auto !important;
  position: relative;
  display: inline-block;
  color: #0b1b56 !important;
  padding: 0 !important;
  margin-top: 0 !important;
  font-weight: 800;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(26px, 2.6vw, 42px) !important;
  letter-spacing: 0.02em;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  transition: color 0.2s ease;
}

h3.booth-title-underline:hover {
  color: #102970 !important;
}

.booth-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
}

.booth-header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.booth-sort-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-height: 50px;
  border: 1px solid #d7deea;
  border-radius: 999px;
  overflow: visible;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(11, 27, 86, 0.08);
  position: relative;
  z-index: 20;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.booth-sort-wrapper:hover {
  border-color: #b7c5df;
  box-shadow: 0 10px 24px rgba(11, 27, 86, 0.14);
}

.booth-sort-wrapper:focus-within {
  border-color: #2f6dff;
  box-shadow: 0 0 0 4px rgba(47, 109, 255, 0.16), 0 10px 24px rgba(11, 27, 86, 0.12);
}

.booth-sort-wrapper::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #6f7a8f;
  border-bottom: 2px solid #6f7a8f;
  transform: rotate(45deg);
  position: absolute;
  right: 14px;
  top: 50%;
  margin-top: -6px;
  pointer-events: none;
  transition: transform 0.2s ease, margin-top 0.2s ease;
}

.booth-sort-wrapper.is-open::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.booth-sort-wrapper i {
  color: #7b879b;
  font-size: 13px;
}

.booth-sort-trigger {
  border: 0;
  background: transparent;
  color: #1f2f57;
  font-weight: 700;
  font-size: 16px;
  min-width: 180px;
  outline: none;
  cursor: pointer;
  padding: 0 24px 0 0;
  text-align: left;
  white-space: nowrap;
}

.booth-sort-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid #d8e0ef;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(11, 27, 86, 0.18);
}

.booth-sort-menu[hidden] {
  display: none;
}

.booth-sort-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: #1f2f57;
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.booth-sort-option:hover {
  background: #edf3ff;
}

.booth-sort-option.is-selected {
  background: #2f6dff;
  color: #ffffff;
}

.booth-count {
  min-height: 50px;
  padding: 0 20px !important;
  border-radius: 999px !important;
  border: 2px solid #ffd23f !important;
  background: #ffffff !important;
  color: #102970 !important;
  font-size: 28px;
  font-weight: 900 !important;
  line-height: 46px;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(16, 41, 112, 0.1);
}

#backToTopBtn {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #007bff;
color: white;
border: none;
padding: 10px 15px;
border-radius: 50%;
font-size: 20px;
display: none; 
cursor: pointer;
z-index: 1000;
}

#backToTopBtn:hover {
background-color: #0056b3;
}

h3.game-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: linear-gradient(to right, #00e5ff, #0288d1);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
  transition: width 0.3s ease;
}

h3.game-title:hover::after {
  width: 80%;
}

.game-alert.alert-info {
  background-color: #e0f7fa;
  border: 2px solid #00b0ff;
  color: #0288d1;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 176, 255, 0.3);
  transition: all 0.3s ease;
}

.game-alert.alert-info:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(0, 176, 255, 0.5);
}

.list-group.game-list-group {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 10px;
}

.list-group-item.game-list-group-item.notification {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  background-color: #e0f7fa;
  border: 2px solid #00b0ff;
  border-radius: 10px;
  color: #333;
  transition: all 0.3s ease;
}

.list-group-item.game-list-group-item.notification:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #00b0ff;
  background-color: #b3e5fc;
}

.badge.game-badge.meta {
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 0 5px rgba(0, 176, 255, 0.5);
  transition: transform 0.2s ease;
  color: #fff;
}

.badge.game-badge.meta:hover {
  transform: rotate(5deg);
}

.btn.btn-outline-primary.game-btn-outline {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(45deg, #00e5ff, #0288d1);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn.btn-outline-primary.game-btn-outline:hover {
  background: linear-gradient(45deg, #0288d1, #00e5ff);
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
  color: #fff;
}

@media (max-width: 576px) {
  .booth-header {
    align-items: flex-start !important;
  }

  .booth-header-controls {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .booth-sort-wrapper {
    min-height: 42px;
    padding: 0 10px;
    flex: 1;
  }

  .booth-sort-trigger {
    min-width: 0;
    width: 100%;
    font-size: 13px;
    padding-right: 18px;
  }

  .booth-sort-menu {
    min-width: 100%;
    left: 0;
    right: 0;
  }

  .booth-count {
    min-height: 42px;
    padding: 0 12px !important;
    font-size: 18px;
    line-height: 38px;
    white-space: nowrap;
  }

  .game-notification-container {
    width: 95%; 
    padding: 15px;
  }

  h3.game-title {
    font-size: 1.5rem; 
  }

  h3.game-title::after {
    width: 50%; 
  }

  h3.game-title:hover::after {
    width: 70%;
  }

  .game-alert.alert-info {
    padding: 10px;
    font-size: 0.9rem;
  }

  .list-group-item.game-list-group-item.notification {
    padding: 10px;
    flex-direction: column; 
    align-items: flex-start;
    text-align: left;
  }

  .badge.game-badge.meta {
    margin-bottom: 8px; 
  }

  .btn.btn-outline-primary.game-btn-outline {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

@media (min-width: 577px) and (max-width: 991px) {
  .game-notification-container {
    width: 90%;
    padding: 18px;
  }

  h3.game-title {
    font-size: 1.75rem; 
  }

  h3.game-title::after {
    width: 55%;
  }

  h3.game-title:hover::after {
    width: 75%;
  }

  .list-group-item.game-list-group-item.notification {
    padding: 12px;
  }

  .btn.btn-outline-primary.game-btn-outline {
    padding: 9px 18px;
  }
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}