@font-face {
    font-family: 'Minecraft';
    src: url('https://cdn.jsdelivr.net/gh/South-Paw/typeface-minecraft@master/font/minecraft-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Minecraft', monospace;
}

body {
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 2px solid #ffffff;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.title-bar {
    background-color: #333333;
    padding: 15px;
    text-align: center;
    border-bottom: 4px solid #555555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-bar h1 {
    flex-grow: 1;
    text-align: center;
    color: #ffffff;
}

h1 {
    font-size: 28px;
    letter-spacing: 1px;
    text-shadow: 2px 2px #000000;
    color: #ffffff;
}

h2 {
    font-size: 20px;
    margin-bottom: 15px;
    text-shadow: 1px 1px #000000;
    color: #55FFFF;
}

.main-content {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.sound-form, .sound-list {
    flex: 1;
    background-color: #222222;
    padding: 20px;
    border-radius: 6px;
    border: 2px solid #ffffff;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.input-group {
    margin-bottom: 15px;
}

.label-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

label {
    display: block;
    color: #55FFFF;
}

.help-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #555555;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    cursor: help;
    position: relative;
}

.help-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -5px;
    right: 25px;
    background-color: #333333;
    color: #FFFFFF;
    padding: 10px;
    border-radius: 4px;
    width: 250px;
    z-index: 10;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    border: 1px solid #555555;
    font-family: 'Minecraft', monospace;
    font-size: 12px;
}

input, select {
    width: 100%;
    padding: 8px 12px;
    background-color: #555555;
    border: 1px solid #777777;
    color: #ffffff;
    border-radius: 4px;
    font-size: 14px;
}

input:focus, select:focus {
    outline: none;
    border-color: #5d7d36;
    box-shadow: 0 0 0 2px rgba(93, 125, 54, 0.5);
}

input[type="range"] {
    display: inline-block;
    width: 80%;
    vertical-align: middle;
    background-color: #555555;
}

input[type="file"] {
    padding: 10px;
    background-color: #555555;
    color: white;
    border-radius: 4px;
    border: 1px solid #777777;
    cursor: pointer;
}

#volume-value {
    display: inline-block;
    width: 15%;
    text-align: center;
    margin-left: 5px;
    color: #AAFFAA;
}

.minecraft-button {
    background-color: #333333;
    border: 2px solid #ffffff;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 2px;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
    margin-top: 10px;
    text-shadow: 1px 1px #000000;
}

.minecraft-button:hover {
    background-color: #555555;
}

.minecraft-button:active {
    border-bottom-width: 2px;
    transform: translateY(2px);
}

.output-container {
    padding: 20px;
    background-color: #222222;
    border-radius: 6px;
    margin: 0 20px 20px;
    border: 2px solid #ffffff;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.code-wrapper {
    background-color: #111111;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ffffff;
}

pre {
    white-space: pre-wrap;
    word-break: break-all;
    font-family: monospace;
    color: #55FFFF;
}

#sounds-container {
    max-height: 300px;
    overflow-y: auto;
}

.sound-item {
    background-color: #333333;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 3px solid #ffffff;
    position: relative;
}

.sound-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #FFFF55;
}

.sound-details {
    font-size: 12px;
    color: #55FFFF;
    margin-bottom: 5px;
}

.delete-sound {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #d83c3e;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    border-bottom: 2px solid #a12d2f;
}

.delete-sound:hover {
    background-color: #e25658;
}

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

.modal-content {
    background-color: #222222;
    margin: 10% auto;
    padding: 20px;
    border: 2px solid #ffffff;
    border-radius: 6px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

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

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
}

.preview-container {
    text-align: center;
    margin: 15px 0;
}

#icon-preview {
    max-width: 128px;
    max-height: 128px;
    background-color: #333333;
    border: 1px dashed #ffffff;
    padding: 5px;
    display: block;
    margin: 0 auto;
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.splash-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.credits {
    color: #55FFFF;
    font-size: 18px;
    margin-top: 10px;
    text-shadow: 1px 1px #000000;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .title-bar {
        flex-direction: column;
    }
    
    .title-bar h1 {
        margin-bottom: 10px;
    }
}