body {
    font-family: Arial, sans-serif;
    background-image: url('/images/Background.png');
    background-size: cover;
    color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

header {
    background: rgba(0, 128, 128, 0.7);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: calc(95% - 40px);
    margin: 20px auto; /* Center the header with side gaps */
    border-radius: 10px; /* Rounded corners */
    z-index: 10;
    position: fixed;
    left: 0;
    right: 0;
}

header h1, header p {
    margin: 0;
}

.main-content {
    flex: 1;
    margin-top: 160px; /* Adjusted for the header height and top margin */
    padding: 20px;
    padding-bottom: 60px; /* Space for the footer */
}

.search-section, .description-section, .player-container {
    background: rgba(0, 128, 128, 0.5);
    margin: 20px auto;
    padding: 20px;
    width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-container select, .search-container input, .search-container button {
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    border: none;
}

.search-container input {
    flex-grow: 1;
}

.player-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: rgba(0, 128, 128, 0.5);
    padding: 20px;
    width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.player-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

.player-avatar img {
    width: auto;
    height: 200px; /* Adjust the height as needed */
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 10px;
}

.player-avatar button {
    background-color: #ffffff;
    color: #000000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.player-avatar button:hover {
    background-color: #000000;
    color: #ffffff;
}

.player-info {
    text-align: left;
    flex-grow: 1;
    border: 1px solid rgba(255, 255, 255, 0.5); /* Semi-transparent border */
    padding: 10px;
    border-radius: 5px;
}

.player-info h2 {
    margin-top: -50px;
    border: none;
    cursor: default; /* Prevent h2 from being copied */
}

.player-info p {
    margin: 10px 0;
}

.player-info p span {
    display: inline-block;
    background: rgba(0, 128, 128, 0.5);
    padding: 5px;
    border-radius: 3px;
    cursor: pointer;
}

button {
    background-color: #ffffff;
    color: #000000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #000000;
    color: #ffffff;
}

footer {
    background: rgba(0, 128, 128, 0.7);
    padding: 10px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    bottom: 0;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    padding: 20px;
    background: rgba(0, 128, 128, 0.5);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 80%;
}

.spinner {
    border: 8px solid rgba(0, 128, 128, 0.3);
    border-top: 8px solid #008080;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.player-not-found {
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 80%;
    text-align: center;
}

.player-not-found h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.player-not-found p {
    margin: 0;
}

.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    animation: fadeInOut 1.5s forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

