/* FONT */

@font-face {
    font-family: 'gothic';
    src: url('./font/GOTHIC.TTF');
}

@font-face {
    font-family: 'gothicB';
    src: url('./font/GOTHICB.TTF');
}

@font-face {
    font-family: 'gothicBI';
    src: url('./font/GOTHICBI.TTF');
}

@font-face {
    font-family: 'gothicI';
    src: url('./font/GOTHICI.TTF');
}


/* COMMON */

.waiting {
    visibility: hidden;
}

#openfl-content {
    width: 100%;
    height: calc(var(--vh, 1vh) * 80);
    bottom: 0;
    left: 0;
	position:absolute;
}

html,
body,
.fullContainer,
.mainContainer {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}


/* Hide scrollbar for IE and Edge */

html {
    overflow: scroll;
    -ms-overflow-style: none;
}

body {
    margin: 0px;
}

.body-game{
    background: linear-gradient(white, #ecf3f8);
}

.d-none {
    display: none !important;
}

.container {
    width: 80%;
    height: 100%;
    margin: 0 auto;
    position: relative;
}

@media screen and (orientation: landscape) {
    .container,
    #openfl-content {
        width: calc(100vh * 1126 / 2436);
    }
    #openfl-content {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

header svg {
    width: calc(var(--vh, 1vh) * 20);
    margin-top: calc(var(--vh, 1vh) * 2);
}


/* HOME */

#home .container .content {
    margin-top: calc(var(--vh, 1vh) * 13);
}

button {
    font-family: 'gothic';
    background: none;
    border: 1px solid black;
    border-radius: 20px;
    padding-bottom: calc(var(--vh, 1vh) * 0.35);
    padding-top: calc(var(--vh, 1vh) * 0.6);
    padding-left: calc(var(--vh, 1vh) * 7);
    padding-right: calc(var(--vh, 1vh) * 7);
    font-size: calc(var(--vh, 1vh) * 2);
    color: black;
}

#home.active button {
    margin-top: calc(var(--vh, 1vh) * 2.5);
}

#home.active .text {
    font-size: calc(var(--vh, 1vh) * 2.5);
    font-family: 'gothic';
    letter-spacing: 0.23rem;
}

.background-home {
    position: absolute;
    bottom: 0;
    object-fit: cover;
    object-position: bottom;
    width: 100%;
}

@media screen and (orientation: landscape) {
    .background-home {
        object-fit: contain;
        width: 100%;
    }
	@media screen and (max-height: 1000px) {
		#home .container .content {
			margin-top: calc(var(--vh, 1vh) * 10);
		}
	}

    #home.active .text {
        font-size: calc(var(--vh, 1vh) * 2);
    }
}

@media screen and (orientation: portrait) {
    @media (min-aspect-ratio: 2/3) {
        .background-home {
            bottom: -12%;
        }
    }

    @media (min-aspect-ratio: 19/20) {
        .background-home {
            bottom: -17%!important;
        }
    }
}

#show-cards div {
    letter-spacing: 0.5px;
}


/* CARDS */

#cards .explication {
    color: #95b1c6;
    margin: calc(var(--vh, 1vh) * 9.44) 0;
    font-size: calc(var(--vh, 1vh) * 2.5);
    font-family: 'gothic';
    font-weight: bold;
}

.deck {
    width: 100%;
    overflow: hidden;
    height: 100%;
    transition: all 0.5s ease;
    margin: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: stretch;
    padding: 5%;
}

.deck .card {
    padding: calc(var(--vh, 1vh) * 1);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    perspective: 1000px;
    width: calc(min(calc(var(--vh, 1vh) * 24), 40%));
    height: auto;
    aspect-ratio: 0.8;
}

.n-p{
    margin-block-start: calc(var(--vh, 1vh) * 0.7);
    margin-block-end: 0;
    letter-spacing: 0.04rem;
}

.names-parfum{
    position: absolute;
    color: #7d7a7a;
    font-size: calc(var(--vh, 1vh) * 1);
    font-family: 'gothic';
}

.names-parfum p:nth-child(2){
    margin-block-start: 0;
    margin-block-end: 0;
    font-size: calc(var(--vh, 1vh) * 0.8);
    color: #b3b3b3;
}
.names-parfum p:nth-child(1){
    margin-block-start: calc(var(--vh, 1vh) * 0.7);
    margin-block-end: 0;
    letter-spacing: 0.04rem;
}


/* Iphone 6S */

@media only screen and (max-width: 576px) {
    .deck .card {
        aspect-ratio: 0.88;
    }
    #cards .explication {
        margin: calc(var(--vh, 1vh) * 8.44) 0;
    }
}

.deck .card .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.25s ease-out;
    transform-style: preserve-3d;
}

.deck .card .flip-card-front{
    display: flex;
    justify-content: center;
}

.deck .card .flip-card-front,
.deck .card .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.deck .card .flip-card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
}

.img-ingredient,
#cards .deck .flip-card-front img {
    border: 0.9px solid white;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 15px;
}

.deck .card svg {
    width: 100%;
}

.deck .card.mask {
    opacity: 0;
}

.deck .card.open .flip-card-inner {
    transform: rotateY(180deg);
}

.deck .card.remove {
    opacity: 0;
    visibility: hidden;
}

.deck .card.disabled {
    pointer-events: none;
}

.il-1 {
    color: #9b8681;
}

.il-2 {
    color: #593727;
}

.il-3 {
    color: #6f5700;
}

.il-4 {
    color: #777b5a;
}

.ingredients-list {
    z-index: 2;
    position: absolute;
    font-family: 'gothic';
    font-weight: 600;
    font-size: calc(var(--vh, 1vh) * 2);
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

@media screen and (min-height: 520px) {
    .ingredients-list {
        font-size: calc(var(--vh, 1vh) * 1.6);
    }
}

.ingredients-list p {
    top: 0;
}

#play-game {
    margin-top: calc(var(--vh, 1vh) * 5);
}

.select-border{
    border: 1.5px solid rgba(0, 0, 0, 0.445) !important;
}

/* SCORING */

#scoring-page {
    display: flex;
    justify-content: center;
}

#scoring-page .container {
    width: 100%;
}

#scoring-page .container .content {
    margin-top: calc(var(--vh, 1vh) * 3);
}

#scoring-page .content p {
    margin-block-start: 0rem;
    margin-block-end: 0rem;
}

.score,
.label {
    color: #a4bacd;
}

.label {
    font-family: 'gothic';
    font-size: calc(var(--vh, 1vh) * 2);
}

.score {
    font-family: 'gothicB';
    font-size: calc(var(--vh, 1vh) * 5);
}

.flacon {
    width: calc(var(--vh, 1vh) * 10);
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
    opacity: 1;
}

.flacon-top {
    width: calc(var(--vh, 1vh) * 10);
    position: absolute;
    bottom: 50%;
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
    opacity: 1;
}

.p-p-1 {
    width: calc(var(--vh, 1vh) * 15);
}

.p-p-2 {
    width: calc(var(--vh, 1vh) * 15);
}

.water {
    height: 5%;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
}

#scoring-page .deck {
    position: absolute;
    top: 70%;
	height: 20%;
}

@media(orientation: landscape){
    #scoring-page .deck {
        top: 65%;
		height: 25%;
    }
}

#scoring-page .deck .card {
    padding: 0;
    display: flex;
    justify-content: center;
    width: calc(min(calc(var(--vh, 1vh) * 6)));
    aspect-ratio: 0.8;
}

#scoring-page .flip-card-inner {
    width: 100%;
    height: 100%;
    text-align: center;
}

#scoring-page .deck .flip-card-front img {
    height: 90%;
    object-fit: cover;
}

.ingredient {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.ingredient:nth-child(2) {
    margin-right: 30px;
    margin-left: 30px;
}

.ingredient p {
    margin: 0;
    font-family: 'gothic';
    font-size: calc(var(--vh, 1vh) * 1.7);
}

.circle-point-1, .circle-point-2, .circle-point-3{
    position: absolute;
    top: 0;
    right: -15%;
    z-index: 1;
    border: 1px solid;
    border-radius: 50%;
    padding-right: calc(var(--vh, 1vh) * 0.5);
    padding-left: calc(var(--vh, 1vh) * 0.5);
    cursor: pointer;
}

.pNutmeg{
    right: -65%;
}

.pYuzu{
    right: -30%;
}

.pClary{
    right: -20%;
}

.pGinger{
    right: -50%;
}

.point-i{
    font-family: arial;
    font-weight: 600;
    font-size: calc(var(--vh, 1vh) * 2);
}

#btn-next {
    position: absolute;
    bottom: calc(var(--vh, 1vh) * 6.5);
    padding-left: calc(var(--vh, 1vh) * 5);
    padding-right: calc(var(--vh, 1vh) * 5);
    border-radius: 15px;
}

.scoring-btns {
    position: absolute;
    bottom: calc(var(--vh, 1vh) * 2);
    display: flex;
    flex-direction: column;
}

.scoring-btns button{
    padding-bottom: calc(var(--vh, 1vh) * 0.2);
    padding-top: calc(var(--vh, 1vh) * 0.3);
    padding-left: calc(var(--vh, 1vh) * 2);
    padding-right: calc(var(--vh, 1vh) * 2);
    cursor: pointer;
}

#scoring-page .reward {
    margin-bottom: calc(var(--vh, 1vh) * 1.5);
}

.text {
    font-family: 'gothic';
    font-size: calc(var(--vh, 1vh) * 2);
    font-weight: 600;
}

.square,
.tuto {
    top: 170%;
    position: absolute;
    z-index: 3;
    text-align: center;
    background-color: #ffffffa1;
    padding: 30px 15px;
    opacity: 0.7;
    box-shadow: rgba(0, 0, 0, 0.15) 2.4px 2.4px 3.2px;
    font-size: calc(var(--vh, 1vh) * 2.2);
}

.tuto {
    top: 38%;
}

.info-product {
    font-family: 'gothicB';
    font-size: calc(var(--vh, 1vh) * 1.8);
}


/* REWARD */

#reward-page {
    display: flex;
    justify-content: center;
}

#reward-page .text {
    margin-block-start: calc(var(--vh, 1vh) * 5);
}

.gray-part {
    position: absolute;
    bottom: 0;
    object-fit: contain;
    object-position: bottom;
    width: 100%;
    height: 50%;
}

.gray-part .container {
    background-color: gray;
}

@media screen and (orientation: portrait) {
    .gray-part .container {
        width: 100%;
    }
}

.gray-part p {
    font-family: 'gothic';
    font-size: calc(var(--vh, 1vh) * 2.33);
    margin-block-end: calc(var(--vh, 1vh) * 10);
    color: white;
}

.gray-part button {
    background-color: white;
    border: white;
}

#reward-page .bag img {
    width: calc(var(--vh, 1vh) * 30);
}

.bag {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
    z-index: 1;
    background-color: #ffffff94;
    padding: calc(var(--vh, 1vh) * 3) calc(var(--vh, 1vh) * 4);
    box-shadow: rgba(0, 0, 0, 0.15) 2.4px 2.4px 3.2px;
    border: 2px solid white;
}

.shop-btn {
    position: absolute;
    bottom: 0;
    margin-bottom: calc(var(--vh, 1vh) * 4);
}


/* GAME */

.tutorial {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 100;
}

.tuto-text {
    font-family: 'gothic';
    font-weight: 600;
    margin-block-start: 0;
    margin-block-end: 0;
    font-size: calc(var(--vh, 1vh) * 2);
}

.tap {
    font-family: 'gothicB';
    margin-block-start: calc(var(--vh, 1vh) * 10);
    margin-block-end: 0;
    font-size: calc(var(--vh, 1vh) * 2);
}

#game .content {
    display: flex;
    width: 80%;
    margin-top: 8%;
}

.game-ui {
    font-size: calc(var(--vh, 1vh) * 2.2);
    width: 50%;
    color: #a4bacd;
    text-transform: uppercase;
    pointer-events: none;
}

.game-ui.left {
    text-align: left;
}

.game-ui.right {
    text-align: right;
}

.game-current {
    font-family: 'gothicB';
    font-size: 200%;
    margin-left: calc(var(--vh, 1vh) * 1.8);
}

/**
LANG
**/

.lang-modal ul {
	list-style: none;
	margin-top: 140px;
	padding: 0;
}

.lang-modal ul li {
	text-decoration: none;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
	margin-bottom: 50px;
	text-transform: uppercase;
}

.lang-modal {
	text-align: center;
    z-index: 1000;
}

.modal button {
	position: absolute;
    right: 4px;
    top: 4px;
    color: white;
    background-color: transparent;
    border: none;
	font-size: 35px;
	cursor: pointer;
}

.chooselanguage {
    padding: calc(var(--vh, 1vh) * 0.5);
    border-radius: 3px;
    font-size: 1.4vh;
    cursor: pointer;
    background-color: transparent;
    color: white;
    animation: opacity 0.8s linear 0.8s;
    animation-fill-mode: both;
    position: absolute;
    top: 5px;
    right: 5px;
    color: black;
}


/**
* ANIMATION
*
**/

.zoomInAndOut {
    animation: zoomInOut 0.2s ease-in-out 1 alternate;
    display: inline-block;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1.0);
    }
    100% {
        transform: scale(1.5);
    }
}

.zoomCard {
    animation: zoomCards 0.3s ease-in-out 1 alternate;
    transform: scale(1.03);
    display: inline-block;
}

.zoomText{
    animation: zoomTexts 0.3s ease-in-out 1 alternate;
    font-size: calc(var(--vh, 1vh) * 2);
}

.shadow-card{
    filter: blur(2px);
}

@keyframes zoomCards {
    0% {
        transform: scale(1.0);
    }
    100% {
        transform: scale(1.03);
    }
}

@keyframes zoomTexts {
    0% {
        font-size: calc(var(--vh, 1vh) * 1.9);
    }
    100% {
        font-size: calc(var(--vh, 1vh) * 2);
    }
}

#scoring-page .water {
    transition: top 3s;
}

#scoring-page .flacon {
    transition: top 3s, opacity 3s;
    opacity: 1;
}

#scoring-page .flacon-top {
    transition: bottom 3s, opacity 3s;
    opacity: 1;
}

.anim-water .water {
    top: -5%;
}

.anim-water .flacon {
    top: -8%;
    opacity: 0 !important;
}

.anim-water .flacon-top {
    bottom:  106%;
    opacity: 0 !important;
}

#scoring-page #btn-next {
    opacity: 0;
}

#scoring-page .deck {
    opacity: 0;
}

#scoring-page .scoring-text {
    opacity: 0;
}

.anim-content #btn-next {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.2s;
    animation-fill-mode: both;
}

.anim-content .deck {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.15s;
    animation-fill-mode: both;
}

.anim-content .scoring-text {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.1s;
    animation-fill-mode: both;
}

.game-over-anim #game .content {
    display: none;
}

.game-over-anim #game header {
    display: none;
}

.anim-a1 {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.1s;
    animation-fill-mode: both;
}

.anim-a2 {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.15s;
    animation-fill-mode: both;
}

.anim-a3 {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.2s;
    animation-fill-mode: both;
}

.anim-a4 {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.25s;
    animation-fill-mode: both;
}

.anim-a5 {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.3s;
    animation-fill-mode: both;
}

.anim-a6 {
    animation: opacity 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.35s;
    animation-fill-mode: both;
}

.anim-l1 {
    animation: animationLeft 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.1s;
    animation-fill-mode: both;
}

.anim-l2 {
    animation: animationLeft 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.15s;
    animation-fill-mode: both;
}

.anim-l3 {
    animation: animationLeft 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.2s;
    animation-fill-mode: both;
}

.anim-l4 {
    animation: animationLeft 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.25s;
    animation-fill-mode: both;
}

.anim-1t {
    animation: animationTop 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.1s;
    animation-fill-mode: both;
}

.anim-2t {
    animation: animationTop 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.35s;
    animation-fill-mode: both;
}

.anim-3t {
    animation: animationTop 0.6s cubic-bezier(0.250, 0.100, 0.250, 1.000) 0.4s;
    animation-fill-mode: both;
}

@keyframes opacity {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes animationTop {
    0% {
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
    }
    to {
        transform: translateY(0px);
        opacity: 1;
        visibility: visible;
    }
}

@keyframes animationBottom {
    0% {
        transform: translateY(10px);
        opacity: 0;
        visibility: hidden;
    }
    to {
        transform: translateY(0px);
        opacity: 1;
        visibility: visible;
    }
}

@keyframes animationLeft {
    0% {
        transform: translateX(-10px);
        opacity: 0;
        visibility: hidden;
    }
    to {
        transform: translateX(0px);
        opacity: 1;
        visibility: visible;
    }
}