@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/select-a-gift-game/img/background.jpg");
    background-position: center;
}


/* BEGIN Box Graphics */

.box-lid-ribbon {
    height: 97px;
    width: 143px;
    top: 0px;
    background-image: url(/animation-learning/assets/select-a-gift-game/img/box-lid-ribbon.png);
    position: absolute;
    z-index: 4;
    opacity: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.diamond-prize {
    background-image: url(/animation-learning/assets/select-a-gift-game/img/prize-4-diamond.png);
    width: 114px;
    height: 92px;
    top: 70px;
    position: absolute;
    z-index: 2;
    opacity: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.final-prize {
    width: 114px;
    height: 92px;
    top: 70px;
    position: absolute;
    z-index: 2;
    opacity: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.prize-code-coin .final-prize {
    background-image: url(/animation-learning/assets/select-a-gift-game/img/prize-2-coin.png);
}

.prize-code-bolt .final-prize {
    background-image: url(/animation-learning/assets/select-a-gift-game/img/prize-3-lightning.png);
}

.prize-code-diamond .final-prize {
    background-image: url(/animation-learning/assets/select-a-gift-game/img/prize-4-diamond.png);
}

.prize-code-star .final-prize {
    background-image: url(/animation-learning/assets/select-a-gift-game/img/prize-1-star.png);
}

.box-inside {
    height: 53px;
    width: 140px;
    top: 42px;
    background-image: url(/animation-learning/assets/select-a-gift-game/img/box-depth.png);
    position: absolute;
    z-index: 1;
    opacity: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.box-wall {
    height: 114px;
    width: 140px;
    top: 66px;
    background-image: url(/animation-learning/assets/select-a-gift-game/img/box-wall.png);
    position: absolute;
    z-index: 3;
    opacity: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.gift-wrapped {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 10000;
    margin: 0 auto;
    left: 50%;
    top: 18%;
    transform: scale(1.5);
    height: 180px;
    width: auto;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


/* animations for the intro wrapped gift box */


/* Animation for box-lid-ribbon dropping in */

#board-container.show .gift-wrapped .box-lid-ribbon {
    animation: boxLidDropIn 2s cubic-bezier(.36, .07, .19, .97) 3s forwards;
}

@keyframes boxLidDropIn {
    0% {
        transform: translateY(-120px);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Animation for diamond-prize scaling down */

#board-container.show .gift-wrapped .diamond-prize {
    animation: diamondPrizeDropIn 2s cubic-bezier(.36, .07, .19, .97) 1s forwards;
}

@keyframes diamondPrizeDropIn {
    0% {
        transform: scale(2);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Animation for box-inside and box-wall rising in from below */

#board-container.show .gift-wrapped .box-inside {
    animation: boxInsideRiseIn 2s cubic-bezier(.36, .07, .19, .97) 2s forwards;
}

#board-container.show .gift-wrapped .box-wall {
    animation: boxWallRiseIn 2s cubic-bezier(.36, .07, .19, .97) 2s forwards;
}

@keyframes boxInsideRiseIn {
    0% {
        transform: translateY(125px);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes boxWallRiseIn {
    0% {
        transform: translateY(125px);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


/* shrink and rotate the gift box into the background after the diamond is hidden in the box */

#board-container.show .gift-wrapped {
    animation: boxFadeOut 2s cubic-bezier(.36, .07, .19, .97) 6s forwards;
}

@keyframes boxFadeOut {
    0% {
        transform: scale(1.5) rotate(0deg);
        opacity: 1;
    }
    10% {
        transform: scale(1.65) rotate(0deg);
        opacity: 1;
    }
    20% {
        transform: scale(1.5) rotate(0deg);
        opacity: 1;
    }
    30% {
        transform: scale(1.65) rotate(0deg);
        opacity: 1;
    }
    40% {
        transform: scale(1.5) rotate(0deg);
        opacity: 1;
    }
    95% {
        transform: scale(5) rotate(720deg);
        opacity: 0;
    }
    100% {
        transform: scale(.01);
        opacity: 0;
    }
}


/* 6 prize boxes flying in from the center of the board */


/* This is controlled using the javascript function at the bottom of the board.html file. Adjust the time values in the function to change the timing of the animation. */

.gift-prize {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 10000;
    margin: 0 auto;
    top: 0;
    width: 100%;
    height: 180px;
}


/* 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;
    }
}


/* Hovering effect for when the user hovers over the gift box on the board */


/* Pulsing animation for the glow */

@keyframes pulse-glow {
    0% {
        opacity: 0.7;
        transform: scale(1);
        filter: blur(40px);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
        filter: blur(40px);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
        filter: blur(40px);
    }
}


/* Default state: hidden */

.background-glow {
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}


/* On hover of the gifts, animate the glow */

[id^="piece-container-"]:hover .background-glow {
    opacity: 1;
    animation: pulse-glow 1s infinite;
    pointer-events: none;
}

[id^="piece-container-"] {
    transition: transform 1.25s cubic-bezier(.4, 2, .6, 1);
}

[id^="piece-container-"]:hover {
    transform: scale(1.2);
}


/* END Gift Box Intro Graphics */


/* Generic fade-out class for piece-containers */

.unselected-boxes-leave {
    animation: zoomOut 5.5s cubic-bezier(.36, .07, .19, .97) forwards;
}

@keyframes zoomOut {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
        -webkit-transform: scale3d(0.3, 0.3, 0.3) rotate(180deg);
        transform: scale3d(0.3, 0.3, 0.3) rotate(180deg);
    }
    100% {
        opacity: 0;
    }
}


/* Game Ending Prize Animations - Bring all 6 to center of screen then animate the prize opening  */

.selected-1 #piece-container-1 {
    animation: moveToCenter1 2s cubic-bezier(.36, .07, .19, .97) forwards;
    cursor: none;
    pointer-events: none;
}

.selected-2 #piece-container-2 {
    animation: moveToCenter2 2s cubic-bezier(.36, .07, .19, .97) forwards;
    cursor: none;
    pointer-events: none;
}

.selected-3 #piece-container-3 {
    animation: moveToCenter3 2s cubic-bezier(.36, .07, .19, .97) forwards;
    cursor: none;
    pointer-events: none;
}

.selected-4 #piece-container-4 {
    animation: moveToCenter4 2s cubic-bezier(.36, .07, .19, .97) forwards;
    cursor: none;
    pointer-events: none;
}

.selected-5 #piece-container-5 {
    animation: moveToCenter5 2s cubic-bezier(.36, .07, .19, .97) forwards;
    cursor: none;
    pointer-events: none;
}

.selected-6 #piece-container-6 {
    animation: moveToCenter6 2s cubic-bezier(.36, .07, .19, .97) forwards;
    cursor: none;
    pointer-events: none;
}


/* Game Ending Prize Animations - Animate the box lid opening */

.selected-1 .box-lid-ribbon,
.selected-2 .box-lid-ribbon,
.selected-3 .box-lid-ribbon,
.selected-4 .box-lid-ribbon,
.selected-5 .box-lid-ribbon,
.selected-6 .box-lid-ribbon {
    animation: boxLidOpen 2s cubic-bezier(.36, .07, .19, .97) 2.5s forwards;
}

@keyframes boxLidOpen {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translateY(-120px);
        opacity: 0;
    }
}


/* Disable pointer and cursor events for selected piece-containers when #game-container after a piece has been selected */

.selected-1 #animation-pieces,
.selected-2 #animation-pieces,
.selected-3 #animation-pieces,
.selected-4 #animation-pieces,
.selected-5 #animation-pieces,
.selected-6 #animation-pieces {
    pointer-events: none;
    cursor: none;
}


/* Game Ending Prize Animations - Animate the box inside and box wall dropping down and disappearing */

.selected-1 .box-inside,
.selected-2 .box-inside,
.selected-3 .box-inside,
.selected-4 .box-inside,
.selected-5 .box-inside,
.selected-6 .box-inside {
    animation: boxInsideDropDown 2s cubic-bezier(.36, .07, .19, .97) 2.5s forwards;
}

@keyframes boxInsideDropDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateY(175px);
        opacity: 0;
    }
}

.selected-1 .box-wall,
.selected-2 .box-wall,
.selected-3 .box-wall,
.selected-4 .box-wall,
.selected-5 .box-wall,
.selected-6 .box-wall {
    animation: boxWallDropDown 2s cubic-bezier(.36, .07, .19, .97) 2.5s forwards;
}

@keyframes boxWallDropDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateY(175px);
        opacity: 0;
    }
}


/* Game Ending Prize Animations - Animate the prize scaling up very slowly */

.selected-1 .final-prize,
.selected-2 .final-prize,
.selected-3 .final-prize,
.selected-4 .final-prize,
.selected-5 .final-prize,
.selected-6 .final-prize {
    animation: prizeScaleUp 3s cubic-bezier(.36, .07, .19, .97) 3.5s forwards;
    opacity: 1;
}


/* When a piece is selected, make the background-glow pulse 3 times and then stay visible */

.selected-1 .background-glow,
.selected-2 .background-glow,
.selected-3 .background-glow,
.selected-4 .background-glow,
.selected-5 .background-glow,
.selected-6 .background-glow {
    opacity: 1 !important;
    animation: pulse-glow 1s 3;
    pointer-events: none;
}

.background-glow {
    background-color: orange;
    width: 200px;
    height: 200px;
    filter: blur(40px);
    border-radius: 100%;
    opacity: 0;
}

@keyframes prizeScaleUp {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        top: 70px;
    }
    20% {
        transform: scale(2.5) rotate(-12deg);
    }
    35% {
        transform: scale(1.2) rotate(10deg);
    }
    65% {
        transform: scale(1.4) rotate(6deg);
    }
    100% {
        transform: scale(2) rotate(0deg);
        opacity: 1;
        top: 35px;
    }
}


/* --------- Ending the scene --------- */

@keyframes moveToCenter1 {
    0% {
        opacity: 1;
        top: 0px;
        left: 0px;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        top: 100px;
        left: 158px;
        transform: scale(1.75);
    }
}

@keyframes moveToCenter2 {
    0% {
        opacity: 1;
        top: 0px;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        top: 100px;
        transform: scale(1.75);
    }
}

@keyframes moveToCenter3 {
    0% {
        opacity: 1;
        top: 0px;
        left: 0px;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        top: 100px;
        left: -158px;
        transform: scale(1.75);
    }
}

@keyframes moveToCenter4 {
    0% {
        opacity: 1;
        top: 0px;
        left: 0px;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        top: -100px;
        left: 158px;
        transform: scale(1.75);
    }
}

@keyframes moveToCenter5 {
    0% {
        opacity: 1;
        top: 0px;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        top: -100px;
        transform: scale(1.75);
    }
}

@keyframes moveToCenter6 {
    0% {
        opacity: 1;
        top: 0px;
        left: 0px;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        top: -100px;
        left: -158px;
        transform: scale(1.75);
    }
}


/* Make all the pieces visible when the board is shown, so that they can be animated. */

#board-container.show #animation-pieces .box-lid-ribbon,
#board-container.show #animation-pieces .box-inside,
#board-container.show #animation-pieces .diamond-prize,
#board-container.show #animation-pieces .box-wall {
    opacity: 1;
}


/* contains all game elements */

#game-container {
    width: 1100px;
    height: 800px;
    position: relative;
}

#game-container.awaiting_return_value {
    cursor: progress;
}

#main-page {
    max-height: 800px;
}


/* the title of the game */

#title,
#title2 {
    width: 550px;
    height: 140px;
    margin: auto auto auto auto;
    position: relative;
    background-image: url(/animation-learning/assets/select-a-gift-game/img/title-en.png);
    margin-top: 10px;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

.language-code-FR #title,
.language-code-FR #title2 {
    background-image: url("/animation-learning/assets/select-a-gift-game/img/title-en.png");
}


/* Video button & Popup modal */

#Watch-Video-Button {
    order: 3;
    background-color: red;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    margin-left: auto;
}

.language-code-FR .video-english {
    display: none;
}

.language-code-EN .video-french {
    display: none;
}

#HintPopup img {
    width: 100%;
}

.large-hint {
    max-height: 500px;
    overflow: scroll;
}

.medium-hint {
    width: 600px;
    margin: auto;
}

.medium2-hint {
    width: 800px;
    margin: auto;
}

.small-hint {
    width: 350px;
    margin: auto;
}

#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 */

#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/select-a-gift-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/select-a-gift-game/img/Legend-EN.png);
    height: 110px;
    width: 58%;
    margin: 0 auto;
    background-size: contain;
    background-repeat: no-repeat;
}

#intro-description {
    font-size: 26px;
    color: white;
    margin: 1em 1em auto 1em;
}

.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/select-a-gift-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/select-a-gift-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/select-a-gift-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%);
}

.btn-grad {
    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;
    transform: scale(1.2);
    box-shadow: 0 0 50px #000;
}

#post-game-1-button {
    margin: 0 auto;
    margin-top: 0px;
    margin-top: 31px;
}

.game-finished.no-prize #post-game-1-button {
    display: none;
}

#hint-btn,
#Watch-Video-Button {
    cursor: pointer;
    background-color: #e4911c;
    width: max-content;
    padding: 5px 9px;
    text-decoration: none;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    line-height: 1.5em;
}

#hint-btn {
    margin: 0 auto;
    animation-name: heartBeat;
    animation-duration: 10s;
    animation-fill-mode: both;
    animation-delay: 2s;
    animation-iteration-count: infinite;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #e4911c;
    text-transform: uppercase;
}

#Watch-Video-Button {
    margin: 0 auto;
    margin-top: -8px;
    margin-bottom: 10px;
    z-index: 1000;
    position: relative;
}

#try-again-btn {
    margin: 1em auto auto;
}

#intro-button {
    margin: 10px 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: 481px;
    height: 586px;
    margin: 20px auto auto auto;
    position: relative;
    background-image: url(/animation-learning/assets/select-a-gift-game/img/board.png);
    background-repeat: no-repeat;
    /* animation-name: showGame;
	animation-duration: 0.2s; */
}


/* the prize container */

#prize-container {
    font-size: 2em;
    padding: 30px 10px 25px 10px;
    z-index: 10;
    pointer-events: auto;
}

.prize-name {
    color: white;
    line-height: 2em;
    font-size: 35px;
    padding-bottom: 25px;
}

.prize-name-value,
.prize-name-tail {
    color: white;
    font-size: 70px;
    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;
}

.glow {
    font-size: 80px;
    color: #fff;
    text-align: center;
    -webkit-animation: glow 1s ease-in-out infinite alternate;
    -moz-animation: glow 1s ease-in-out infinite alternate;
    animation: glow 1s ease-in-out infinite alternate;
}

.prize-name-head {
    display: block;
    margin-bottom: -20px;
}

.prize-header {
    font-size: 51px;
    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/select-a-gift-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/select-a-gift-game/img/Correct-Answer-Icon.png");
    background-size: contain;
}

.incorrect.answer-clicked .styling-obj {
    background-image: url("/animation-learning/assets/select-a-gift-game/img/Inorrect-Answer-Icon.png");
    background-size: contain;
}


/* answer description classes */

#answer-description-title,
#answer-description {
    display: block;
    float: left;
    width: 80%;
    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;
}

#animation-pieces {
    display: none;
}


/* 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;
    width: 32%;
    height: 180px;
}

#piece-1,
#piece-2,
#piece-3,
#piece-4,
#piece-5,
#piece-6 {
    position: relative;
    width: 100%;
    height: 100%;
}