body {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  background-color: #000d00;
  color: white;
  padding: 1rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  margin-top: 0.8rem;
  padding: 0 1rem;
}

.avatar-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  gap: 5rem;
  margin-top: 3rem;
}

.greeting {
  font-size: 1.2rem;
  text-align: right;
}

.greeting strong {
  display: block;
  font-size: 1.5rem;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: white;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 100%;
  object-fit: cover;
}

.avatar-popup {
  position: fixed;
  bottom: -100%; 
  left: 0;
  width: 100%;
  height: 50%;  
  background-color: #111;  
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  transition: bottom 0.3s ease;
  overflow-y: auto; 
  z-index: 1000;
  padding: 1rem;
  box-sizing: border-box;
}

.avatar-popup.active {
  bottom: 0; 
}

.popup-header {
  text-align: center;
  margin-bottom: 1rem;
}

.popup-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.avatars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 1rem;
}

.avatars-grid img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #fff;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}

.avatars-grid img:hover {
  transform: scale(1.1);
}

.cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.stats-card, .card {
  background-color: #C60408;
  border-radius: 12px;
  color: white;
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
  text-align: center;
}

.stats-card {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  margin-top: 10px;
}

.stats-card div {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.card {
  padding: 1rem 0.8rem;
}

.card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.card-stats {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-stats .stat small {
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
  color: black;
}

.card-stats .stat strong {
  font-size: 0.85rem;
}

.section-title {
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
}

.card-header {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  margin-bottom: 0.5rem;
}

.card-header h3 {
  margin: 0;
  font-size: 1.4rem;
  margin-top: -0.8rem;
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-right: -0.7rem;
  margin-top: -1rem;
}

.btn-extra-games {
    background-color: #d30000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    transition: all 0.3s ease;
    margin: 20px auto;
    display: block; 
    box-shadow: 0 4px 10px rgba(211, 0, 0, 0.2);
}

.btn-extra-games:hover {
    background-color: #a10000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(211, 0, 0, 0.3);
}

.btn-extra-games:active {
    transform: translateY(0);
}

.extra-games-hidden {
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
    animation: fadeIn 0.4s ease-out;
}

.extra-games-visible {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sidebar {
  position: fixed;
  top: 0;
  left: -75%; 
  width: 75%; 
  height: 100%;
  background-color: #000; 
  color: white;
  padding: 2rem 1rem;
  box-sizing: border-box;
  transition: left 0.3s ease;
  z-index: 2000;
}

.sidebar.active {
  left: 0;
}

.sidebar .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin-top: 5rem;
}

.sidebar li {
  margin: 2.5rem 0;
}

.sidebar a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
}

.sidebar a img {
  width: 24px;
  margin-right: 12px;
}

