@font-face {
    font-family: Reikna;
    src: url(/src/fonts/Reikna.ttf);
}
@font-face {
    font-family: Enchanted;
    src: url(/src/fonts/Enchanted\ Land.otf);
}

:root {
    --red: rgb(181, 51, 51);
    --blue: rgb(80, 80, 137);
    --left: 24px;
}

.fortuneTicket {
    z-index: 99;
    animation: slideDown 3s;
    position: absolute;
    margin-top: 50px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(246, 243, 220);
    width: 300px;
    height: 550px;
}

.throwOutAnimation {
    animation-name: throwCardOut;
    animation-duration: 5s;
}

.fortuneCloseButton {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 15px;
    width: 15px;
    position: absolute;
    top: 0;
    margin-top: 20px;
    right: 0;
    margin-right: 20px;
    font-size: 7px;
    font-weight: bolder;
    color: rgba(0, 0, 0, 70%);
    background-color: var(--red);
    border-radius: 50%;
    border-style: none;
}

.fortuneHeader {
    font-family: Reikna, Courier, monospace;
    margin: 0;
    font-size: 2.5rem;
    color: var(--red);
}

.header {
    margin-bottom: 20px;
}

.headerEmoji {
    color: var(--blue);
    position: absolute;
    margin-top: -5px;
}

.emoji1 {
    margin-left: -20px;
}

.emoji2 {
    transform: scale(-1, 1);
    margin-right: 10px;
}

.bottom {
    margin-top: -10px;
}

.lineBreak {
    margin: 0;
    width: 100%;
    height: 2px;
    background-color: var(--blue);
}

.lineOne {
    margin-top: -19px;
    margin-bottom: 10px;
}

.text-container {
    width: 220px;
    height: 380px;
    text-align: left;
}

.fortuneText {
    font-style: oblique;
    margin: 0;
    font-size: 1.1rem;
}

.luckyNumbers {
    color: var(--blue);
}

#luckyCaption {
    font-size: 1.2rem;
}

#luckyNums {
    font-size: 0.9rem;
}

@keyframes slideDown {
    0% {
        transform: translateY(-170%);
    }
    15% {
        transform: translateY(-130%);
    }
    40% {
        transform: translateY(-90%);
    }
    90% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(0%);
    }
}

@keyframes throwCardOut {
    0% {
        transform: translateY(0%);
    }
    20% {
        transform: translateY(10%);
    }
    100% {
        transform: translateY(150%);
    }
}
