body {
    background-color: #050505;
}

.Title h1 {
    margin: 0;
    display: block;
    background: #212121;
    font-family: 'Roboto';
    color: #ffffff;
    position: absolute;
    font-size: 170%;
    padding-left: 1%;
    padding-top: 1%;
    height: 7%;
    width: 71.5%;
    top: 1.5%;
    left: 2.5%;
    border-radius: 15px;
    border: 3px solid #ffbd59;
}


.TitleContainer label {
    color: #ffffff;
    font-family: 'Roboto';
    font-size: 100%;
}

.TitleContainer select {
    font-family: 'Roboto';
    font-size: 100%;
    background-color: #212121;
    color: #ffffff;
    border: 3px solid #ffbd59;
    border-radius: 15px;
    padding: 5px 10px;
    cursor: pointer;
}

.Notice {
    margin: 0;
    display: block;
    background: #212121;
    font-family: 'Roboto';
    color: #ffffff;
    position: absolute;
    font-size: 100%;
    height: 35%;
    width: 20%;
    top: 1.5%;
    left: 78%;
    border-radius: 15px;
    border: 3px dashed #ffbd59;
}
.Notice h2 {
    font-family: 'Roboto';
    text-align: center;
    color: #ffbd59;
}
.Notice h3 {
    font-family: 'Roboto';
    text-align: center;
    color: #ffbd59;
}
.Notice h4 {
    padding: 5%;
    font-family: 'Roboto';
    text-align: center;
    color: #ffbd59;
}

.Notice ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    text-align: left; /* aligns items neatly */
}

#userIdPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #212121;
    border: 2px solid #333;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#userIdPopup input {
    margin-bottom: 10px;
}

.Notice li {
    font-size: 1rem;
    padding: 4px 8px;
    border-bottom: 1px solid #444;
}

.leaderboard-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

#leaderboardContainer {
    display: flex;
    flex-direction: column;
    align-items: center;  /* centers items horizontally */
    justify-content: center;
}


/* Dark background overlay */
.brand-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;  /* full height is needed for vertical centering */
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Popup box */
.brand-popup-content {
    background: #121212;
    border: 3px solid #ffbd59;
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    width: 350px;
    max-width: 90%;
    animation: scaleIn 0.25s ease-out;
}

/* Title */
.brand-popup-content h2 {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
}

/* Select styling */
.brand-popup-content select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-family: 'Roboto';
    background-color: #212121;
    color: white;
    border: 2px solid #ffbd59;
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
}

.brand-popup-content select:hover {
    background-color: #ffbd59;
    color: #050505;
}

/* Submit button */
.brand-popup-content button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-family: 'Roboto';
    background-color: #212121;
    color: white;
    border: 3px solid #ffbd59;
    border-radius: 15px;
    cursor: pointer;
}

.brand-popup-content button:hover {
    background-color: #ffbd59;
    color: #050505;
}

/* Fade & scale animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


.events-container {
    margin: 20px auto;
    width: 80%;
}

.event-item {
    padding: 10px;
    margin-bottom: 8px;
    border: 2px solid #ffbd59;
    border-radius: 12px;
    background-color: #212121;
    color: #fff;
    font-family: 'Roboto', sans-serif;
}

.event-item:hover {
    background-color: #ffbd59;
    color: black;
    transform: scale(1.02);
}


#eventDetailsList {
    border: 2px solid #ffbd59;
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #fff;
}

#eventDetailsList .user-item {
    padding: 8px 10px;
    margin-bottom: 5px;
    background-color: #383838;
    border-radius: 8px;
    color: #fff;
}




#pastDetailsList {
    border: 2px solid #ffbd59;
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #fff;
}

#pastDetailsList .user-item {
    padding: 8px 10px;
    margin-bottom: 5px;
    background-color: #383838;
    border-radius: 8px;
    color: #fff;
}

#currentEventsContainer h3 {
    color: #fff;
}

#pastEventsContainer h3 {
    color: #fff;
}


#pastDetailsList .user-item:hover {
    background-color: #ffbd59;
    color: #fff;
}

.leaderboard-filters button {
    background-color: #ffbd59;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-family: 'Roboto';
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.leaderboard-filters button:hover {
    background-color: #ffaa22;
}

.filter-btn.active {
    background-color: #999;   /* darker when active */
    color: white;
}

.TitleContainer {
    display: flex;
    align-items: center;      
    justify-content: space-between; 
    background: #212121;
    padding: 1%;
    border-radius: 15px;
    border: 3px solid #ffbd59;
    margin: 2.5%;
}

.TitleContainer h1 {
    color: #ffffff;
    font-family: 'Roboto';
    font-size: 170%;
    margin: 0;
}

.TitleContainer button {
    font-size: 100%;
    font-family: 'Roboto';
    text-align: center;
    color: #ffffff;
    height: 50px;               
    width: 120px;               
    background-color: #212121;
    border: 3px solid #ffbd59;
    border-radius: 15px;
    cursor: pointer;
}

.TitleContainer button:hover {
    background-color: #ffbd59;
    color: #050505;
}

.LeaveButton button {
    font-size: 100%;
    font-family: 'Roboto';
    text-align: center;
    color: #ffffff;
    height: 50px;               
    width: 120px;               
    background-color: #212121;
    border: 3px solid #ffbd59;
    border-radius: 15px;
    cursor: pointer;
}

.LeaveButton button:hover {
    background-color: #ffbd59;
    color: #050505;
}


.Coordinates {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #212121;
    height: 55%;
    width: 20%;
    z-index: 1;
    font-family: 'Roboto';
    color: #ffffff;
    position: absolute;
    top: 42%;
    left: 78%;
    border-radius: 15px;
}
.Coordinates div {
    margin: 3%;
    background:#050505;
    height: 27.5%;
    width: 85%;
    font-family: 'Roboto';
    color: #ffffff;
    padding-top: 5%;
    padding-left: 5%;
    border-radius: 15px;
}

.RangeSelector label {
    font-family: 'Roboto';
    font-size: 100%;
    color: #ffffff;
    margin-right: 10px;
}

.RangeSelector select {
    font-size: 100%;
    font-family: 'Roboto';
    color: #ffffff;
    background-color: #212121;
    border: 3px solid #ffbd59;
    border-radius: 15px;
    padding: 8px 12px;
    cursor: pointer;
    height: 50px;
    width: 140px; /* adjust if you want wider */
}

.RangeSelector select:hover {
    background-color: #ffbd59;
    color: #050505;
}


.Map {
    margin: 0;
    display: block;
    background: #212121;
    height: 82%;
    width: 50%;
    z-index: 1;
    position: absolute;
    top: 14%;
    left: 25%;
    border-radius: 15px;
    border: 3px solid #ffbd59;
}

.leaderboard {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 450px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    background: #000; /* black box */
    color: #fff;      /* white font */
    border-radius: 12px;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

.rank-circle {
    width: 20px;
    height: 20px;
    background: rgba(33, 33, 33, 1); /* dark circle background */
    color: white;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-style: bold;
    font-size: 0.75rem;
    line-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100vw; /* makes it perfectly round */
    opacity: 1;
    margin-right: 8px; /* space between rank and icon */
  }
  

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-style: normal; /* Regular */
    font-size: 0.875rem;
    line-height: 115%;
    letter-spacing: 0;
    color: white; /* keep it visible on dark background */
  }
  

.tap-count {
    font-size: 14px;
    color: #ccc; /* lighter grey for contrast */
}

.stat-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end; /* pushes them to the right */
    gap: 8px; /* space between each stat */
    margin-top: 4px;
  }
  
  .stat-block {
    width: 78px;
    height: 22px;
    background: rgba(33, 33, 33, 1);
    border-radius: 6px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: white;
  }
  
  .stat-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
  }
  
  .stat-label {
    font-size: 10px;
    opacity: 0.85;
  }
  
  .stat-value {
    font-weight: bold;
    font-size: 12px;
  }
  

.Buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #212121;
    height: 82%;
    width: 20%;
    z-index: 1;
    position: absolute;
    top: 14%;
    left: 2.5%;
    padding-top: 1%;
    border-radius: 15px;
}
.Buttons button {
    font-size: 100%;
    font-family: 'Roboto';
    text-align: center;
    color: #ffffff;
    height: 10%;
    width: 90%;
    background-color: #212121;
    border: 3px solid #ffbd59;
    border-radius: 15px;
}
.Buttons button:hover {
    background-color: #ffbd59;
    color: #050505;
}

.Pop-up {
    display: none;
    z-index: 2; /* Appear in front of map */
    width: 40%;
    height: 90%;
    background: #151515;
    border-radius: 6px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 30px 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
/* Title for Event Creation */
.Pop-up h2 {
    font-size: 40px;
    font-weight: 500;
    font-family: 'Roboto';
    margin: 30px 0 10px;
    color: #ffbd59;
}
/* Prompts */
.Pop-up label {
    font-size: 20px;
    font-weight: 500;
    font-family: 'Roboto';
    color: #ffbd59;
}
/* Inputs */
.Pop-up input {
    padding: 18px 10px;
    margin: 12px;
    font-size: 20px;
    font-family: 'Roboto';
    color: #ffffff;
    background-color: #050505;
    outline: none;
    border: 3px solid #8a8a8a;
}
.Pop-up input:focus {
    border: 3px solid #ffbd59;
}
.Pop-up input[type="text"] {
    width: 30%;
}
/* Fixing autofill turning background white */
.Pop-up input:-webkit-autofill {
    font-family: 'Roboto';
    background-color: #050505;
    -webkit-box-shadow: 0 0 0 1000px #050505 inset;
    -webkit-text-fill-color: #ffffff;
}
.Pop-up input[type="datetime-local"] {
    width: 29%;
}
.Pop-up input[type="number"] {
    width: 10%;
}
.Pop-up button[type="submit"] {
    padding: 18px 10px;
    margin: 12px;
    font-size: 20px;
    font-family: 'Roboto';
    color: #ffffff;
    width: 30%;
    height: 10%;
    background-color: #212121;
    border: 3px solid #ffbd59;
    border-radius: 15px;
}
.Pop-up button[type="submit"]:hover {
    background-color: #ffbd59;
    color: #050505;
    border: none;
}

/* Alert for when user near event */
.Alert {
    display: none;
    z-index: 2; /* Appear in front of map */
    width: 30%;
    height: 10%;
    background: #151515;
    border-radius: 6px;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 30px 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.Alert h2 {
    font-size: 40px;
    font-weight: 500;
    font-family: 'Roboto';
    margin: 30px 0 10px;
    color: #ffbd59;
}

.List {
    display: none;
    z-index: 2; /* Appear in front of map */
    width: 30%;
    height: 60%;
    background: #151515;
    border-radius: 6px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 30px 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.List h2 {
    font-size: 40px;
    font-weight: 500;
    font-family: 'Roboto';
    text-align: left;
    margin: 30px 0 10px;
    color: #ffbd59;
}
.List label {
    font-size: 20px;
    font-weight: 500;
    font-family: 'Roboto';
    color: #ffffff;
}

/* Close button */
.close {
    color: #8a8a8a;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
    cursor: pointer;
}
  
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}  