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

body {
    background: linear-gradient(135deg, #ff1493, #ff69b4, #ff00ff, #ff1493);
    background-size: 400% 400%;
    animation: gradientShift 5s ease infinite;
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Björn Söder - uppe till vänster */
.bjorn-soder {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 100;
    animation: wobble 3s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* Politiker-bilder */
.politician-img {
    border: 4px solid #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    object-fit: cover;
}

.bjorn-img {
    width: 220px;
    height: 270px;
}

.simona-img {
    width: 260px;
    height: 310px;
    margin: 0 auto;
    display: block;
}

/* Huvudinnehåll */
.main-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.site-title {
    font-family: 'Bangers', cursive;
    font-size: 4rem;
    color: #fff;
    text-shadow:
        4px 4px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        0 0 30px rgba(255, 255, 0, 0.5);
    margin-bottom: 10px;
    letter-spacing: 3px;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.subtitle {
    font-size: 1.3rem;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Simona container */
.simona-container {
    margin: 20px auto 30px;
}

/* Slot machine-räknare */
.counter-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0 40px;
}

.slot-machine {
    display: inline-flex;
    gap: 8px;
    background: #1a1a1a;
    padding: 20px 25px;
    border-radius: 15px;
    border: 4px solid #ffd700;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.5),
        inset 0 0 30px rgba(0,0,0,0.5);
}

.slot-reel {
    width: 70px;
    height: 90px;
    overflow: hidden;
    background: linear-gradient(to bottom, #222, #333, #222);
    border-radius: 8px;
    border: 3px solid #ffd700;
    position: relative;
}

.slot-reel::before,
.slot-reel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 2;
    pointer-events: none;
}

.slot-reel::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.slot-reel::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.slot-inner {
    transition: transform 2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.slot-number {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', monospace;
    font-size: 2.5rem;
    color: #ff1493;
    text-shadow: 0 0 10px #ff1493, 0 0 20px #ff1493;
}

/* Succémeddelande */
.success-message {
    background: rgba(0, 200, 0, 0.3);
    border: 2px solid #00ff00;
    color: #fff;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
    text-shadow: 1px 1px 0 #000;
}

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

/* Formulär */
.form-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 35px;
    max-width: 500px;
    margin: 0 auto;
}

.form-title {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #fff;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1rem;
    text-shadow: 1px 1px 0 #000;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid #ffd700;
    border-radius: 10px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.9);
    outline: none;
    transition: border-color 0.3s;
    /* Förhindra zoom på mobil */
    font-size: 16px;
}

.form-group input[type="text"]:focus {
    border-color: #ff1493;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group label {
    display: inline;
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    cursor: pointer;
    accent-color: #ff1493;
    flex-shrink: 0;
    margin-top: 2px;
}

.submit-btn {
    background: linear-gradient(to bottom, #ffd700, #ffaa00);
    color: #000;
    border: 3px solid #000;
    padding: 15px 50px;
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    letter-spacing: 3px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 4px 4px 0 #000;
    width: 100%;
    max-width: 300px;
    -webkit-tap-highlight-color: transparent;
}

.submit-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
    background: linear-gradient(to bottom, #ffe033, #ffbb33);
}

.submit-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #000;
}

/* ===== TABLET (601px - 900px) ===== */
@media (max-width: 900px) {
    .bjorn-img {
        width: 180px;
        height: 220px;
    }

    .simona-img {
        width: 220px;
        height: 260px;
    }

    .site-title {
        font-size: 3rem;
    }

    .main-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ===== MOBIL (max 600px) ===== */
@media (max-width: 600px) {
    .site-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 1rem;
    }

    /* Björn: inte fixed, lägg in i flödet */
    .bjorn-soder {
        position: relative;
        top: 0;
        left: 0;
        text-align: center;
        margin-bottom: 10px;
        padding-top: 15px;
    }

    .bjorn-img {
        width: 150px;
        height: 185px;
    }

    .simona-img {
        width: 180px;
        height: 220px;
    }

    /* Slot machine: anpassa storlek */
    .slot-machine {
        gap: 5px;
        padding: 12px 14px;
        border-radius: 10px;
    }

    .slot-reel {
        width: 50px;
        height: 65px;
        border-width: 2px;
        border-radius: 6px;
    }

    .slot-number {
        height: 65px;
        font-size: 1.6rem;
    }

    .counter-wrapper {
        margin: 20px 0 25px;
    }

    /* Formulär */
    .form-container {
        padding: 20px 15px;
        border-radius: 15px;
        margin: 0 5px;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .form-group input[type="text"] {
        padding: 10px 12px;
    }

    .submit-btn {
        padding: 12px 30px;
        font-size: 1.3rem;
        max-width: 100%;
    }

    .simona-container {
        margin: 15px auto 20px;
    }

    .success-message {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
}

/* ===== Mycket liten mobil (max 380px) ===== */
@media (max-width: 380px) {
    .site-title {
        font-size: 1.8rem;
    }

    .slot-reel {
        width: 42px;
        height: 55px;
    }

    .slot-number {
        height: 55px;
        font-size: 1.3rem;
    }

    .slot-machine {
        gap: 4px;
        padding: 10px 10px;
    }

    .bjorn-img {
        width: 120px;
        height: 150px;
    }

    .simona-img {
        width: 150px;
        height: 185px;
    }
}
