body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 10px;
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

#logo {
    max-width: 150px;
}

h1 {
    font-size: 24px;
    margin: 10px 0;
}

#player1 {
    height: 40vh;
    width: 100%;
    max-width: 600px;
    border: 2px solid #007BFF;
    border-radius: 10px;
    margin-bottom: 15px;
    background-color: #000;
}

.list {
    width: 100%;
    max-width: 600px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-spacing: 8px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

th {
    padding: 5px;
}

img {
    max-width: 100%;
    height: auto; /* Memastikan aspek rasio tetap terjaga */
    max-height: 100px; /* Ubah ini untuk memperbesar tinggi logo */
    width: auto; /* Membiarkan lebar diatur secara otomatis */
    border-radius: 8px;
    border: 2px solid;
    transition: transform 0.2s, border-color 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* Media query untuk responsif */
@media (max-width: 600px) {
    #player1 {
        height: 30vh;
    }
    img {
        max-height: 50px; /* Ubah ukuran untuk tampilan mobile */
    }
}

/* Dark Mode Styles */
.dark-mode {
    background-color: #121212;
    color: #f4f4f4;
}

.dark-mode table {
    background-color: #1e1e1e;
}

.dark-mode img {
    border-color: #333;
}

.dark-mode img:hover {
    border-color: #007BFF;
}

/* Light Mode Styles */
.light-mode {
    background-color: #f4f4f4;
    color: #333;
}

.light-mode table {
    background-color: #fff;
}

.light-mode img {
    border-color: #ddd;
}

.light-mode img:hover {
    border-color: #007BFF;
}

/* Toggle Switch Style */
.toggle-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007BFF;
}

input:checked + .slider:before {
    transform: translateX(26px);
}