



/* Main style for boxing */

.mainstyle{
    margin: 1em;
    gap: 1em;
    background: #16213e;
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    padding: 1em;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #eee;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
h1 {
    margin-bottom: .25em;
    color: #00d4ff;
}
.controls {
    background: #16213e;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.input-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    color: #00d4ff;
    font-weight: 600;
}
input, textarea {
    width: 100%;
    padding: 10px;
    background: #0f3460;
    border: 1px solid #00d4ff;
    border-radius: 5px;
    color: #eee;
}

.button-group {
    display: flex;
    justify-content: space-between;

}
textarea {
    min-height: 100px;
    resize: vertical;
}
button {
    background: #00d4ff;
    color: #1a1a2e;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-right: 10px;
}
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}
#map {
    height: 60em;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.info {
    background: #16213e;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #00d4ff;
}
.slider-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
.slider-group input[type="range"] {
    flex: 1;
}
.slider-value {
    min-width: 50px;
    text-align: center;
    color: #00d4ff;
    font-weight: 600;
}
.toggle-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0f3460;
    transition: 0.4s;
    border-radius: 30px;
    border: 2px solid #00d4ff;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #00d4ff;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .toggle-slider {
    background-color: #00d4ff;
}
input:checked + .toggle-slider:before {
    transform: translateX(30px);
    background-color: #1a1a2e;
}
.leaflet-popup-content-wrapper {
    background: #16213e;
    color: #eee;
    border: 2px solid #00d4ff;
}
.leaflet-popup-tip {
    background: #16213e;
    border: 2px solid #00d4ff;
}
.popup-content {
    padding: 5px;
}
.popup-content strong {
    color: #00d4ff;
}
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
    background-color: rgba(0, 212, 255, 0.6) !important;
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
    background-color: rgba(0, 212, 255, 0.8) !important;
    color: #1a1a2e !important;
    font-weight: bold;
}




/* Modal */

/* Add a background color when the inputs get focus */
input[type=text]:focus, input[type=password]:focus {
  outline: none;
}

/* Float cancel and signup buttons and add an equal width */
.cancelbtn, .signupbtn {
  width: 30%;
}

/* Add padding to container elements */
.container {
  padding: 16px;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: #16213e;
  padding-top: 50px;
}

/* Modal Content/Box */
.modal-content {
  margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
  width: 80%; /* Could be more or less, depending on screen size */
}

/* Style the horizontal ruler */
hr {
  border: 1px solid #f1f1f1;
  margin-bottom: 25px;
}
 
/* The Close Button (x) */
.close {
  position: absolute;
  right: 35px;
  top: 15px;
  font-size: 40px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #f44336;
  cursor: pointer;
}

.clearfix{
    display: flex;
    justify-content: space-around;

}

/* Clear floats */
.clearfix::after {
    content: "";
  clear: both;
  display: table;
}



/* Navigation Style */

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #16213e;
}

.nav-links {
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.25s;
}

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

.nav-auth {
    display: flex;
    align-items: center;
}

#logged-out-buttons,
#logged-in-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#username-display {
    margin-right: 1rem;
    font-weight: 500;
}

/* .nav-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-btn {
    background-color: #4CAF50;
    color: white;
}
 
.nav-btn:hover {
    background-color: #45a049;
}

.logout-btn {
    background-color: #f44336;
}

.logout-btn:hover {
    background-color: #da190b;
} */



/* Popup notification */

.popup-notification {
    display: none;
    background-color: #00d4ff;
    color: #1a1a2e;
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    max-width: 300px;
    height: auto;
    font-size: 14px;
}

.popup-notification.success {
    background-color: #4CAF50;
}

.popup-notification.info {
    background-color: #2196F3;
}


.stats-container{
    display: flex;
    justify-content: space-around;
    margin-top: 1em;
}
h3{
    color: #00d4ff;
    margin-bottom: 0.5em;
}

.Leaderboard{
    display: flex;
    flex-direction: column;
    align-items: center;;
}
.leaderboard-content {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 3em;
    margin-top: 1em;
}

.Leaderboardscontent{
    display: flex;
    flex-direction: column;
    align-items: center;;
}

#leaderboard-topcount table {
    width: 100%;
    border-collapse: collapse;
}

#leaderboard-topcount th,
#leaderboard-topcount td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#leaderboard-topcount th {
    font-weight: bold;
}



#leaderboard-toplength table {
    width: 100%;
    border-collapse: collapse;
}

#leaderboard-toplength th,
#leaderboard-toplength td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#leaderboard-toplength th {
    font-weight: bold;
}



/* Responsive Design */

@media screen and (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
    }
    .stats-container{
        flex-direction: column;
        gap: 2em;
    }
}