/* ---------- Body ---------- */
body {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe680 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ---------- Header ---------- */
header {
    margin: 20px 20px 0 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    box-sizing: border-box;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #000000;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

/* ---------- Page Title ---------- */
h1, h2 {
    text-align: center;
    color: #1a1a1a;
}

/* ---------- Container for Form + Snack List ---------- */
.container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    margin: 30px auto;
    padding: 0 40px;
    max-width: 1400px;
    /*margin-left: auto;
    margin-right: auto;*/
}

/* ---------- Form Box ---------- */
.form-box {
    flex: 1;
    padding: 30px;
    border: none;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #ffd700;
    display: flex;
    flex-direction: column;
}

.form-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

/* ---------- Snack List Box ---------- */
.snack-list-box {
    flex: 1;
    padding: 30px;
    border: none;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #ffd700;
    display: flex;
    flex-direction: column;
}

.snack-list-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.snack-list-box h2 {
    color: #000000;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* ---------- Snack List Items ---------- */
#snack-list {
    list-style-type: none;
    padding-left: 0;
    flex-grow: 1;
}

#snack-list li {
    padding: 15px;
    margin-bottom: 10px;
    border-bottom: none;
    background: linear-gradient(135deg, #fff9e6 0%, #ffed4e 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 5px solid #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#snack-list li:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

#snack-list li:last-child {
    margin-bottom: 0;
}

/* ---------- Form Inputs ---------- */
input[type="text"] {
    width: 100%;
    padding: 14px;
    margin: 8px 0 20px 0;
    border-radius: 10px;
    border: 2px solid #ffd700;
    box-sizing: border-box;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fffef8;
}

input[type="text"]:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
    background-color: white;
}

input[type="submit"] {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffd700;
    padding: 14px 32px;
    border: 2px solid #ffd700;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

input[type="submit"]:active {
    transform: translateY(0);
}

/* ---------- Form Labels ---------- */
label {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 5px;
}

/* ---------- Message ---------- */
#message {
    font-weight: bold;
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    background-color: #fff9e6;
    color: #1a1a1a;
    border: 2px solid #ffd700;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin: 20px auto;
        padding: 0 20px;
    }
    
    .form-box, .snack-list-box {
        width: 100%;
    }
    
    header {
        margin: 15px 20px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        margin: 15px;
    }
}