body {
    background-image: url("images/background.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: Georgia, serif;
}

h1 {
    text-align: center;
    color: #d4af37;
    font-size: 3rem;
    font-family: "Cinzel", serif;
}

h2,
h3 {
    color: #c8a75a;
    font-family: "Cinzel", serif;
}

label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    color: #c8a75a;
    font-size: 25px;
    font-family: "Cinzel", serif;
}

select,
button {
    background: #1e1e1e;
    color: #d8c9a3;
    border: 1px solid #5a4a25;
    padding: 10px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.2s;
}

#generateBtn {
    display: block;
    margin: 30px auto;
    padding: 15px 35px;
    background: #5a4a25;
    color: #d7c28f;
    border: 1px solid #8a6d2f;
    font-family: "Cinzel", serif;
    font-size: 1.1rem;
    cursor: pointer;
}

#generateBtn:hover {
    background: #8a6d2f;
    transform: scale(1.05);
}

#result {
    padding: 20px;
    border: 1px solid #5a4a25;
    background: rgba(30, 30, 30, 0.8);
}

.settings-grid {
    background: rgba(20,20,20,0.9);
    border: 1px solid #5a4a25;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.settings-grid label {
    margin-bottom: 5px;
}

.loadout-container {
    padding: 20px;
    background: rgba(0,0,0,0.8);
    border: 1px solid #2f2f2f;
    color: #d7c28f;
    
}

.weapon-slot-box {
    width: 100%;
    height: 200px;
    border: 1px solid #444;
    background: #1a1a1a;
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 20px;
}

.utility-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 10px;
}

.utility-slot {
    aspect-ratio: 1;
    border: 1px solid #444;
    background: #1a1a1a;
}

.weapon-slot-box img{
    width: calc(100% - 10px);
    height: 100%;
    object-fit: contain;
    object-position: left center;
    margin-left: 5px;
}
.weapon-image {
    max-width: 100%;
    max-height: 190px;
    margin-left: 5px;
    margin-top: 5px;
    margin-right: 5px;
}
.weapon-name {
    display: none;
}

.weapon-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ammo-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.weapon-text {
    color: #d7c28f;
    font-family: "Cinzel", serif;
    font-size: 1rem;
    text-align: center;
}

#page-layout {
    position: relative;
}

.settings-panel {
    position: fixed;
    left: 50px;
    top: 200px;
    width: 450px;
    padding: 15px;
    z-index: 100;
}

#hunterLevel {
    width: 250px;
}

.music-player {
    box-sizing: border-box;
    position: fixed;
    padding: 15px;
    right: 50px;
    width: 500px;
    z-index: 100;
    top: 70px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #5a4a25;
    color: #d7c28f;
}

.music-player h3 {
    margin-top: 0;
    text-align: center;
    font-family: Georgia, serif;
}

#youtubePlayer {
    width: 100%;
}

#currentSong {
    margin: 12px 0;
    text-align: center;
    font-size: 14px;
    color: #d7c28f;
}

.music-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.music-controls button {
    margin: 0;
    padding: 8px 16px;
    background: #302516;
    border: 1px solid #8b713c;
    color: #e4cf9b;
    cursor: pointer;
}

.music-controls button:hover {
    background: #594326;
}

.playlist h4 {
    margin-bottom: 8px;
}

.playlist-item {
    display: block;
    width: 100%;
    margin: 4px 0;
    padding: 8px;
    text-align: left;
    background: #211b13;
    border: 1px solid #44351e;
    color: #d7c28f;
    cursor: pointer;
}

.playlist-item.active {
    border-color: #c5a45d;
    background: #45351d;
}

.generator-area {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;

    width: 100%;
    box-sizing: border-box;
}

.generator-area .loadout-container {
    position: relative;
    flex: 0 0 900px;
    width: 900px;
    margin: 0;
}

#playlistItems {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #8a6d2f #1a1a1a;
}

#playlistItems::-webkit-scrollbar {
    width: 8px;
}

#playlistItems::-webkit-scrollbar-track {
    background: #1a1a1a;
    border: 1px solid #5a4a25;
    border-radius: 4px;
}

#playlistItems::-webkit-scrollbar-thumb {
    background: #8a6d2f;
    border-radius: 4px;
    border: 1px solid #c8a75a;
}

#playlistItems::-webkit-scrollbar-thumb:hover {
    background: #c8a75a;
}

.generate-button {
    position: absolute;
    top: 10px;
    right: 200px;
}