:root {
    --grey-200: #f7f7f7;
    --grey-700: #3c3c3c;
    --green: #b1af00;
    --grey-300: #e9eaec;
    --grey-400: #ccc;
    --white: #fff;
    --grey-500: #787878;
    --grey-900: #181818;
    --grey-800: #2c2c2c;

    --fucsia: #d10071;
    --blue: #353ac2;
    --light-blue: #00a5ff;
    --orange: #ff6f00;
    --red: #c40000;

    --bg-white-alpha-15: rgba(255, 255, 255, 0.15);
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    color: #fff;
}

*{
	-webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; /* Safari Touch */
  -webkit-user-select: none;   /* Webkit */
  -moz-user-select: none;      /* Firefox */
  -ms-user-select: none;       /* Edge*/
   user-select: none;       /* Future-proof*/
}

body div {
    display: flex;
}

.BG {
    font-family: 'Poppins', sans-serif;
    /*width: 100%;
    height: 100%;*/
    display: flex;
    flex: 1;
    /*background-image: linear-gradient(to right, var(--fucsia) 0%, var(--blue));*/
    background-image: radial-gradient(circle at 50% 50%, var(--fucsia), var(--blue) 109%);
    align-items: center;
    flex-direction: column;
    padding-top: 80px;
}

.transparent-rectangle {
    border-radius: 8px;
    background-color: var(--bg-white-alpha-15);
    padding: 20px;
    margin: 10px;
}

.screen {
    width: 1100px;
    flex: 1;

}

.logo {
    height: auto;
    object-fit: contain;
}

.EFFETTO-X {
  width: 306px;
  height: 56px;
  margin: 42px 303px 0;
  text-shadow: 4px 4px 16px rgba(0, 0, 0, 0.26), 4px 4px 0 var(--blue);
  font-family: Poppins;
  font-size: 56px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-align: center;
  color: var(--white);
}

/* INTRO SCREEN */

.intro {
    flex-direction: column;
}

.top {
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-bottom: 60px;
}


.intro .logo {
    width: 300px;
    /*margin: -100px auto 0;*/
}

.center {
	justify-content: center;
}


.piece-container {
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 10px;
    min-height: 200px;
}


.intro-piece {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0px;
}

.intro-piece-desc {
    flex-direction: column;
    align-items: center;
    padding: 6px;
    text-align: center;
    min-height: 74px;
    flex: 1;
    font-size: 14px;
}

.intro-piece-desc strong{
    font-size: 20px;

}

.v-separated {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(24, 24, 24, 0.2);
}

.v-separated:first-child {
    border-top: none;
    flex: 1;
}

.v-separated:last-child {
    border-bottom: none;
}

.bottom {
	margin-top: 60px;
	margin-bottom: 60px;
    justify-content: center;
}

.col {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding-left: 40px;
    padding-right: 40px;
}

.col-number{
 background-color: rgba(0, 0, 0, .2);
    width: 80px;
    height: 80px;
    border-radius: 100%;
    line-height: 80px;
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 20px;
}

.col-content{
	display: block;
	text-align: center;
}

/* TRIANGLES  */
.triangles{
	position: relative;
	width: 100%;
	height: 100px;

}
#triangles-separator{
	width: 100%;
	height: 100%;
}

/* MAIN SCREEN */
.BG-Opacity{
	padding-top: 60px;
	width: 100%;
	background-color: rgba(24, 24, 24, 0.2);
	align-items: center;
    flex-direction: column;
    
}	

h2{
	text-align: center;
}
.effetto-x{
  text-shadow: 4px 4px 16px rgba(0, 0, 0, 0.26), 4px 4px 0 var(--blue);
  font-size: 56px;
  font-weight: bold;
}


.main {
	position: relative;
	padding: 10px;
	justify-content: space-between;
	margin-bottom: 200px;
}

.main>div {
    flex: 1;
}

.main>div>div {
    flex: 1;
}

.instruction {
    border-radius: 5px;
    background-color: var(--bg-white-alpha-15);
    flex-direction: column;
    text-align: center;
}

.instruction .v-separated {
    padding: 10px 20px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.game-container {
    border-radius: 5px;
    background-color: var(--grey-900);
    margin-left: 60px;
    margin-right: 60px;
    box-shadow: 6px 6px 14px 0 rgba(0, 0, 0, 0.3);
    flex-direction: column;
    position: relative;
}
#tetris{
	width: 300px; 
	height: 600px;
}

.controls {
    flex-direction: column;
    box-shadow: 6px 6px 14px 0 rgb(0 0 0 / 30%);
    border-radius: 5px;
}

.controls>div {
    background-color: var(--grey-900);
}


.game-border-outer {
    flex: 1;
    margin: 6px;
    background-image: linear-gradient(to right, var(--fucsia) 0%, var(--blue));
    border-radius: 4px;
}

.game-border-inner {
    flex: 1;
    margin: 4px;
    background-color: var(--grey-900);
    border-radius: 4px;
}

/* CONTROLS */

.game-status {
    border-bottom: 2px solid rgba(0, 0, 0, 1);
}

.game-status>div {
    flex: 1;
    flex-direction: column;
    font-size: 14px;
    justify-content: center;
    align-items: center;
    padding: 18px;
}

.score-container {
    border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.level-container {
    border-left: 2px solid rgba(0, 0, 0, 1);
}

.pause .play,
.play .pause{
	display: none;
}

.score,
.level {
	position: relative;
    font-size: 24px;
    font-weight: bold;
    line-height: 40px;
}

.bonus{
display: block;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 200px;
    left: 0px;
    color: var(--green);
    font-size: 40px;
    transition: all 1s;
    font-weight: bold;
    text-shadow: 0px 0px 30px rgb(255 255 255);

}

.bonus.go{
	top: 0px;
	opacity: 0;
}

.effetto-status {
    flex: 1;
    /* margin-top: 40px; */
    flex-direction: column;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.marcobiota-container {}

.tachimetro {
    border-bottom: 2px solid rgba(0, 0, 0, 1);
    flex: 2;
    background-image: url(../img/tachimetro.svg);
    background-position: bottom -20px center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--green);
    text-align: center;
    padding-top: 15px;
    font-weight: bold;
    justify-content: center;
    min-height: 150px;
    max-height: 150px;
    overflow: hidden;
}

.lancetta{
    position: absolute;
    bottom: -32px;
    left: calc(50% - 14px);
    background: url(../img/lancetta.svg) no-repeat center;
    width: 30px;
    height: 132px;
    -webkit-transform-origin: 50% 122px;
    -moz-transform-origin: 50% 122px;
    -ms-transform-origin: 50% 122px;
    -o-transform-origin: 50% 122px;
    transform-origin: 50% 122px;
    -webkit-transform: rotate(-70deg): ;
    -moz-transform: rotate(-70deg);
    -ms-transform: rotate(-70deg);
    -o-transform: rotate(-70deg);
    transform: rotate(-70deg);
    transition: all .5s;
}

.bars {
    flex-direction: column;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    flex: 1;
    padding-top: 10px;
    padding-bottom: 20px;
}

.bar {
    flex-direction: column;
    margin: 8px 20px;
    color: var(--white);
}

.bar>.value {
    margin-top: 6px;
    background-color: var(--grey-700);
    border-radius: 4px;

}

.bar>.value>div {
    flex: 1;
    height: 8px;
    border-radius: 4px;
}

.innerbar{
    z-index: 1;
    min-width: 5px !important;
    max-width: 100% !important;
    flex: none !important;
    width: 0px;
    transition: width 0.5s;
}

.green {
    background-color: var(--green);
    box-shadow: 0px 0px 10px 0 var(--green);
}

.orange {
    background-color: var(--orange);
    box-shadow: 0px 0px 10px 0 var(--orange);
}

.light-blue {
    background-color: var(--light-blue);
    box-shadow: 0px 0px 10px 0 var(--light-blue);
}

.blue {
    background-color: var(--blue);
    box-shadow: 0px 0px 10px 0 var(--blue);
}

.fucsia {
    background-color: var(--fucsia);
    box-shadow: 0px 0px 10px 0 var(--fucsia);
}




.buttons {
    justify-content: center;
    align-items: center;
}

.btn {
    flex: 1;
    margin: 0px 15px 30px;
    height: 26px;
    border-radius: 30px;
    background-color: var(--grey-700);
    color: var(--white);
    font-size: 14px;
    line-height: 26px;
    padding: 3px;
    cursor: pointer;
    max-width: 70%;
}

.btn:active,
.btnBig:active,
.btnMed:active
{
	opacity: .6;
}

.btn span{
	flex: 1;
	text-align: center;
}

.btn-pause {
    /*background: var(--grey-700) url(../img/pause-icon.png) no-repeat left center;
    background-size: auto 90%;*/
}

.btn-info {
    margin-left: 5px;
}

.startContainer,
.popupContainer{
	position: absolute;
	bottom: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	display: none;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	z-index: 1;
}

.startContainer{
	display: flex;
}

.btnBig {
	flex: none !important;
	height: 80px;
	border-radius: 80px;
	background-color: var(--green);
	color: var(--white);
	text-shadow: 5px 4px 0 rgba(0, 0, 0, 0.18);
	font-size: 44px;
	font-weight: bold;
	line-height: 80px;
	cursor: pointer;
	width: 400px;
	padding: 6px;
}
.btnBig span{
	flex: 1;
	text-align: center;
}


.btnMed {
	flex: none !important;
	height: 50px;
	border-radius: 50px;
	background-color: var(--green);
	color: var(--white);
	text-shadow: 5px 4px 0 rgba(0, 0, 0, 0.18);
	font-size: 24px;
	font-weight: bold;
	line-height: 50px;
	cursor: pointer;
	width: 380px;
	padding: 6px;
	margin: 0 10px;
}
.btnMed span{
	flex: 1;
	text-align: center;
}

.btnMed.nextLevel,
.btnMed.playAgain{
	background-color: var(--white);
	color: var(--green);
	text-shadow: none;
}

#start_game{
	background-image: url(../img/play-button.svg);
	background-size: 78px;
	background-repeat: no-repeat;
	background-position: left 6px center;
}


.scossa{
	position: absolute;
	bottom: 2px;
	height: 25px;
	width: 100%;
}

.scossa::after{
	content: '';
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 35px;
	background: url("../img/scossa.svg") left center repeat-x;
	background-size: 100%;
	animation: diagonal-slide 0.2s infinite;
}

.popup{
	display: none;
	text-align: center;
	position: relative;
	background-image: radial-gradient(circle at 50% 50%, var(--fucsia), var(--blue) 109%);
	font-size: 20px;
}

.popup .content{
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background:  url("../img/logoBkg.svg") repeat;
	background-size: 33%;
	padding: 0 100px;
}

.winScreen::before{
	content: '';
	position: absolute;

	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	background:  url("../img/bkg-coriandoli.svg") repeat;
	background-size: 100% ;
}

.thumbsup{
	position: absolute;
	top: -50px;
	left: -50px;
}

.cup{
	position: absolute;
	top: -50px;
	left: -100px;
}

.popup-effetto-x{
	background-color: red;
}

.btnContainer{
	/* width: 100%; */
	/* justify-content: center; */
}

@-webkit-keyframes diagonal-slide {
  from { background-position: 0px 0; }
  20% { background-position: 25px -5px; }
  40% { background-position: 40px 5px; }
  60% { background-position: 55px 5px; }
  80% { background-position: 70px -5px; }
  to { background-position: 85px 0; }
}


.checkpoints{
	left: 6%;
	position: absolute;
	z-index: -1;
	/* opacity: 0; */
	width: 100%;
	height: 100%;
	padding-right: 10%;
}

.checkpoints div{
	width: 20%;
	border: 1px solid #fff;
}

@media only screen and (max-width: 768px) {
    /* smartphones, iPhone, portrait 480x320 phones */
    .desktop{ display: none !important; }
    .screen{width: 100%; }

	.swiper{
		width: 100%;		
	}
	.bottom{
		flex-direction: column;
		margin-bottom: 0px;
	}
	.bottom .col{
		margin-bottom: 40px;
	}
	.main{
		flex-direction: column;
		padding: 0px;
    	margin-bottom: 0px;
	}
	.istruzioni{
		margin: 0 40px 40px 40px;
	}

	#start_game {
 	   background-size: 68px;
	}
	.game-status,
	.effetto-status {
	    border-width: 1px;
	}

	.btnBig {
	    height: 70px;
	    line-height: 70px;
	    width: 70%;
	    font-size: 37px;
	}
	#tetris{
		width: 240px;
		height: 480px;
	}

	.scossa{
		height: 20px;
	}

	.scossa::after{
		height: 30px;
	}
	.popup{
		width: 90%;
	}
	.popup .content {
     	padding: 0 10px;
     	font-size: 0.9em;
    }
    h2{
    	font-size: 30px;
    }
    .effetto-x{
    	font-size: 40px;
    }
    .thumbsup,
    .cup{
    	left: 0px;
    }
    .cup{
    	opacity: .6;
    }
    .btnContainer {
	    flex-direction: column;
	}
	
	.startContainer{
		height: 510px;
	}

	.popupContainer
	{
		height: 640px;
	}
	
	 .btnMed.playAgain {
    	margin-bottom: 20px;
	}

	.level-container {
	    border-right: 2px solid rgba(255, 255, 255, 0.2);
	}
	.tachimetro {
	    border-left: 2px solid rgba(0, 0, 0, 1);
	    color: #fff;
	    min-height: 60px;
	    max-height: 60px;
	    background-size: 80px;
	    background-position: bottom 11px center;
	    font-weight: normal;
	}

	.btnMed {
	    font-size: 20px;
	    width: 260px;
	    margin-bottom: 30px;
	}

	.game-status>div {
	    padding: 6px;
	    font-size: 11px;
	    line-height: 22px;
	}

	.game-status>div{
		    justify-content: flex-start;
	}
	.lancetta{
	    bottom: 7px;
	    left: calc(50% - 5px);
	    background-size: auto 100%;
	    width: 10px;
	    height: 38px;
	    -webkit-transform-origin: 50% 36px;
	    -moz-transform-origin: 50% 36px;
	    -ms-transform-origin: 50% 36px;
	    -o-transform-origin: 50% 36px;
	    transform-origin: 50% 36px;
	}
	
	.score,
	.level {
	    font-size: 18px;
	}
	.bar {
	    margin: 8px 7px;
	    font-size: 11px;
	    flex: 1;
	}
	.btn-pause{
    position: absolute;
    bottom: 0px;
    right: -35px;
    margin: 0px;
	}

	.mobile .logo {
		margin: 60px;
	}
}


@media only screen and (min-width: 768px) {
	.swiper-wrapper,
	.swiper-slide {
	    height: auto !important;
	    transform: none !important;
	    z-index: 0 !important;
	}
	.swiper-slide-shadow-left,
	.swiper-slide-shadow-right{
		display: none !important;
	}
	.mobile{ display: none !important; }
}