body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
}

header {
    background-color: #333;
    color: white;
    padding: 1em 0;
    text-align: center;
}

main {
    padding: 20px;
    text-align: center;
}

#createLevelBtn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
}

#createLevelBtn:hover {
    background-color: #45a049;
}

#levelsContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.level-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left;
}

.level-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.difficulty-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.level-name {
    font-size: 1.5em;
    margin: 0;
    flex-grow: 1;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.2em;
    color: #f39c12; /* Gold color for stars */
}

.star-icon {
    width: 24px;
    height: 24px;
}

.level-creator, .level-id, .level-song, .level-difficulty-text {
    margin: 5px 0;
    color: #555;
}


/* Modal styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#levelForm label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

#levelForm input[type="text"],
#levelForm input[type="number"],
#levelForm select {
    width: calc(100% - 22px);
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#levelForm button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 16px;
}

#levelForm button[type="submit"]:hover {
    background-color: #0056b3;
}

.empty-message {
    color: #777;
    font-style: italic;
}

