:root {
    --darkpurple: rgb(62, 3, 108);
    --white: #ffffff;
}

@font-face {
    font-family: tarot;
    src: url(fonts/TarotPamelaColmanSmith-Regular.ttf);
}

body {
    background-color: var(--white);
    font-family: 'tarot';
    color: var(--darkpurple);
    height: 97svh;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
}

main {
    display: flex;
}

.header {
    font-size: 3rem;
    color: var(--darkpurple);
    margin-bottom: 0;
}

.freya {
    margin-top: -4rem;
    margin-bottom: 3rem;
    color: var(--darkpurple);
}

a {
    color: var(--darkpurple);
}

footer {
    color: var(--darkpurple);
    text-align: center;
}

.deal-daily {
    margin: auto;
    margin-top: -1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

#deal-btn {
    margin: auto;
    margin-top: 3rem;
    margin-bottom: -1.3rem;
    font-family: tarot;
    padding: 1rem 3rem;
    text-align: center;
    background-color: var(--darkpurple);
    color: var(--white);
    border: solid var(--darkpurple);
    border-radius: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    transition-duration: .4s;
    cursor: pointer;
}

#deal-btn:hover {
    background-color: white;
    color: var(--darkpurple);
    border: solid 2px var(--darkpurple);
}

#deal-btn:active {
    scale: 90%;
}

.output {
    position: relative;
    font-size: 1.4rem;
    color: var(--darkpurple);
    max-width: 18rem; 
    height: 24rem;
    padding: 1rem;
}

.card-img, .card-img-r {
    width: 85%;
    max-height: min-content;
    margin-top: 1rem;
    z-index: 0;
}

.card-img-r {
    rotate: 180deg;
}

#card {
    transition-duration: .5s;
    cursor: pointer;
}

#pulled {
    min-height: max-content;
}

#blurb {
    transition-duration: .5s;
    position: absolute;
    top: 0;
    padding: 9rem 1rem;
    cursor: pointer;
    justify-content: center;
    width: 80%;
    text-align: center;
}

.hidden {
    display: none;
}

.inactive {
    transform: scale(115%);
    opacity: 15%;
}

#instructions {
    font-size: 1rem;
    margin-top: 3.5rem;
    position: inline;
}

.left, .right {
    display: none;
}

@media (min-width: 700px) {
    .left, .right {
        display:block; 
        scale: 75%;
        position: fixed;
        margin: -3.5rem;
        margin-top: -9rem;
        z-index: 1000;
    }

    .right {
        transform: scale(-1, 1);
        right: 0;
        top: 0;
    }

    .left {
        left: 0;
        top: 0;
    }
}