@import url("../../../shared_assets/animate.css");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* ---------------------------- container setup ---------------------------- */


/* the body affects all elements inside of it */

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-repeat: no-repeat;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    overflow: hidden;
    background-image: url("/animation-learning/assets/claw-game/img/background.jpg");
    background-position: center;
}

/* Claw Machine Elements */

.claw-machine {
    width: 610px;
    height: 771px;
    margin: 0 auto;
    background-image: url(https://play.iziigame.com/animation-learning/assets/claw-game/img/clw-machine.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.prize-legend {
    position: absolute;
    height: 104px;
    width: 429px;
    background-image: url(https://play.iziigame.com/animation-learning/assets/claw-game/img/Legend-EN.png);
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
    top: 600px;
}

.balls {
    position: absolute;
    height: 123px;
    width: 340px;
    background-image: url(https://play.iziigame.com/animation-learning/assets/claw-game/img/balls.png);
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
    top: 299px;
    background-position: center;
        z-index: 90;
}

.individual-balls {
    position: absolute;
    height: 80px;
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
    top: 258px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.individual-ball {
    height: 40px;
    width: 40px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.individual-ball.zero { 
    background-image: url(https://play.iziigame.com/animation-learning/assets/claw-game/img/orange-ball.png);
    border-radius: 50%;
    animation: zero-ball-fall 0.6s ease-in 2s forwards;
    display: none;
}

.individual-ball.blue { 
    background-image: url(https://play.iziigame.com/animation-learning/assets/claw-game/img/blue-ball.png);
    --ball-pulse-color: rgba(46, 129, 255, 0.9);
    animation: individual-ball-pulse 1.6s ease-in-out infinite;
        border-radius: 50%;
    display: none;
}
.individual-ball.gold { 
    background-image: url(https://play.iziigame.com/animation-learning/assets/claw-game/img/gold-ball.png);
    --ball-pulse-color: rgba(255, 194, 15, 0.95);
    animation: individual-ball-pulse 1.6s ease-in-out infinite;
        border-radius: 50%;
    display: none;
}
.individual-ball.orange { 
    background-image: url(https://play.iziigame.com/animation-learning/assets/claw-game/img/orange-ball.png);
    --ball-pulse-color: rgba(255, 136, 0, 0.9);
    animation: individual-ball-pulse 1.6s ease-in-out infinite;
        border-radius: 50%;
    display: none;
}
.individual-ball.pink { 
    background-image: url(https://play.iziigame.com/animation-learning/assets/claw-game/img/pink-ball.png);
    --ball-pulse-color: rgba(255, 90, 188, 0.9);
    animation: individual-ball-pulse 1.6s ease-in-out infinite;
        border-radius: 50%;
    display: none;
}

@keyframes individual-ball-pulse {
    0% {
        box-shadow: 0 0 0 0 var(--ball-pulse-color);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 22px 8px var(--ball-pulse-color);
        transform: scale(1.2);
    }
    100% {
        box-shadow: 0 0 0 0 var(--ball-pulse-color);
        transform: scale(1);
    }
}


.outer-lever {
    position: absolute;
    width: 379px;
    top: 364px;
    height: 92px;
    z-index: 105;
}

.lever-drag-hint {
    position: absolute;
    left: 50%;
    top: 288px;
    max-width: 260px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid #f7bc44;
    background: rgba(16, 16, 16, 0.92);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    opacity: 0;
    transform: translateX(-40px);
    pointer-events: none;
    z-index: 110;
    box-shadow: 0 0 14px rgba(247, 188, 68, 0.35);
    transform: translateX(-50%) translateX(-40px);
}

.lever-drag-hint::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid black;
}

#board-container.show .lever-drag-hint {
    animation: lever-drag-hint-fade 5s ease-out forwards;
}

@keyframes lever-drag-hint-fade {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateX(-40px);
    }
    12% {
        opacity: 1;
        transform: translateX(-50%) translateX(0);
    }
    80% {
        opacity: 1;
        transform: translateX(-50%) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateX(-16px);
    }
}

.lever {
    position: relative;
    height: 89px;
    width: 75px;
    background-image: url(https://play.iziigame.com/animation-learning/assets/claw-game/img/lever.png);
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
    background-position: center;
    z-index: 100;
    cursor: grab;
}

.claw {
    z-index: 85;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.claw-base {
    position: absolute;
    height: 45px;
    width: 77px;
    margin: 0 auto;
    background-image: url(https://play.iziigame.com/animation-learning/assets/claw-game/img/claw-base.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.claw-arm {
    position: absolute;
    height: 292px;
    width: 74px;
    margin: 0 auto;
    background-image: url(https://play.iziigame.com/animation-learning/assets/claw-game/img/claw-arm.png);
    background-size: contain;
    background-position: center;
    top: -169px;
    background-repeat: no-repeat;
}

.claw-mask {
    position: absolute;
    top: 153px;
    width: 338px;
    height: 268px;
    overflow: hidden;
    border: 2px solid black;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#claw-action-button {
    top: 499px;
    position: absolute;
}

/* Load the legend at the bottom of the board */

#board-container.show #prize-legend {
    opacity: 0;
    width: 95%;
    animation: becomeVisible 2s cubic-bezier(0.165, 0.84, 0.44, 1) 8s forwards;
    padding: 37px;
    box-shadow: 0px 0px 5px orange;
    background-size: 84%;
    margin-top: 35px;
    background-position: center;
    background-color: rgb(0, 0, 0, 0.2);
}

@keyframes becomeVisible {
    0% {
        opacity: 0;
        margin-top: 200px;
    }
    100% {
        margin-top: 0px;
        opacity: 1;
    }
}



/* contains all game elements */

#game-container {
    width: 700px;
    height: 800px;
    position: relative;}

#game-container.awaiting_return_value {
    cursor: progress;
}

#main-page {
    max-height: 800px;
}
#title {
    display: none;
}
.screen-intro-container #title{
    display: block;
}

/* the title of the game */

#title,
#title2 {
    width: 550px;
    height: 140px;
    margin: auto auto auto auto;
    position: relative;
    background-image: url(/animation-learning/assets/claw-game/img/title-en.png);
    margin-top: 65px;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    max-width: 80%;
}

.language-code-FR #title,
.language-code-FR #title2 {
    background-image: url("/animation-learning/assets/claw-game/img/title-fr.png");
}



#HintPopup img {
    width: 100%;
}


#training-container {
    top: 0%;
    position: absolute;
    width: 90%;
    margin: 5%;
}

#training-title {
    font-size: 25px;
    margin-top: 14px;
    font-weight: bold;
    padding: 10px;
    color: white;
}

#Video-Wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

#toggle-sound svg,
#restart-button svg {
    fill: white;
}

#iziigame-link a {
    display: none;
}


/* the intro container */

#prize-container {
    margin: 40px auto;
    padding: 20px;
    background-color: rgb(0, 0, 0, 0.3);
    position: relative;
    width: 80%;
    max-width: 700px;
    /* background-image: url(/animation-learning/assets/claw-game/img/background.jpg); */
    background-position: center;
    border: solid 1px #343d4b;
    box-shadow: 0px 0px 100px black;
}

#prize-legend {
    background-image: url(/animation-learning/assets/claw-game/img/Legend-EN.png);
    height: 110px;
    width: 44%;
    margin: 0 auto;
    background-size: contain;
    background-repeat: no-repeat;
}

#intro-description {
    font-size: 35px;
    color: white;
    margin: -0.75em 1em 0.5em 1em;
}

#intro-container {
    margin-top: 50px;
}

.language-code-FR #intro-description {
    font-size: 26px;
    color: white;
    margin: 1em 1em auto 1em;
}

#intro-description b {
    color: white;
    display: block;
    font-size: 56px;
    background: -webkit-linear-gradient(#d48235, #f6d75e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.language-code-FR #intro-description b {
    font-size: 60px;
}

#rules-header {
    font-size: 35px;
    color: white;
    font-weight: bold;
    margin-top: 1em;
    display: none;
}

#intro-graphic {
    background-image: url("/animation-learning/assets/claw-game/img/Intro-Image.png");
    height: 133px;
    width: 248px;
    text-align: center;
    left: 38%;
    position: relative;
    display: none;
}

#click-start {
    background-image: url("/animation-learning/assets/claw-game/img/Click-Here.png");
    height: 222px;
    width: 241px;
    text-align: center;
    left: 35%;
    position: relative;
    z-index: 100;
    top: 165px;
}

.language-code-FR #click-start {
    background-image: url("/animation-learning/assets/claw-game/img/Click-Here-fr.png");
    height: 222px;
    width: 241px;
    text-align: center;
    left: 35%;
    position: relative;
    z-index: 100;
    top: 165px;
}

.step-2 #click-start {
    display: none;
}

#rules-instructions {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.btn-grad {
    background-image: linear-gradient(to right, #d58413 0%, #f4bf3a 51%, #d58413 100%);
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    font-weight: bold;
        text-shadow: 0px 0px 4px #955a03;
    box-shadow: 0 0 20px #000;
    display: block;
    outline: none;
    cursor: pointer;
    border: 1px solid orange;
    width: max-content;
}

.btn-grad:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 50px #000;
}

#claim-prize-button {
    top: 190px;
    position: relative;
}

#post-game-1-button {
    margin: 0 auto;
    margin-top: 0px;
    margin-top: 31px;
}

.game-finished.no-prize #post-game-1-button {
    display: none;
}





#try-again-btn {
    margin: 1em auto auto;
}

#intro-button {
    margin: 25px auto 3em auto;
}

#answer-button {
    width: 30%;
    margin: .8em auto 3em auto;
}

#go-back-to-board {
    display: none;
    margin: -30px auto auto;
}

.post-game-1-container #go-back-to-board {
    display: block;
    animation-name: pulsingGrowing;
    animation-delay: 13s;
    animation-duration: 1.5s;
    animation-timing-function: cubic-bezier(0.680, -0.550, 0.265, 1.850);
    animation-iteration-count: infinite;
    z-index: 1000;
    position: relative;
    margin: 0 auto;
}

.game-finished.no-prize #go-back-to-board {
    margin: -30px auto auto;
    margin-top: -30px;
    margin-top: -14px;
    transform: scale(.5);
    background-color: rgba(0, 0, 0, 0);
    color: white;
    text-decoration: underline;
}


/* the board container */

#board-container {
    width: 612px;
    height: 780px;
    margin: 20px auto auto auto;
    position: relative;
    background-image: url(/animation-learning/assets/claw-game/img/board.png);
    background-repeat: no-repeat;
}


/* the prize container */

#prize-container {
    font-size: 2em;
    padding: 30px 10px 25px 10px;
    z-index: 10;
    pointer-events: auto;
    background-image: url(https://play.iziigame.com/animation-learning/assets/claw-game/img/final-coins.png);
    background-position: center;
    background-size: contain;
    min-height: 300px;
    background-repeat: no-repeat;
}

.prize-name {
    color: white;
    line-height: 2em;
    font-size: 35px;
    padding-bottom: 25px;
}

.prize-name-value,
.prize-name-tail {
    color: white;
    font-size: 50px;
    line-height: 1.1em;
    font-weight: bold;
    background: -webkit-linear-gradient(#d48235, #f6d75e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-finished.prize-code-0 .prize-name-value {
    text-shadow: none;
    font-style: italic;
}

.prize-name-head {
    display: block;
    margin-bottom: -20px;
}

.prize-header {
    font-size: 41px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.game-finished.prize-code-0 .prize-name-head {
    display: none;
}

.prize-points {
    display: inline-block;
    font-weight: bold;
    font-size: 3em;
    margin: 0;
    padding: 0;
    line-height: 1;
    color: #fac005;
}

.prize-name-points {
    display: inline-block;
    font-weight: bold;
    font-size: 3em;
    color: #fac005;
    margin: auto auto auto 15px;
}

.prize-points-description {
    font-size: 26px;
    margin: 0px;
    color: #fff;
    margin-top: -26px;
}

.no-prize-header {
    color: white;
    font-size: 50px;
    font-style: italic;
    font-weight: bold;
}

.no-prize-description {
    color: white;
    font-size: 27px;
}

.points-added-message {
    display: block;
    font-size: 16px;
    margin-top: 24px;
    font-weight: normal;
}


/* Special clue message that shows up on the prize screen */

#clue-container {
    background-image: url("/animation-learning/assets/claw-game/img/win-paper.png");
    background-size: contain;
    height: 14vw;
    background-repeat: no-repeat;
    background-position: center;
    display: none;
}

.game-finished #clue-container {
    display: flex;
    animation-name: pulsingGrowing;
    animation-delay: 9s;
    animation-duration: 2s;
    animation-timing-function: cubic-bezier(0.680, -0.550, 0.265, 1.850);
    animation-iteration-count: 1;
    margin: 0 auto;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    z-index: 1000;
    position: relative;
}

.game-finished.no-prize #clue-container {
    display: none;
}

#clue-container-content {
    width: 23vw;
    margin: 0 auto;
    font-size: 1.3vw;
}

#clue-container-title {
    font-weight: bold;
}


/* the question container */

#question-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 6;
    top: 0px;
    left: 0px;
}

#question-header {
    display: none;
}


/* ------------------------------------------------ */


/* ---------------------------------- shared item info ------------------------------------ */


/* container for board elements */

.container {
    position: absolute;
    display: inline-block;
    z-index: 0;
}


/* answer containers */

.answer-block {
    text-align: left;
    display: block;
    float: left;
    width: 100%;
    margin: 0% 0% 2% 0;
    color: black;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1%;
    border: 2px solid white;
    border-radius: 15px;
    cursor: pointer;
}

.answer-block:hover .styling-obj {
    animation: hoverState 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.answer-block.hide {
    display: none;
}


/* answer div inside the answer container */

.answer {
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    font-size: 20px;
    margin: 1.5% auto auto 2%;
    font-weight: bold;
    color: #333;
    width: 85%;
}


/* extra styling object in the answer container */

.styling-obj {
    display: inline-block;
    width: 40px;
    height: 40px;
    vertical-align: top;
    position: relative;
    border-width: 1px;
    border-radius: 50%;
    z-index: 7;
    background-image: url("/Radio.png");
    margin: 1% auto auto 2%;
}


/* ------------------------------------------------------------ */


/* --------------------------------------- specific item info ------------------------------ */


/* question container */

#question-block {
    display: block;
    float: left;
    margin: 5% 5% auto 10%;
    font-size: 35px;
    color: white;
}

#question-text {
    display: block;
    float: left;
    width: 80%;
    margin: auto 5% 1% 10%;
    font-size: 25px;
    color: white;
    font-weight: bold;
    margin-top: 56px;
    text-align: center;
}


/* the answer submit button */


/* return box */

#post-details-container {
    float: left;
    width: 60%;
    height: 50%;
    margin: auto 5% auto 10%;
    border-width: 5px;
    border-style: dashed;
    border-color: red;
}

#post-details-container.display_pdc {
    display: block;
}

#post-details-container.hide_pdc {
    display: none;
}

#chosen-answer-textBox {
    float: left;
    width: 100%;
    height: 30%;
    font-size: 2em;
    color: white;
    border-width: 2px;
    border-style: dashed;
    border-color: rgb(255, 123, 222);
}

#chosen-answer-textBox:before {
    content: "Your answer: ";
}

#correct-answer-textBox {
    float: left;
    width: 100%;
    height: 30%;
    font-size: 2em;
    color: white;
    border-width: 2px;
    border-style: dashed;
    border-color: rgb(195, 219, 89);
}

#correct-answer-textBox:before {
    content: "The correct answer: ";
}

#details-textBox {
    float: left;
    width: 100%;
    height: 30%;
    font-size: 2em;
    color: white;
    border-width: 2px;
    border-style: dashed;
    border-color: blue;
}

#details-textBox:before {
    content: "Details: ";
}

#close-bttn {
    float: right;
    width: 50px;
    height: 50px;
    background-color: white;
}


/* board container */


/* --------------------------------------------------------------- */


/* -------------------------------- animations -------------------------------------- */


/* ------------- event listeners ------------- */


/* general displaying */

.hide {
    display: none;
}

.show {
    display: block;
    animation-name: becomeVisible;
    animation-duration: 2s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}


/* click watchers */


/* for board elements that are clicked */

.clicked {
    pointer-events: none;
}


/* for when the answer is clicked or waiting to be clicked (idle) */

#answer-container {
    display: inline-block;
    width: 80%;
    margin: 0 10%;
}

.answer-clicked .styling-obj {
    background-image: url("img/Radio-Pressed.png");
}

.answer-idle .styling-obj {
    background-image: url("img/Radio.png")
}

.answer-desc-style {
    pointer-events: none;
}

.show-explanation #answer-container {
    pointer-events: none;
}

.show-explanation .answer-idle {
    animation-name: wrongAnswerDisapear;
    animation-delay: 1s;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
}

.correct.answer-clicked .styling-obj {
    background-image: url("/animation-learning/assets/claw-game/img/Correct-Answer-Icon.png");
    background-size: contain;
}

.incorrect.answer-clicked .styling-obj {
    background-image: url("/animation-learning/assets/claw-game/img/Inorrect-Answer-Icon.png");
    background-size: contain;
}


/* answer description classes */

#answer-description-title,
#answer-description {
    display: block;
    float: left;
    width: 70%;
    height: 10%;
    margin: auto 5% 1% 10%;
    color: white;
    text-align: center;
}

#answer-description-title {
    margin-top: 2%;
    font-size: 25px;
}

#answer-description {
    font-size: 25px;
}

#description-container {
    animation-name: becomeVisible;
    animation-delay: 2s;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
    opacity: 0;
    display: inline-block;
}


/* for the submit button, controls when the button is clickable */

.clickable {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.not-clickable {
    opacity: 0.2;
    pointer-events: none;
}


/* class attached to the board elements that will (when clicked) display the question box*/

.call-question,
.call-animation {
    cursor: pointer;
    position: absolute;
    z-index: 5;
}

/* move screen elements */


/* shows the game */

@keyframes showGame {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes becomeVisible {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes disapear {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        max-height: 0;
        padding: 0;
    }
}


/* Animation: pieces start stacked at their final position, animate from center to their grid spot */

.pieces-animate .container {
    position: absolute;
    animation: spreadPiecesFromCenter 1s cubic-bezier(.36, .07, .19, .97) forwards;
}

.pieces-animate #piece-container-1 {
    animation-delay: 0.1s;
}

.pieces-animate #piece-container-2 {
    animation-delay: 0.2s;
}

.pieces-animate #piece-container-3 {
    animation-delay: 0.3s;
}

.pieces-animate #piece-container-4 {
    animation-delay: 0.4s;
}

.pieces-animate #piece-container-5 {
    animation-delay: 0.5s;
}

.pieces-animate #piece-container-6 {
    animation-delay: 0.6s;
}

@keyframes spreadPiecesFromCenter {
    0% {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    100% {
        left: 0;
        top: 0;
        transform: none;
    }
}


/* Final positions for pieces */

#piece-container-1 {
    --final-left: 10%;
    --final-top: 10%;
}

#piece-container-2 {
    --final-left: 45%;
    --final-top: 10%;
}

#piece-container-3 {
    --final-left: 80%;
    --final-top: 10%;
}

#piece-container-4 {
    --final-left: 10%;
    --final-top: 60%;
}

#piece-container-5 {
    --final-left: 45%;
    --final-top: 60%;
}

#piece-container-6 {
    --final-left: 80%;
    --final-top: 60%;
}


/* I've changed this to be handled in the board.htm script code 

.game-finished #prize-container {
    display: flex !important;
    flex-direction: column-reverse;
}

*/

.game-finished.game-over-win #prize-container {
    margin-bottom: -15px;
}

.game-finished #main-page {
    animation-name: disapear;
    animation-delay: 2s;
    animation-duration: 1s;
    animation-fill-mode: both;
}

.game-over-lose .prize-name {
    font-size: 2.4em;
    font-weight: bold;
    padding: 0;
    margin-top: -46px;
    font-style: italic;
    background: -webkit-linear-gradient(#d48235, #f6d75e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* animations */

.step1 #piece-1,
.step1 #piece-4,
.step1 #piece-7,
.step1 #piece-10 {}

.step1 #piece-2,
.step1 #piece-5,
.step1 #piece-8,
.step1 #piece-11 {}

.step1 #piece-3,
.step1 #piece-6,
.step1 #piece-9,
.step1 #piece-12 {}

div#game-container[class*="step-2"] #question-pieces div[id*="piece-container"] {
    animation: none;
}


/* ------------------------------------------------------------ hide iziiearn logo  ------------------------------------------------------- */

#piece-container-1,
#piece-container-2,
#piece-container-3,
#piece-container-4,
#piece-container-5,
#piece-container-6 {
    position: relative;
    height: 180px;
}

#piece-1,
#piece-2,
#piece-3,
#piece-4,
#piece-5,
#piece-6 {
    position: relative;
    width: 100%;
    height: 100%;
}


/* Controling the end game prize */

#prize-container.show {
    visibility: hidden;
    opacity: 0;
    display: flex !important;
    transform: translateY(0);
    animation: prize-container-fade-in-up 1.5s ease 8s forwards !important;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.screen-prize-container #board-container.hide {
    display: flex !important;
    animation: board-container-fade-out 1.5s ease 8s forwards !important;
}

@keyframes board-container-fade-out {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes prize-container-fade-in-up {
    from {
        opacity: 0;
        visibility: hidden;
        top: 0;
    }
    to {
        opacity: 1;
        visibility: visible;
        top: -90%;
    }
}

.screen-prize-container #claim-prize-button {
    pointer-events: none;
}

.screen-prize-container .claw-arm {
    top: 0px;
    position: relative;
    animation: claw-arm-drop-and-return 5s ease-in-out 0s 1 forwards;
}

@keyframes claw-arm-drop-and-return {
    0% {
        top: -169px;
    }
    35% {
        top: -60px;
    }
    60% {
        top: -60px;
    }
    100% {
        top: -169px;
    }
}


/* Display the correct ball in the claw */

.prize-code-gold-ball .individual-ball.gold {
    display: block;
}
.prize-code-blue-ball .individual-ball.blue {
    display: block;
}
.prize-code-orange-ball .individual-ball.orange {
    display: block;
}
.prize-code-pink-ball .individual-ball.pink {
    display: block;
}
.prize-code-zero .individual-ball.zero {
    display: block;
}

@keyframes zero-ball-fall {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(60px);
    }
}