@import url('https://fonts.googleapis.com/css2?family=Poetsen+One&display=swap');

* {
    margin: 0;
    padding: 0
}

img {
    width: 100%
}

html {
    background: #FFF;
    height: 100%
}

body {
    font-family: "Poetsen One", sans-serif;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    height: 100%;
    background-color: #6cc0e2;
    background-image: url(bgGreen.jpeg);
    background-size: contain;
}

#nick{
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

#canvas {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

a {
    text-decoration: none
}

li, ul, ol {
    list-style-type: none;
    padding: 0;
    margin: 0
}

.hide {
    display: none
}

.clear {
    clear: both
}

main{
    max-width: 500px;
    margin: 0 auto;
    background-color: #98e5f1;
    box-shadow: 0 0 20px 1px #000;
}

.content {
    height: 100vh;
    margin: 0 auto;
    position: relative;
}

.landing .title {
    position: relative;
    width: 60%;
    z-index: 20;
}

.landing .logo {
    width: 30%;
    position: absolute;
    right: .2rem;
    top: .2rem;
}

.landing .action-2 {
    position: absolute;
    bottom: 60px;
    width: 100%;
}

.landing .start, .landing .ranking, .landing .archivement {
    width: 81px;
    height: 40px;
    border: 0;
    text-indent: -1000px;
    margin: 0 10px;
    background-color: transparent;
    background-image: url(main-index-start.png);
    background-size: cover;
    background-position: center;
}

.landing .ranking {
    background-image: url(main-index-ranking.png);
    
}
    
.landing .archivement {
    background-image: url(main-index-archivement.png);
    
}

.slideTop {
    -webkit-animation: st 1s ease-in-out;
    animation: st 1s ease-in-out;
}

@-webkit-keyframes st {
    0% {
        transform: translateZ(0)
    }
    100% {
        transform: translate3d(0, -100%, 0)
    }
}

@keyframes st {
    0% {
        transform: translateZ(0)
    }
    100% {
        transform: translate3d(0, -100%, 0)
    }
}

.slideBottom {
    -webkit-animation: sb 1s ease-in-out;
    animation: sb 1s ease-in-out;
}

@-webkit-keyframes sb {
    0% {
        transform: translateZ(0)
    }
    100% {
        transform: translate3d(0, 200%, 0)
    }
}

@keyframes sb {
    0% {
        transform: translateZ(0)
    }
    100% {
        transform: translate3d(0, 200%, 0)
    }
}

.swing {
    -webkit-animation: sw 2s ease-in-out alternate infinite;
    animation: sw 2s ease-in-out alternate infinite;
}

@-webkit-keyframes sw {
    0% {
        transform: rotate(5deg);
        transform-origin: top center;
    }
    100% {
        transform: rotate(-5deg);
        transform-origin: top center;
    }
}

@keyframes sw {
    0% {
        transform: rotate(5deg);
        transform-origin: top center;
    }
    100% {
        transform: rotate(-5deg);
        transform-origin: top center;
    }
}

.modal .mask {
    background-color: #000;
    opacity: .6;
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.modal .modal-content {
    position: fixed;
    height: 100%;
    width: 90%;
    margin-top: .3rem;
    top: 0;
}

.modal .main {
    width: 85%;
    margin: 0 auto;
}

.modal .container {
    position: relative;
    margin-top: 30%;
}

.modal .bg {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0
}

.modal .modal-main {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 0.4rem;
}

.modal .over-img {
    width: 45%;
    margin: .8rem auto 0
}

.modal .over-score {
    font-size: 2.3rem;
    color: #FF735C;
    text-shadow: -2px -2px 0 #FFF, 2px -2px 0 #FFF, -2px 2px 0 #FFF, 2px 2px 0 #FFF;
}

.modal .tip {
    margin-top: 30px;
    color: #9B724E;
}

.modal .over-button-b {
    width: 50%;
    margin: 25px auto 0
}

.modal-main small {
    display: block;
    font-size: 1.3rem;
    margin: 42px 0 0 0;
}

.js-reload{
    width: 81px;
    height: 54px;
    border: 0;
    text-indent: -1000px;
    background-color: transparent;
    background-image: url(main-modal-again.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.js-back{
    width: 81px;
    height: 54px;
    border: 0;
    text-indent: -1000px;
    background-color: transparent;
    background-image: url(main-modal-back.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.js-ranking{
    width: 81px;
    height: 54px;
    border: 0;
    text-indent: -1000px;
    background-color: transparent;
    background-image: url(main-modal-ranking.png);
    background-size: cover;
    background-position: center;
}

.wxShare {
    background: #000;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11;
    opacity: .9
}

.wxShare img {
    width: 50%;
    float: right;
    margin: 10px 10px 0 0
}



p.textClick{
    position: absolute;
    display: block;
    width: 100%;
    color: #f2c588;
    text-shadow: 0.5px 0.5px 6px #000;
    font-size: 12px;
    margin-top: 5px;
}

button.btFechar{
    position: absolute;
    display: block;
    width: 54px;
    height: 54px;
    margin-top: -10px;
    left: calc(100% - 70px);
    border-radius: 30px;
    border: 0;
    background: transparent;
    text-indent: -1000px;
}

/*###########################
  ######## INICIO ###########
  ###########################*/
  

.stats {
    position: absolute;
    width: 100%;
    max-width: 500px;
    z-index: 10;
}

div#nick {
    font-size: 10px;
    text-align: right;
    padding-right: 10px;
}

main span.moedas, main span.recorde{
	display: block;
    font-size: 24px;
    text-align: right;
    color: #FFF;
    padding: 5px;
    padding-right: 5vw;
    margin-top: 20px;
    background: linear-gradient(45deg, transparent, #795548);
    border-top: 1px solid #A1887F;
    border-bottom: 1px solid #A1887F;
  }
main span.moedas{
	padding-right: 47px;
}
main img.moedaico{
	float: right;
	width: 29px;
    margin-top: -34px;
	margin-right: 8px;
}

/*###########################
  ######### LOGIN ############
  ###########################*/
  
section{
    width: 100%;
    max-width: 500px;
    height: 100vh;
    margin: 0 auto;
    background-color: #5ea53c;
    background-image: url(full_tree.jpg);
    background-size: 100% auto;
    background-position: center bottom;
    box-shadow: 0 0 20px 1px #000;
}

::-ms-input-placeholder, ::placeholder {
    color:#fff;
}

h1 {
    font-size: 60px;
    color: #b3744a;
    margin: 40px 0 0 0;
    text-shadow: 2px 2px 0px #2a0d00, -2px -2px 0px #2a0d00, 2px -2px 0px #2a0d00, -2px 2px 0px #2a0d00;
}
  
#btLogin {
    display: block;
    margin: 0 auto 30px auto;
    border: 0;
    color: #4b2608;
    padding: 10px;
    font-size: 16px;
    border-radius: 10px;
    font-weight: bold;
    background-color: transparent;
    background-image: linear-gradient(5deg, #f4bd7f, #d49058, #f4bd7f, #d49058, #f4bd7f, #d49058, #f4bd7f, #d49058, #f4bd7f, #d49058, #f4bd7f, #d49058);
    box-shadow: inset 1px 1px 3px 1px #eaa96d, inset -1px -1px 3px 1px #361b05;
}
    
section#login{
	display:none;
    z-index: 110;
}

section#login button.botao{
	position: absolute;
    display: block;
    left: calc(50% - 102px);
    bottom: 150px;
    font-size: 25px;
    text-align: center;
    font-family: "Poetsen One", sans-serif;
    color: #4b2608;
    width: 200px;
    padding: 6px 0;
    border: 0;
    border-radius: 15px;
    background-color: transparent;
    background-image: linear-gradient(5deg, #f4bd7f, #d49058, #f4bd7f, #d49058, #f4bd7f, #d49058, #f4bd7f, #d49058, #f4bd7f, #d49058, #f4bd7f, #d49058);
    box-shadow: inset 1px 1px 3px 1px #eaa96d, inset -1px -1px 3px 1px #361b05;
}
section#login button.btLogin{
    bottom: 250px;
}

section#login input{
    position: relative;
    width: 280px;
    top: 120px;
    left: calc(50% - 140px);
    display: block;
    color: #eee;
    margin-top: 30px;
    font-size: 26px;
    padding: 5px 10px;
    border: 1px solid #d6925a;
    border-radius: 10px;
    background: #370600e0;
    box-shadow: 0px 0px 8px 1px #000;
}

section#login input#addNick{ display:none; }


/*###########################
  ###### PISTAS CARROS ###### 
  ###### RANKING SOBRE ######
  ###########################*/
  
span.aviso{
    display: none;
    position: fixed;
    width: 80vw;
    height: auto;
    top: 40vh;
    left: 10vh;
    padding-bottom: 21px;
    background: #4d260aee;
    border: 1px solid #341000;
    border-radius: 14px;
    box-shadow: 0 0 8px 0 #000000;
    z-index: 150;
}
    span.aviso b{
        display: block;
        color: #ffc600;
        text-align: center;
        width: 100%;
        font-size: 36px;
        line-height: 70px;
    }
    span.aviso p{
        display: block;
        color: #ffc600;
        text-align: center;
        width: 100%;
        font-size: 14px;
        margin-top: 30px;
    }  
  
section#ranking, section#conquista , section#sobre {
    display:none;
	z-index: 110;
}

section#ranking a, section#conquista a, section#sobre a{
		display: block;
		padding: 8px 0;
		font-size: 25px;
		text-align: center;
		color: #fff;
		text-shadow: 0px 0px 4px #000;
		background: #0000007a;
		background-size: 100%;
		border-radius: 20px;
		border: 1px solid #757575;
		box-shadow: 0px 0px 8px 1px #000;
	}

section#ranking, section#conquista, section#sobre{
	display:none;
	z-index: 110;
}

section#ranking button.botao, section#conquista button.botao, section#sobre button.botao {
	position: relative;
	display: block;
	left: calc(50% - 102px);
	font-size: 25px;
	text-align: center;
	font-family: "Poetsen One", sans-serif;
	color: #EEE;
	width: 200px;
	padding: 2vw 0;
	border: 0;
    border-radius: 20px;
	background: #0000007a;
}

/*###########################
######## RANKING ##########
###########################*/

ul.ranking {
    margin: 125px auto 50px auto;
    text-align: center;
}

ul.ranking li {
    width: 350px;
    margin: 2px auto;
    padding: 6px 0;
    font-size: 1rem;
    color: #fff;
    border-radius: 50px;
    background-color: #00000099;
}

ul.ranking li b, ul.ranking li div, ul.ranking li span { display: inline-table; }

ul.ranking li b {
    width: 30px;
    line-height: 30px;
    text-align: center;
    color: #fff;
    border: 0.5px solid #000;
    margin: -2px 10px 0 6px;
    border-radius: 50%;
    background-image: linear-gradient(45deg, #795548, #3E2723);
}

ul.ranking li div {
    width: calc(100% - 163px);
}

ul.ranking li span {
    width: 100px;
    line-height: 30px;
    text-align: center;
    color: #ffffff;
    margin: -2px 6px 0 10px;
    border-radius: 25px;
    background-image: linear-gradient(45deg, #795548, #3E2723);
}

ul.ranking li.p1, ul.ranking li.p2, ul.ranking li.p3 {
    display: inline-block;
    width: 100px;
    padding: 0;
    margin: 10px 5px;
    border-radius: 10px;
}

ul.ranking li.p1 b, ul.ranking li.p2 b, ul.ranking li.p3 b {
    position: absolute;
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: -20px 0 0 30px;
}

ul.ranking li.p1 div, ul.ranking li.p2 div, ul.ranking li.p3 div {
    width: 100%;
    margin: 35px 0 15px 0;
}

ul.ranking li.p1 span, ul.ranking li.p2 span, ul.ranking li.p3 span {
    margin: 0;
    border-radius: 10px;
}

ul.ranking li.p1 { margin: 0 0 0 110px; }
ul.ranking li.p1 div { height: 60px; }

ul.ranking li.p2 { margin: 0 110px 0 -208px; }
ul.ranking li.p2 div { height: 30px; }

ul.ranking li.p1 b svg {
    position: absolute;
    width: 25px;
    margin: -21px 0 0 -8px;
    filter: drop-shadow(1px 1px 1px #000000cc) drop-shadow(-1px -1px 1px #000000cc);
}

/*###########################
####### CONQUISTA #########
###########################*/

section#conquista div.lista ul {
    margin: 125px auto 15px auto;
    text-align: center;
}

section#conquista div.lista ul li {
    display: inline-block;
    width: 95px;
    margin: 10px;
    border-radius: 10px;
    border: 1px solid #3c3c3c;
    background-color: #00000066;
}

section#conquista div.lista ul li img {
    width: 100%; 
    opacity: 0.5;
}

section#conquista div.lista ul li small {
    position: absolute;
    width: 50px;
    padding: 6px;
    border: 1px solid #585858;
    border-radius: 5px;
    margin: 39px 0 0 -80px;
    background-color: #ffffffcc;
}

section#conquista p {
    display: block;
    width: 330px;
    line-height: 20px;
    font-size: 0.8rem;
    text-align: center;
    margin: 0 auto 50px auto;
    background-image: linear-gradient(45deg, transparent, #ffffff, transparent);
}

section#conquista div.lista ul li.ativo img { opacity: 1; }
section#conquista div.lista ul li.ativo small {
    width: 60px;
    margin: -1px 0 0 -59px;
    background-color: #FFC10799;
}

@media all and (min-width: 600px) {
  button.btFechar { margin: -40px 0 0 -20px; }
  .modal .tip { margin-top: 120px; }
  .modal-main small { margin-top: 80px; }
  .modal .over-button-b { height: 83px; }
}