@import url('https://fonts.googleapis.com/css2?family=Metal+Mania&display=swap');

:root {
    --primary-accent: #c44800;
    --secondary-accent: #e28c14;
    --highlight-color: #f3a61d;
    --bg-color: #000000;
    --slice-color-1: #c44800;
    --slice-color-2: #e28c14;
    --slice-color-3: #e4720a;
    --text-color: #c44800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background-color: #000000;
    background-image: url('https://spin-the-wheel-assets-645896353722.s3.us-west-2.amazonaws.com/halloween-bg-1.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #c44800;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0px;
    position: relative;
    z-index: 1;
}

.title {
    font-family: 'Metal Mania';
    font-size: 3em;
    text-align: center;
    color: #f3a61d;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 15px;
    line-height: 1.3;
    text-shadow: 3px 3px 8px #000;
}

.main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
/*    background: linear-gradient(to right, rgba(0, 0, 0) 0%, rgba(0, 0, 0) 50%, transparent 85%); */
    background: rgba(0, 0, 0, 0.65);
    border: 2px solid #c44800;
    border-radius: 15px;
    padding: 30px;
}

.left-panel {
    font-family: 'Metal Mania';
    width: 400px;
}

.left-panel h2 {
    font-size: 3em;
    margin-bottom: 20px;
    text-align: center;
    color: #f3a61d;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.movie-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 10px;
    padding: 15px;
}

.movie-item {
    color: #000;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.movie-item:hover {
    transform: translateX(5px);
}

.movie-item button {
    padding: 5px 10px;
    background: #000;
    color: var(--text-color, #c44800);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.movie-item button:hover {
    transform: scale(1.05);
}

.add-movie {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-movie input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e28c14;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-color, #c44800);
    font-size: 1em;
    font-family: 'Georgia', serif;
}

.add-movie input::placeholder {
    color: var(--text-color, #c44800);
    opacity: 0.5;
}

.add-movie button {
    padding: 12px 20px;
    background: #e28c14;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s;
}

.add-movie button:hover {
    transform: scale(1.05);
}

.spin-button {
    width: 100%;
    padding: 20px;
    background: #c44800;
    color: #000;
    border: 3px solid #000;
    border-radius: 10px;
    font-size: 1.8em;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s;
    font-family: 'Georgia', serif;
}

.spin-button:hover:not(:disabled) {
    transform: scale(1.05);
}

.spin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.clear-button {
    width: 100%;
    padding: 12px;
    background: #f3a61d;
    color: #000000;
    border: 3px solid #000;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Georgia', serif;
}

.clear-button:hover {
    transform: scale(1.05);
}

.right-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#wheelCanvas {
    background: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.3));
}

.result {
    font-size: 2em;
    font-weight: bold;
    color: #c44800;
    text-align: center;
    min-height: 60px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #c44800;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.movie-list::-webkit-scrollbar {
    width: 10px;
}

.movie-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.movie-list::-webkit-scrollbar-thumb {
    background: var(--primary-accent, #c44800);
    border-radius: 5px;
}

.movie-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-accent, #ff6600);
}

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }
    
    .title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 1.5em;
    }
    
    .left-panel {
        width: 90%;
    }
    
    #wheelCanvas {
        width: 90vw;
        height: 90vw;
        max-width: 500px;
        max-height: 500px;
    }
}

/* Theme Settings Panel */
.theme-settings-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.theme-settings-toggle {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-accent, #c44800);
    border-radius: 10px;
    color: var(--primary-accent, #c44800);
    font-family: 'Metal Mania', serif;
    font-size: 1.3em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.theme-settings-toggle:hover {
    transform: scale(1.02);
    background: rgba(0, 0, 0, 0.9);
}

.theme-settings-panel {
    display: none;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid var(--primary-accent, #c44800);
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 20px;
    animation: slideDown 0.3s ease-out;
}

.theme-settings-panel.open {
    display: block;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.theme-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--secondary-accent, #e28c14);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--highlight-color, #f3a61d);
}

.theme-btn.active {
    border-color: var(--highlight-color, #f3a61d);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(243, 166, 29, 0.3);
}

.theme-icon {
    font-size: 2.5em;
}

.theme-name {
    font-family: 'Metal Mania', serif;
    font-size: 1.2em;
    color: var(--highlight-color, #f3a61d);
}

.theme-preview {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.preview-color {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Color Settings Panel */
.color-settings-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.color-settings-toggle {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-accent, #c44800);
    border-radius: 10px;
    color: var(--primary-accent, #c44800);
    font-family: 'Metal Mania', serif;
    font-size: 1.3em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.color-settings-toggle:hover {
    transform: scale(1.02);
    background: rgba(0, 0, 0, 0.9);
}

.toggle-icon {
    font-size: 1.2em;
}

.toggle-arrow {
    transition: transform 0.3s;
}

.toggle-arrow.open {
    transform: rotate(180deg);
}

.color-settings-panel {
    display: none;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid var(--primary-accent, #c44800);
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 20px;
    animation: slideDown 0.3s ease-out;
}

.color-settings-panel.open {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.color-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.color-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}

.color-group h3 {
    font-family: 'Metal Mania', serif;
    color: var(--highlight-color, #f3a61d);
    margin-bottom: 15px;
    font-size: 1.2em;
    text-align: center;
    border-bottom: 1px solid var(--primary-accent, #c44800);
    padding-bottom: 10px;
}

.color-row {
    margin-bottom: 15px;
}

.color-row label {
    display: block;
    color: var(--secondary-accent, #e28c14);
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.95em;
}

.color-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.color-inputs input[type="color"] {
    width: 50px;
    height: 40px;
    border: 2px solid var(--primary-accent, #c44800);
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    padding: 2px;
}

.color-inputs input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-inputs input[type="color"]::-webkit-color-swatch {
    border-radius: 4px;
    border: none;
}

.color-inputs input[type="text"] {
    flex: 1;
    min-width: 90px;
    padding: 8px 10px;
    border: 2px solid var(--primary-accent, #c44800);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--secondary-accent, #e28c14);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.color-inputs input[type="text"]::placeholder {
    color: rgba(226, 140, 20, 0.4);
}

.color-inputs input[type="text"]:focus {
    outline: none;
    border-color: var(--highlight-color, #f3a61d);
}

.color-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.reset-colors-btn {
    padding: 12px 25px;
    background: var(--highlight-color, #f3a61d);
    color: #000;
    border: 2px solid #000;
    border-radius: 8px;
    font-family: 'Georgia', serif;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.reset-colors-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .color-settings-grid {
        grid-template-columns: 1fr;
    }
    
    .color-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .color-inputs input[type="color"] {
        width: 100%;
    }
}
