body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: #f2eee3;
    margin: 0;
    padding: 0;
}

.title {
    text-align: center;
    font-size: 3rem;
    margin-top: 20px;
    letter-spacing: 3px;
    color: #dffa48;
    text-shadow: 3px 3px 0 black;
}

.SIMPSONU {
    width: 90%;
    max-width: 900px;
    margin: auto;
}

.panel {
    border: 5px solid black;
    margin: 30px 0;
    padding: 20px;
    background: rgb(235, 255, 59);
    position: relative;
    overflow: hidden;
    box-shadow: 6px 6px 0 #000;
    min-height: 250px;
}

.bubble {
    background: #fff;
    padding: 12px 18px;
    border: 3px solid black;
    border-radius: 20px;
    max-width: 65%;
    font-size: 1.3rem;
    line-height: 1.4;
    position: absolute;
}

.bubble.left { left: 20px; top: 20px; }
.bubble.right { right: 20px; top: 20px; }
.bubble.center { left: 50%; top: 20px; transform: translateX(-50%); }

.Simpsonu, .bezdione, .KZN, .neklausiu, .geltona, .mhm, .Simpsonai { 
    display: block;
    margin: 150px auto 0 auto;
    width: 230px;
}

.Simpsonu.big {
    width: 260px;
}

.fade-in { animation: fade 1.2s ease; }
.slide-left { animation: slideIn 1s ease; }
.zoom-in { animation: zoom 1s ease; }
.shake { animation: shake 0.8s ease; }


@media (max-width: 420px) {

    .title {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin-top: 15px;
    }

    .panel {
        margin: 20px 0;
        padding: 15px;
        min-height: 200px;
        box-shadow: 4px 4px 0 #000;
    }

    .bubble {
        position: relative;
        max-width: 100%;
        font-size: 1rem;
        margin-bottom: 10px;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
    }

    .bubble.left,
    .bubble.right,
    .bubble.center {
        margin: 0 auto 10px auto;
        text-align: center;
    }

    .Simpsonu,
    .bezdione,
    .KZN,
    .neklausiu,
    .geltona,
    .mhm,
    .Simpsonai {
        width: 160px;
        margin: 20px auto 0 auto;
    }

    .Simpsonu.big {
        width: 180px;
    }
}

