/*
orange #EB760C
black #1A171A
purple #6B1AB2
orangered #FB4112
yellow #F9C110
brown #8C3211
green #3AB326
 */

body, html {
    background: #1A171A;
    font: 15px Verdana, Geneva, sans-serif;
}

h1 {
    color: #6B1AB2;
    border-bottom: 2px solid #6B1AB2;
    width: fit-content;
    padding: 5px;
    z-index: 1; /* et img kuvab tagal */
}

p {
    margin-bottom: 25px;
    font-size: 18px;
    color: #EB760C;
    z-index: 1; /* et img kuvab tagal */
}

.center {
    display: flex;
    text-align: center;
}

.small-img {
    width: 300px;
    margin: 20px;
}

.ghost-img {
    width: 120px;
    height: 120px;
    background-image: url('image/ghost.png');
    background-repeat: no-repeat;
    background-position: -15px 0px;
}

.ghost-img-2 {
    width: 100px;
    height: 120px;
    background-image: url('image/ghost.png');
    background-repeat: no-repeat;
    background-position: -230px 0px;
}


.hidden-image {
    opacity: 0;
    transition: opacity 1s ease;
}
.hidden-image:hover {
    opacity: 1;
    animation: jumpscare 1s;
}

@keyframes jumpscare {
    0% { transform: scale(1, 1); }
    25% { transform: scale(2, 2); }
    50% { transform: scale(1, 2); }
    75% { transform: scale(2, 0.5); }
    100% { transform: scale(1, 1); }
}

.center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.person-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.person:nth-child(2n-1) {
    background-color: #EB760C;
}
.person:nth-child(2n) {
    background-color: #6B1AB2;
}

.person {
    width: 200px;
    height: 40px;
    padding: 10px;
    margin: 10px;
    border-radius: 20px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1; /* et img kuvab tagal */

    /* tekst stiilid */
    font-family: "Comic Sans MS", sans-serif, serif;
    font-size: 24px;
    font-weight: bold;
    color: white;

    /* horisontaalne ja vertikaalne kesksus */
    display: flex;
    justify-content: center;
    align-items: center;
}

.person {
    transition: all 0.3s ease;
    animation: none;
}

.person:hover {
    animation: rainbow-shadow 3s infinite;
    animation-play-state: running;
}

@keyframes rainbow-shadow {
    0% {
        box-shadow: 0 0 20px 0 rgba(255, 0, 0, 0.66);
    }
    14% {
        box-shadow: 0 0 20px 0 rgba(255, 127, 0, 0.66);
    }
    28% {
        box-shadow: 0 0 20px 0 rgba(255, 255, 0, 0.66);
    }
    42% {
        box-shadow: 0 0 20px 0 rgba(0, 255, 0, 0.66);
    }
    57% {
        box-shadow: 0 0 20px 0 rgba(0, 0, 255, 0.66);
    }
    71% {
        box-shadow: 0 0 20px 0 rgba(75, 0, 130, 0.66);
    }
    85% {
        box-shadow: 0 0 20px 0 rgba(148, 0, 211, 0.66);
    }
    100% {
        box-shadow: 0 0 20px 0 rgba(255, 0, 0, 0.66);
    }
}
