@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;500;700;900&display=swap');

/* @font-face {
    font-family: 'Caviar Dreams';
    src: url('assets/fonts/CaviarDreams.ttf') format("truetype"), 
    url('assets/fonts/CaviarDreams_Bold.ttf') format("truetype"),
    url('assets/fonts/CaviarDreams_BoldItalic.ttf') format("truetype"),
    url('assets/fonts/CaviarDreams_Italic.ttf') format("truetype")
} */


@-webkit-keyframes bounce { 
    0%, 20%, 53%, 80%, 100% {-webkit-transform: translateY(0);} 
    40% {-webkit-transform: translateY(-30px);} 
    60% {-webkit-transform: translateY(-15px);} 
 } 
 
 @keyframes bounce { 
    0%, 20%, 50%, 80%, 100% {
        animation-timing-function: cubic-bezier((.215,.61,.355,1));
        transform: translateY(0);} 
    40% {transform: translateY(-30px);} 
    60% {transform: translateY(-15px);} 
 }

* {
    box-sizing: border-box;
}

html {
    min-height: 100vh;
}

body {
    background: white;
    padding-top: 110px;
    text-align: center;
}

.topbar {
    position: absolute;
    top: 0;
    z-index: 2;
    height: 95px !important;
    width: 100vw;
    background-color: #C4122F !important;
}

h1, .start-game-container h3 {
    font-family: "Caviar Dreams", Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #C4122F;
}

.hidden {
    display: none;
}

.home-container, .start-game-container, .congrats-info-container {
    margin: 0 20%;
}

.home-title, .start-game-title {
    margin-bottom: 2.2rem;
}

.home-title h1, .start-game-title h1 {
    font-size: 2rem;
}

.start-game-container {
    margin: 5%;
}

.continue-btn {
    height: 15vh;
    padding-top: 1%;
    background-color: #C4122F;
    font-size: 4rem;
    letter-spacing: 3;
    color: white;
    cursor: pointer;
}

.continue-btn i {
    -webkit-animation-duration: 1.5s;
    animation-duration: 1.5s !important;
}

.continue-btn > .infinite-anim {
    animation-iteration-count: infinite;
}

.animated-btn {
    animation-fill-mode: both;
    z-index: 10;
}

.btn-bounce {
    animation-name: bounce;
    transform-origin: center bottom;
}

.game-start-btn {
    font-family: 'Caviar Dreams', Arial, Helvetica, sans-serif;
    background-color: #313133;
    text-transform: uppercase;
    font-weight: bold;
    margin: 15% 0;
}

.game-start-btn:hover {
    background-color: #616164;
}

.game-container {
    margin: 0 10%;
}

.name-grid, .gift-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-gap: 10px;
}

.employee-btn {
    font-family: "Caviar Dreams", Arial, Helvetica, sans-serif;
    font-weight: bold;
    border: 1px solid #A1D3B9;
    border-radius: 15px;
    padding-top: 5px;
    background-color: rgba(161, 211, 185, 0.3);
    height: 40px;
    width: auto;
    cursor: pointer;
}

.no-click {
    pointer-events: none;
}

.gift-selected {
    opacity: 0.5 !important;
}

.correct-gift, .correct-emp {
    border: 4px solid green;
}

.gift-grid {
    margin-top: 1.8rem;
}

.gift-grid h2 {
    font-family: 'Caviar Dreams', Arial, Helvetica, sans-serif;
    font-size: 30px;
    font-weight: bold;
    grid-column: 1 / -1;
}

.gift-grid h5 {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 14px;
    grid-column: 1 / -1;
}

.gift-grid img {
    border-radius: 50%;
    width: 80px;
    cursor: pointer;
}

.gift-message-box, .success-message-box {
    position: absolute;
    top: 14em;
    right: 0;
    left: 0;
    bottom: 0;
    overflow-x: hidden;
    font-family: "Roboto";
    font-weight: normal;
    font-size: 1.2em;
    background-color: #d8c2a3f6;
    padding: 3rem;
}

.hint-header {
    font-weight: normal !important;
}

#giftname, .successtitle {
    font-family: "Caviar Dreams", Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 48px;
}

#giftdesc {
    padding: 10%;
}

.resume-btn {
    font-family: 'Caviar Dreams', Arial, Helvetica, sans-serif;
    background-color: #313133;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0 auto;
    width: 10rem;
    border: hidden;
}

.resume-btn:hover {
    background-color: #424244;
}

.congrats-info-container h2 {
    font-size: 2rem;
}

.congrats-info-container p {
    padding-top: 5rem;
}

.instruction-msg-box {
    position: absolute;
    top: 6em;
    margin: 0 auto;
    width: 85%;
    overflow-x: hidden;
    font-family: "Roboto";
    font-weight: normal;
    font-size: 1em;
    background-color: #c5c5c5f6;
    padding: 4rem 1rem;
    box-shadow: 10px 5px 5px #313133;
}

#instruction-btn {
    border: 1px solid #31313325;
}

#instruct-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
}

.fa-times-circle {
    color: #85081d;
}

.instruction-title {
    font-family: 'Caviar Dreams', Arial, Helvetica, sans-serif;
    display: block;
    font-weight: bold;
    font-size: 2em;
    margin: 0 auto;
    padding: 2rem;
}

@media screen and (max-width: 576px) {
    .gift-message-box, .success-message-box {
        position: absolute;
        bottom: -8%;
        height: 30em;
        padding-bottom: 1rem;
    }

    .start-svg, .dog-svg {
        margin-top: 2%;
        padding-top: 2%;
    }
}

@media screen and (min-width: 992px) {
    .home-title h1, .start-game-title h1 {
        font-size: 5em;
    }

    .home-container, .start-game-container, .congrats-info-container {
        margin: 0 30%;
    }

    .dog-svg, .continue-btn {
        width: 35% !important;
    }

    .game-start-btn, .start-svg {
        width: 35%;
    }

    .start-svg {
        margin-top: 2%;
    }

    .continue-btn {
        margin: 0 auto;
    }

    .game-start-btn {
        margin: 8% auto;
    }

    .game-container {
        margin: 0 20%;
        font-size: larger;
    }

    .gift-grid img {
        width: 100px;
    }

    .gift-grid h2 {
        font-size: 60px;
    }

    .gift-message-box, .success-message-box {
        width: 50%;
        margin:auto;
    }

    .gift-message-box p, .gift-message-box h5, .success-message-box p, .success-message-box h5 {
        font-size: larger;
        margin-bottom: 2%;
    }

    #success-btn {
        margin-top: 10%;
    }

    .instruction-msg-box {
        position: absolute;
        top: 6em;
        margin: 0 auto;
        width: 65%;
        overflow-x: hidden;
        font-family: "Roboto";
        font-weight: normal;
        font-size: 1em;
        background-color: #c5c5c5f6;
        padding: 4rem 1rem;
        box-shadow: 10px 5px 5px #313133;
    }
}