:root {
    --seal-body: gray;
    --background: #E8F1F2;
    --corneal-offset: -30px;
    box-sizing: border-box;
    padding: 0px;
    margin: 0px;
}

.fun-button {
    color: #e8f1f2;
}

.home-button:hover,
.blog-button:hover {
    color: hsl(209, 54%, 23%);
}

.wrong-answers {
    font-family: 'Permanent Marker', cursive;
    color: rgb(134, 4, 4);
    font-size: 1.3em;
    font-weight: 400;
    transform: skew(167deg) rotate(-5deg);
    margin-top: -10px;
    margin-bottom: 20px;
}

#header {
    background-color: #1B98E0;
}

.single-block {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wrong-answer-heading {
    color: rgb(0, 0, 0);
    font-weight: 600;
    font-size: 1.5rem;
}

#image-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background-color: #E8F1F2;
    padding-bottom: 50px;
}

@media (max-width: 500px) {
    .single-block {
        flex-direction: column;
    }
    .main-heading-secondary-page {
        text-align: center;
        font-size: 1.8rem;
    }
    .right-text {
        order: 1;
        margin-top: 40px;
        margin-bottom: -10px;
    }
    #spider-container, #seal {
        order: 2;
    }
}

/* ------------------------------ */

/* Seal */

#seal {
    height: 400px;
    width: 400px;
    padding: 50px;
}

#seal-head {
    margin-left: 50px;
    width: 100px;
    height: 100px;
    background-color: var(--seal-body);
    border-radius: 50px;
    display: flex;
    flex-direction: column;
}

#seal-eyes {
    display: flex;
    justify-content: left;
    margin-left: 30px;
    margin-top: 20px;
    gap: 5px;
    transform: rotate(40deg);
}

#seal-left-eye,
#seal-right-eye {
    width: 20px;
    height: 20px;
    background-color: black;
    border-radius: 50%;
}

.seal-eye-spark {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    margin-left: 3px;
    background-color: #fff;
    border-radius: 50%;
}

#seal-nose {
    width: 60px;
    height: 50px;
    margin-left: -10px;
    margin-top: -20px;
    background-color: darkgray;
    border-radius: 50px;
    transform: rotate(45deg);
    z-index: 2;
    border: darkgray solid 3px;
}

#seal-nose-inner {
    width: 15px;
    height: 15px;
    background-color: pink;
    border-radius: 50%;
    z-index: 3;
    border: 1px red solid;
}

.seal-whiskers {
    margin-top: 7px;
    margin-left: 15px;
    width: 60px;
    height: 0px;
    border: 1px black solid;
    z-index: 4;
}

#seal-whiskers-2 {
    margin-top: 6px;
    transform: rotate(15deg);
}

#seal-whiskers-3 {
    margin-top: 6px;
    margin-left: 12px;
    transform: rotate(30deg);
}

#seal-body {
    display: flex;
    width: 500px;
}

#seal-torso {
    width: 1000px;
    height: 160px;
    background-color: var(--seal-body);
    border-radius: 50%;
    transform: rotate(7deg);
    margin-top: -30px;
    margin-left: 50px;
    z-index: 2;
    border: 2px solid #444;
    border-color: transparent transparent transparent #444;
}

#seal-left-flipper {
    width: 500px;
    height: 60px;
    background-color: var(--seal-body);
    border: 2px solid #444;
    border-color: #444 transparent #444 #444;
    border-radius: 50%;
    transform: translateX(-280px) translateY(-5px) rotate(20deg);
    z-index: 1;
}

#seal-right-flipper {
    width: 500px;
    height: 60px;
    background-color: var(--seal-body);
    border: 2px solid #444;
    border-color: #444 transparent #444 #444;
    border-radius: 50%;
    transform: translateX(-380px) translateY(60px) rotate(310deg);
    z-index: 3;
}

#seal-microphone {
    width: 60px;
    height: 90px;
    background-color: #555;
    border-radius: 10%;
    z-index: 5;
    transform: translateX(-480px) translateY(-50px) rotate(25deg);
    border-right: #222 3px solid;
    box-shadow: inset 0px 0px 2px 2px #222;
}

#seal-left-tail {
    width: 80px;
    height: 30px;
    background-color: var(--seal-body);
    border: 2px solid #444;
    border-color: #444 transparent #444 #444;
    border-radius: 50%;
    transform: translateX(210px) translateY(-160px) rotate(105deg);
    z-index: 3;
}

#seal-right-tail {
    width: 80px;
    height: 30px;
    background-color: var(--seal-body);
    border: 2px solid #444;
    border-color: #444 transparent #444 #444;
    border-radius: 50%;
    transform: translateX(230px) translateY(-160px) rotate(190deg);
    z-index: 3;
}

#seal-text {
    color: black;
    font-family: cursive;
    font-size: 1.5rem;
    transform: rotate(-7deg);
    margin-bottom: 40px;
    margin-left: -35px;
    animation-name: text;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

#seal-fish {
    animation-name: fish;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

@keyframes fish {
    100% {
        background-color: rgba(0, 68, 255, 0.2);
        border-radius: 5px;
    }
}

@keyframes text {
    0% {
        color: transparent;
    }
    100% {
        color: black;
    }
}

/* Eye */

#eye-eye-stalk-box {
    width: 250px;
    height: 250px;
    z-index: 2;
    margin-top: -20px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 30px;
    background-color: #c4b2b1;
    overflow: hidden;
}

#eye-left-eye-stalk,
#eye-right-eye-stalk {
    width: 550px;
    height: 310px;
    background-color: var(--background);
    margin-top: -30px;
    z-index: 1;
    border-radius: 45%;
}

#eye-left-eye-stalk {
    margin-left: -50px;
}

#eye-right-eye-stalk {
    margin-right: -50px;
    /*   box-shadow: inset -7px 5px -5px #8f8c8c; */
    box-shadow: -10px 10px 8px #807d7d;
}

#eye-eyeball {
    position: relative;
    background-color: #f7f4f2;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    z-index: 3;
    box-shadow: inset -10px -4px 6px #8f8c8c;
    overflow: hidden;
    border: 1px solid rgba(122, 122, 122, 0.3);
}

#eye-open-eye {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
    width: 100%;
    height: 100%;
}

#eye-cornea {
    background: #2e2705;
    background: repeating-radial-gradient(
        circle at center,
        yellow 0,
        #8f931f 35%,
        #463c08 70%,
        #2e2705
    );
    border: 1px solid #3c3408;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: var(--corneal-offset);
}

#eye-pupil {
    background-color: black;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    margin-left: var(--corneal-offset / 2);
}

#eye-sparkle {
    width: 6px;
    height: 6px;
    background-color: #fff;
    opacity: 0.9;
    box-shadow: 0px 0px 4px #fff;
    border-radius: 50%;
    z-index: 6;
    margin-left: -10px;
    margin-top: -10px;
}

#eye-eyelid {
    position: absolute;
    width: 250px;
    height: 250px;
    background-color: #d1b5a7;
    background: linear-gradient(#d1b5a7, #a38a7e 60%, #a38a7e 60%, #78665d 95%);
    box-shadow: inset 0px -50px 40px 1px #78665d;
    border-radius: 50%;
    z-index: 7;
    display: flex;
    animation-name: blink;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    transform: translate(0px, -500px);
}

@keyframes blink {
    0% {
    }
    7% {
        transform: translate(0px, 0px);
    }
    10% {
        transform: translate(0px, 0px);
    }
    18% {
        transform: translate(0px, -500px);
    }
    100% {
    }
}

/* Cheese */

#cheese {
    width: 500px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cheese-top {
    margin: 0 auto;
    position: fixed;
    width: 200px;
    height: 140px;
    background-color: yellow;
    z-index: 1;
    transform: rotate(-41deg) translate(32px, -36px) skew(28deg);
    border-radius: 0px 6px 6px 0px;
    border: 2px solid orange;
}

#cheese-side {
    width: 310px;
    height: 150px;
    background-color: #ffe53b;
    z-index: 2;
    transform: rotate(-14deg) translate(-10px, 30px) skew(-15deg);
    border-radius: 0px 6px 6px 0px;
    border: 2px solid orange;
}

.cheese-hole {
    background-color: #e6b629;
    border-radius: 50%;
    border: 2px solid orange;
    position: fixed;
}

.cheese-small {
    width: 20px;
    height: 20px;
}

.cheese-large {
    height: 40px;
    width: 40px;
}

#cheese-hole-1 {
    transform: translate(250px, 15px);
}

#cheese-hole-2 {
    transform: translate(50px, 30px);
}

#cheese-hole-3 {
    transform: translate(180px, 85px);
}

#cheese-hole-4 {
    transform: translate(120px, 60px);
}

#cheese-hole-5 {
    transform: translate(50px, 110px);
}

#cheese-hole-6 {
    transform: translate(145px, 20px);
}

#cheese {
    animation-name: shrink;
    animation-duration: 3s;
    animation-fill-mode: forwards;
    animation-play-state: paused;
}

#cheese:hover {
    animation-play-state: running;
    cursor: pointer;
}

@keyframes shrink {
    50% {
        transform: scale(0.1) rotate(-180deg);
    }
    60% {
        transform: scale(0.1);
    }
    100% {
        transform: scale(0.2);
        cursor: default;
    }
}

/* Spider */

#spider-container {
    display: flex;
    justify-content: stretch;
    width: 500px;
    height: 300px;
}

#spider-left-third {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#spider-right-third {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#spider-center-third {
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 2;
    justify-content: center;
}

#spider {
    border-radius: 50%;
    width: 230px;
    height: 230px;
    background-color: gray;
    border: 3px solid black;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: inset 15px 2px 10px #444;
}

#spider-eyes {
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

#spider-left-eye,
#spider-right-eye {
    width: 75px;
    height: 75px;
    background-color: black;
    background: repeating-radial-gradient(circle, red 20%, green 40%);
    border-radius: 50px;
    animation-name: eye-movement;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

#spider-left-eye:hover,
#spider-right-eye:hover {
    animation-name: eye-movement2;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

#spider-smile {
    width: 75px;
    height: 75px;
    background-color: gray;
    border-radius: 50px;
    z-index: 2;
    margin-top: -40px;
    border: 2px solid;
    border-color: transparent transparent black transparent;
}

#spider-fangs {
    display: flex;
    flex-direction: row;
}

#spider-left-fang,
#spider-right-fang {
    margin-top: -20px;
    width: 20px;
    height: 20px;
    transform: rotate(30deg);
    background-color: white;
    border: 1px solid black;
}

#spider-left-fang {
    transform: rotate(60deg);
}

#spider-leg-1,
#spider-leg-2,
#spider-leg-3,
#spider-leg-4,
#spider-leg-5,
#spider-leg-6,
#spider-leg-7,
#spider-leg-8 {
    border: 4px solid;
    height: 30px;
    border-radius: 3px;
}

/* Left */
#spider-leg-1,
#spider-leg-2,
#spider-leg-3,
#spider-leg-4 {
    transform: rotate(-50deg);
    border-color: black black transparent transparent;
    margin-right: -10px;
}

/* Right */
#spider-leg-5,
#spider-leg-6,
#spider-leg-7,
#spider-leg-8 {
    transform: rotate(50deg);
    border-color: black transparent transparent black;
    margin-left: -10px;
}

#spider-leg-4,
#spider-leg-8 {
    margin-top: 140px;
}

@keyframes eye-movement {
    0% {
        background: repeating-radial-gradient(red 10%, green 40%);
    }
    50% {
        background: repeating-radial-gradient(green 20%, red 50%);
    }
    0% {
        background: repeating-radial-gradient(red 10%, green 40%);
    }
}

@keyframes eye-movement2 {
    0% {
        background: repeating-radial-gradient(red 10%, green 20%);
    }
    50% {
        background: repeating-radial-gradient(green 20%, red 40%);
    }
    0% {
        background: repeating-radial-gradient(red 10%, green 40%);
    }
}
