@font-face{ font-family: 'FIANSO'; src: url('../fonts/prstartk.ttf'); } body{ margin: 0; padding: 0; font-family: sans-serif; background: #232323; user-select: none; } .background{ position: fixed; background: url(../img/background.png) no-repeat; background-size: cover; filter: blur(10px); height: 100%; width: 100%; z-index: -1; top: 0; opacity: 0.15; } .header{ text-align: center; } .header h1{ display: inline-block; font-size: 42px; padding-top: 30px; padding-bottom: 30px; color: #fff; font-family: 'FIANSO'; text-transform: uppercase; text-shadow: 0px 3px 2px rgba(0, 0, 0, 0.35); } .container{ max-width: 1140px; margin: auto; position: absolute; left: 0; right: 0; margin-left: auto; margin-right: auto; } .score{ position: absolute; right: 0px; top: 0px; text-align: right; padding-top: 20px; padding-right: 20px; } .score h3{ font-family: 'FIANSO'; font-size: 32px; color: #000; margin: inherit; padding-bottom: 8px; } .score h5{ font-family: 'FIANSO'; font-size: 24px; color: #000; margin: inherit; } .gameover{ text-align: center; position: absolute; width: 100%; height: 72.7%; top: 0px; padding-top: 150px; background: rgba(155, 0, 0, 0.85); box-shadow: inset 0px 0px 60px 0px rgba(0,0,0,0.75); display: none; z-index: 4; } .gameover h1{ font-family: 'FIANSO'; font-size: 64px; color: #fff; margin: inherit; padding-bottom: 60px; animation: pulse 3s infinite; } @keyframes pulse{ 0%{ transform: scale(1); } 50%{ transform: scale(1.15); } 100%{ transform: scale(1); } } .gameover h4{ font-family: 'FIANSO'; font-size: 18px; color: #fff; margin: inherit; padding-bottom: 100px; opacity: 0.8; } .gameover a{ font-family: 'FIANSO'; font-size: 18px; color: #fff; margin: inherit; text-align: center; border: solid 3px #fff; border-radius: 6px; padding: 12px 24px; text-decoration: none; transition: 0.3s; position: relative; z-index: 5; } .gameover a:hover{ background: #fff; color: #000; } .map{ text-align: center; background: url(../img/bg_sand.png) repeat; display: inline-block; padding-top: 7px; padding-bottom: 3px; overflow: hidden; width: 1140px; height: 540px; } .line{ display: inline-block; } .col{ height: 50px; width: 50px; border: solid 0px #000; display: inline-block; } .cible{ background: url(../img/bg_cible.png) no-repeat; } .cible-touchee{ background: url(../img/bg_cible_broken.png) no-repeat; animation: cibleBroken 0.3s 3; } .cible{ background: url(../img/bg_cible.png) no-repeat; } .cible-touchee{ background: url(../img/bg_cible_broken.png) no-repeat; animation: cibleBroken 0.3s 3; } @keyframes cibleBroken{ 0%{ opacity: 1; } 49%{ opacity: 1; } 50%{ opacity: 0; } 99%{ opacity: 0; } 100%{ opacity: 1; } } .startmenu{ text-align: center; position: relative; width: 100%; height: 100%; top: -7px; padding-top: 60px; background: rgba(0, 0, 0, 1); box-shadow: inset 0px 0px 60px 0px rgba(0,0,0,0.75); z-index: 10; overflow: hidden; } .startmenu h1{ font-family: 'FIANSO'; font-size: 64px; color: #fff; margin: inherit; padding-bottom: 40px; animation: pulse 3s infinite; } @keyframes pulse{ 0%{ transform: scale(1); } 50%{ transform: scale(1.15); } 100%{ transform: scale(1); } } .startmenu h4{ font-family: 'FIANSO'; font-size: 14px; color: #fff; margin: inherit; padding-bottom: 50px; opacity: 0.8; } .startmenu a{ font-family: 'FIANSO'; font-size: 18px; color: #fff; margin: inherit; text-align: center; border: solid 3px #fff; border-radius: 6px; padding: 12px 24px; text-decoration: none; transition: 0.3s; position: relative; z-index: 5; display: inline-block; margin-bottom: 15px; } .startmenu a:hover{ background: #fff; color: #000; } .startmenu .tank{ width: 50%; position: absolute; left: -45px; top: 85px; z-index: -1; filter: blur(3px); animation: tankPulse 3s infinite; } .startmenu .tuto{ max-width: 30%; margin-bottom: 15px; } @keyframes tankPulse{ 0%{ transform: rotate(0deg) scale(1); } 50%{ transform: rotate(-5deg) scale(1.1); } 100%{ transform: rotate(0deg) scale(1); } } .mute{ height: 64px; width: 64px; background: url(../img/mute.png) no-repeat; background-position: 0px 0px; position: absolute; left: 15; bottom: 15px; cursor: pointer; } .mute-off{ background-position: 0px -64px; } .copyright{ color: #fff; width: 100%; position: absolute; margin-top: 50px; text-align: center; margin-bottom: 30px; } .copyright ul{ margin: inherit; padding: inherit; padding-top: 10px; margin-top: 0px; padding-bottom: 10px; } .copyright ul li{ display: inline; } .copyright ul > li > a{ color: #fff; font-size: 12px; transition: 0.15s; } .copyright ul > li > a:hover{ color: green; } .volume{ position: absolute; left: 100px; bottom: 30px; } input[type=range] { -webkit-appearance: none; margin: 10px 0; width: 100%; opacity: 0.7; } input[type=range]:focus { outline: none; } input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 10px; cursor: pointer; animate: 0.2s; box-shadow: 0px 0px 0px #000000; background: #e7e7e7; border-radius: 0px; border: 0px solid #000000; } input[type=range]::-webkit-slider-thumb { box-shadow: 0px 0px 1px #000000; border: 0px solid #000000; height: 20px; width: 20px; border-radius: 50px; background: #FFFFFF; cursor: pointer; -webkit-appearance: none; margin-top: -5px; } input[type=range]:focus::-webkit-slider-runnable-track { background: #e7e7e7; } input[type=range]::-moz-range-track { width: 100%; height: 10px; cursor: pointer; animate: 0.2s; box-shadow: 0px 0px 0px #000000; background: #e7e7e7; border-radius: 0px; border: 0px solid #000000; } input[type=range]::-moz-range-thumb { box-shadow: 0px 0px 1px #000000; border: 0px solid #000000; height: 20px; width: 20px; border-radius: 50px; background: #FFFFFF; cursor: pointer; } input[type=range]::-ms-track { width: 100%; height: 10px; cursor: pointer; animate: 0.2s; background: transparent; border-color: transparent; color: transparent; } input[type=range]::-ms-fill-lower { background: #e7e7e7; border: 0px solid #000000; border-radius: 0px; box-shadow: 0px 0px 0px #000000; } input[type=range]::-ms-fill-upper { background: #e7e7e7; border: 0px solid #000000; border-radius: 0px; box-shadow: 0px 0px 0px #000000; } input[type=range]::-ms-thumb { box-shadow: 0px 0px 1px #000000; border: 0px solid #000000; height: 20px; width: 20px; border-radius: 50px; background: #FFFFFF; cursor: pointer; } input[type=range]:focus::-ms-fill-lower { background: #e7e7e7; } input[type=range]:focus::-ms-fill-upper { background: #e7e7e7; } @media (max-width: 1440px){ .map{ transform: scale(0.8); } .startmenu{ height: 490px; } .startmenu .tuto{ max-width: 40%; margin-bottom: 15px; } .startmenu h1{ font-size: 38px; padding-bottom: 30px; } .copyright{ color: #fff; width: 100%; position: absolute; margin-top: 0px; text-align: center; margin-bottom: 20px; } } @media (max-width: 1280px){ .header h1{ display: none; } }