/* Panel positioning and size adjustments */
.panel {
    position: fixed;
    top: 420px;
    left: 50%;
	bottom: 50px;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 48, 73, 0.8);
    color: rgba(253, 240, 213, 1);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, display 0s 0.3s;
    scrollbar-color: rgba(102, 155, 188, 0.8) rgba(102, 155, 188, 0.3);
	font-size: 18px;
	text-color: rgba(253, 240, 213, 1);
}

.panel.active {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Custom scrollbar for WebKit browsers (Chrome, Safari) */
.panel::-webkit-scrollbar {
    width: 12px;
}

.panel::-webkit-scrollbar-track {
    background: rgba(102, 155, 188, 0.3);
    border-radius: 10px;
}

.panel::-webkit-scrollbar-thumb {
    background: rgba(102, 155, 188, 0.8);
    border-radius: 10px;
    border: 2px solid rgba(83, 121, 183, 0.3);
}

.panel::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 155, 188, 0.8);
}

/* Panel close button styling */
.panel a.close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 4rem;
    height: 4rem;
    cursor: pointer;
    text-indent: 4rem;
    overflow: hidden;
    white-space: nowrap;
    transition: color 0.2s ease-in-out;
}

.panel a.close:before {
    content: '';
    display: block;
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-position: center;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20px' height='20px' viewBox='0 0 20 20'%3E%3Cline x1='2' y1='2' x2='18' y2='18' stroke='%23ffffff' stroke-width='1' /%3E%3Cline x1='18' y1='2' x2='2' y2='18' stroke='%23ffffff' stroke-width='1' /%3E%3C/svg%3E");
    background-size: 20px 20px;
    background-repeat: no-repeat;
    transition: background-color 0.2s ease-in-out;
}

.panel a.close:hover:before {
    background-color: rgba(193, 18, 31, 0.7);
}

.panel a.close:active:before {
    background-color: rgba(193, 18, 31, 0.9);
}

/* Search Controls */
.search-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
	font-weight: bold;
	text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.7),
        -1px -1px 0 rgba(0, 0, 0, 0.7),
        1px -1px 0 rgba(0, 0, 0, 0.7),
        -1px 1px 0 rgba(0, 0, 0, 0.7);
}

/* Search Input */
.search-input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

/* Search Button */
.search-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: rgba(102, 155, 188, 1.0);
    color: rgba(253, 240, 213, 1);
    border: 2px solid rgba(253, 240, 213, 1);
    border-radius: 5px;
    transition: background 0.3s ease, border 0.3s ease;
	text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.7),
        -1px -1px 0 rgba(0, 0, 0, 0.7),
        1px -1px 0 rgba(0, 0, 0, 0.7),
        -1px 1px 0 rgba(0, 0, 0, 0.7);
}

.search-button:hover {
    background: rgba(193, 18, 31, 1.0);
}

/* Region Combobox */
.region-combobox {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
	font-weight: bold;
}

/* Highscore Buttons Container */
.highscore-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
	font-weight: bold;
}

/* Highscore Buttons Styling */
.highscore-button {
    width: 120px;
    height: 40px;
    cursor: pointer;
    background: rgba(102, 155, 188, 1.0);
    color: rgba(253, 240, 213, 1);
    border: 2px solid rgba(253, 240, 213, 1);
    border-radius: 5px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
	text-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.7),
        -1px -1px 0 rgba(0, 0, 0, 0.7),
        1px -1px 0 rgba(0, 0, 0, 0.7),
        -1px 1px 0 rgba(0, 0, 0, 0.7);
}

.highscore-button:hover {
    background: rgba(193, 18, 31, 1.0);
}

.highscore-button:focus {
    outline: none;
}

/* Highscore Table */
.highscore-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
	font-weight: bold;
}

.highscore-table th,
.highscore-table td {
	background: rgba(77, 170, 208, 0.6);
    border: 1px solid rgba(253, 240, 213, 1);
    padding: 10px;
    text-align: center;
}

.highscore-table th {
    background: rgba(0, 48, 73, 1.0);
    color: rgba(253, 240, 213, 1);
}

.highscore-table tbody tr:nth-child(even) {
    background: rgba(0, 48, 73, 0.9);
}