@font-face {
    font-family: 'Foxlite Script';
    src: url('fonts/Foxlite Script.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

#tarot-game {
    background-image: url("background3.png");
    min-width: 300px;
    max-width: 600px;
    height: 600px;
    position: relative;
}

#tarot-game .tarot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

#tarot-game .card {
    width: 20%;
    z-index: 0;
    position: relative;
    background-color: unset;
}

#tarot-game .selectable-card:hover, .selected-card {
    cursor: pointer;
    transform: translate(0, -20px);
    transition: all 0.2s ease-in-out;
}

#tarot-game #shuffle {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Bootstrap like style */
#tarot-game button {
    background: #74142a;
    border: none;
    color: #eee;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: bold;
    text-transform: none;
    white-space: normal;
}

#tarot-game .glowing {
    animation: glowing 2000ms infinite;
}

@keyframes glowing {
    0% {
        background-color: #144b74;
        box-shadow: 0 0 3px 2px #144b74;
    }
    50% {
        background-color: #074574;
        box-shadow: 0 0 15px 5px #074574;
    }
    100% {
        background-color: #144b74;
        box-shadow: 0 0 3px 2px #144b74;
    }
}

#tarot-game button:hover {
    background: #3d6d92;
}

#tarot-game button:active {
    background: #144b74;
}

#tarot-game #tarot-popup {
    background: rgb(255, 255, 255, 0.8);
    box-shadow: 0 0 10px #144b74;
    padding: 1.5em;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    z-index: 1001;
    border: solid 2px #144b74;
    text-align: center;
    max-width: 80%;
}

#tarot-game .tarot-submit {

}

#tarot-game .tarot-popup-header {
    font-family: 'Foxlite Script', cursive;
    font-size: 48px;
    color: #144b74;
    margin-bottom: .5em;
}

#tarot-game .tarot-popup-body input {
    font-weight: bold;
    padding: 1em;
    margin-bottom: 2em;
    border: solid 2px #144b74;
    border-radius: 10px;
    width: 80%;
    font-size: 14px;
    color: #144b74;
}

#tarot-game .tarot-popup-body input:focus {
    outline: none;
}

#tarot-game .tarot-popup-body input::placeholder {
    color: #144b74;
}

#tarot-game h1 {
    font-family: 'Foxlite Script', cursive;
    font-size: 76px;
    color: #74142a;
    display: block;
    padding-top: 30px;
    text-align: center;
    margin-bottom: 0;
    cursor: default;
    font-weight: normal;
    line-height: 1.15;
    margin-top: 0;
}

#tarot-game h2 {
    font-family: 'Foxlite Script', cursive;
    font-size: 48px;
    color: black;
    display: block;
    text-align: center;
    margin: 0;
    cursor: default;
    padding-top: 8px;
    font-weight: normal;
    line-height: 1.2;
}

#tarot-game h2.card_selection_title {
    display: none;
    padding-top: 35px;
    font-size: 52px;
}

@media only screen and (max-width: 600px) {
    #tarot-game {
        height: 500px;
    }

    #tarot-game h1 {
        font-size: 54px;
    }

    #tarot-game h2 {
        font-size: 40px;
    }

    #tarot-game h2.card_selection_title {
        font-size: 34px;
    }

    #tarot-game #shuffle {
        top: 55%;
    }

    #tarot-game .tarot-popup-header {
        font-size: 32px;
    }
}

@media only screen and (max-width: 400px) {
    #tarot-game {
        height: 450px;
    }

    #tarot-game #shuffle {
        top: 58%;
    }
}