
* {
  margin:0;
  padding:0;
  border:0;
  text-decoration:none;
}

html{
  height: 80%;
  box-sizing: border-box;
  margin-bottom:0;
}

body{
  font-family: 'Montserrat', sans-serif;
  color:gray;
  /* background-color:#1A1469; */
  height:100%;
  box-sizing: border-box;
}

/*! Generated by Font Squirrel (https://www.fontsquirrel.com) on March 26, 2019 */
@font-face {
    font-family: 'krunchbold';
    src: url('krunch_bold-webfont.woff2') format('woff2'),
         url('krunch_bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'krunchbold_italic';
    src: url('krunch_italic-webfont.woff2') format('woff2'),
         url('krunch_italic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

html, body{
  height:100%;
}

.kit-button{
    background-color: #808080;
    width:220px;
    border-radius:10px;
    color:black;
}

.kit-button > span{
    font-family: 'Montserrat', sans-serif !important;
}

#container-home-octamotor{
  background:
    radial-gradient(black 15%, transparent 16%) 0 0,
    radial-gradient(black 15%, transparent 16%) 8px 8px,
    radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
    radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px;
  background-color:#282828;
  background-size:16px 16px;
  height:100%;
  width:100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

.container-control{
  width:100%;
  height:40px;
  padding:4px;
  display:flex;
  flex-direction: row;
  flex-wrap:nowrap;
  box-sizing: border-box;
  margin-top:10px;
}

.container-driver-main{
  margin-bottom:120px;
  margin-top: -10px;
  width:100%;
  height:100%;
  display:flex;
  flex-direction: row;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

#container-driver-pictures{
  width:50%;
  height:90%;
  display:flex;
  flex-direction: column;
  flex-wrap: nowrap;
  box-sizing: border-box;
  padding-bottom:60px !important;
  margin-top:40px !important;
}

#container-driver-info{
  height:80%;
  width:50%;
  display:flex;
  flex-direction: column;
  flex-wrap: nowrap;
  box-sizing: border-box;
  background-color:black;
  border: gray 2px solid;
  filter: drop-shadow(10px 10px 4px black);
  box-shadow: 0 0 3pt 2pt black;
  border-radius:10px;
  padding:20px;
  margin: 40px 30px 100px 10px;
  overflow-y: auto;

}

#container-driver-info span{
  text-align:center;
  padding:5px;
  font-family: monospace;
  font-size: 1.2em;
  box-sizing: border-box;
  /* display:inline-block; */
}

p {
  text-indent:2em;
  font-family: monospace;
  text-align: justify;
  text-justify: inter-word;
  font-size:1.2em;
}

.driver-info-title{
  font-weight: 700;
}

#container-driver-profile-picture{
  height: 70%;
}

#track-image {
  height: 100%;
  width: 100%;
}

#container-driver-profile-1, #container-driver-profile-2{
  width:50%;
  height:90%;
  margin:0 20px 0 20px;
  display:flex;
  flex-direction: column;
}

#container-team-drivers{
  height: 100%;
  width:70%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}

#container-logo-suit{
  height: 100%;
  width:30%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

#container-track-image{
  position:relative;
  width:90%;
  height:90%;
  margin:30px;
  /* background-color:white;
  border-radius:10px;
  filter: drop-shadow(10px 10px 4px black);
    border: gray 2px solid; */
}

#container-driver-car-helmet{
  height: 30%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

#container-car-images{
  height: 40%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

#container-helmet{
  width:30%;
  height:80%;
  margin:3px;
}

html{
  padding-bottom:40px;
}

#container-logo{
  width:100%;
  height:30%;
  margin:3px;
  align-self: center;
}

#container-car{
  width:70%;
  height:90%;
  margin:3px;

}

.image-container{
  position: relative;
  display: inline-block;
  /* //overflow: hidden; */
  margin: 0;
}

.image{
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height:100%;
  max-width:100%;
  height:auto;
  width:auto;
  filter: drop-shadow(10px 10px 4px black);
}

#foca-logo, #octamotor-logo{
  height:50%;
  width:100%;
  display: block;
  background-blend-mode: multiply;
}

#top-bar, #bottom-bar{
  background-color: gray !important;
  color:black !important;
}

#top-bar span{
  color: darkgray !important;
}

#botaoVoltar {
  background-color: black !important;
}

.icon{
  color:black !important;
}

#bottom-bar a:visited{
  color:darkgray !important;
}

#bottom-bar a{
  color:darkgray !important;
}

#copyright-text::after{
  content: " and Zé D'Agostini";
}

.editor-button{
  border-radius:10px;
  border: 2px black solid;
  background-color: darkgray;
  color:black;
  text-align: center;
  width:calc(10% - 25px);
  font-size: 1.8em;
  font-family: monospace;
  height: 90%;
  font-weight: 700;
  text-align-last:center;
  box-shadow: 10px 10px 4px black;
  cursor:pointer;

}

#select-driver{
  cursor:pointer;
  width:100%;
  height: 90%;
  margin: 0 5px;
  font-size: 1.8em;
  font-family: monospace;
  background-color: black;
  border: 2px gray solid;
  box-shadow: 10px 10px 4px black;
  border-radius: 10px;
  color:gray;
  font-weight: 700;
  text-align-last:center;
}

#driver-viewer, #driver-editor{
  box-sizing: border-box;
  overflow:hidden;
  height:100%;
}

@keyframes fadeIn {
  from  { opacity: 0;
          visibility:none;
        height:0%}
  to { opacity: 1;
    visibility:visible;
  height:100%}
}

/* Fade-In Effect */
 .visible
 {

         /* visibility: visible; */
         /* animation: fadeIn 3s;
         animation-fill-mode: forwards;
         animation-delay: 2s; */
 }
 /* Fade-Out Effect */
 .hidden
 {
         display:none;

 }

 #current-level{
   width:25px;
   height:20px;
   font-weight: bold;
   margin-top:5px;
   filter: drop-shadow(5px 5px 2px black);
   border: 0.5px solid #808080;
   border-radius: 10px;
   display:flex;
   align-items: center;
   justify-content: center;
 }

#driver-name-bar{
  width:80%;
  height: 90%;
  margin: 0 5px;
  font-size: 1.8em;
  font-family: monospace;
  background-color: black;
  border: 2px gray solid;
  box-shadow: 10px 10px 4px black;
  border-radius: 10px;
  color:gray;
  font-weight: 700;
  text-align-last:center;
}

#select-driver:focus {
    outline: none !important;
    /* border:1px solid gray;
    box-shadow: 0 0 10px gray; */
}

#select-driver option{
  text-align: center;
  border-radius:10px;
}

#container-basic-form, #container-level-form, #container-image-form{
  width:33%;
  height: 100%;
  box-sizing:border-box;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#driver-photo, #driver-helmet, #car-picture, #car-logo, #track-image, #competition-logo, #car-suit{
  width: 0.1px;
  	height: 0.1px;
  	opacity: 0;
  	overflow: hidden;
  	position: absolute;
  	z-index: -1;
}

.picture-label{
  /* height:200px; */
  width:220px !important;
  line-height: 100%;
  display:inline-block;
  cursor:pointer;
  margin: 8px 0;
  font-size: 1em;
  border: gray 2px dashed;
  border-radius: 10px;
  background-color:black;
  box-shadow: 0 0 3pt 2pt black;
  padding:50px 0;

}

#driver-basic-form, #driver-level-form, #driver-image-form{
  box-sizing:border-box;
  width:100%;
}

#driver-level-form{
  display:flex;
  flex-direction:row;
  flex-wrap: nowrap;
}

.vertical{
  display:flex;
  flex-direction:column !important;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

#driver-level{
  transform:rotate(270deg);
  margin-top:100px !important;
  width:200px !important;
}

#save-driver{
  background-color:lawngreen;
  color:darkgreen;
  border: 2px solid darkgreen;
}

#cancel-driver{
  background-color:tomato;
  color:darkred;
  border: 2px solid darkred;
}

#driver-basic-form input,#driver-basic-form textArea, #driver-basic-form select, #driver-level-form input, #driver-image-form select{
  width: 100%;
  margin: 5px 10px;
  border-radius:10px;
  padding:10px;
  box-sizing:border-box;
  background-color:black;
  color:gray;
  border: gray 2px solid;
  box-shadow: 0 0 3pt 2pt black;
  filter: drop-shadow(5px 5px 2px black);
}

input[type=range] {
  -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
  width: 100%; /* Specific width is required for Firefox. */
  background: transparent; /* Otherwise white in Chrome */
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
}

input[type=range]:focus {
  outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: 1px solid #000000;
  height: 36px;
  width: 16px;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
  margin-top: -14px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; /* Add cool effects to your sliders! */
}

/* All the same stuff for Firefox */
input[type=range]::-moz-range-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid #000000;
  height: 36px;
  width: 16px;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  background: #404040;
  border-radius: 1.3px;
  border: 0.2px solid #010101;
}

input[type=range]:focus::-webkit-slider-runnable-track {
  background: #505050;
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  /* box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d; */
  /* background: #404040; */
  border-radius: 1.3px;
  /* border: 0.2px solid #010101; */
}

input[type=range]{
  width:60% !important;
}

#attribute-chart{
  height:250px;
  width:400px;
  overflow:hidden;
  filter: drop-shadow(5px 5px 2px black);
}

.plot-container{
  margin: 0 auto;
}

.form-group{
  display:flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}

.form-group label{
  width: 180px;
  text-align:center;
  font-weight: bold;
  filter: drop-shadow(5px 5px 2px black);
}


input[type=date]:invalid::-webkit-datetime-edit {
    color: #505050;
}

select:invalid {
  color: #505050 !important;
}

::-webkit-calendar-picker-indicator {
    filter: invert(1);
	cursor:pointer;
}

#driver-bio{
  height:100px;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #505050;
  opacity: 1; /* Firefox */
}

textArea{
	resize: none;
}

#driver-photo-preview, #driver-helmet-preview, #car-picture-preview, #track-image-preview, #competition-logo-preview{
  height:100%;
  /* width:100%; */
  max-width: 200px;
  max-height: 200px;
  border-radius:10px;
}

#car-picture-preview{
  width:100%;
}

#car-logo-preview{
  max-height: 100px;
  max-width:200px
  /* width:100%; */
  border-radius:10px;
}

#car-suit-preview{
  max-height: 200px;
  /* width:100%; */
  border-radius:10px;
}

label[for=track-image]{
  background-color: white !important;
}

.no-padding{
  padding: 0 !important;
}


.nav-item, .menu-toggle-button{
  color:black !important;
}

.nav-item:visited, .menu-toggle-button:visited{
    color:black !important;
}

.nav-item:hover, .menu-toggle-button:hover{
    color:#A9A9A9 !important;
    cursor:pointer !important;
}

.nav-item{
    background-color: #808080 !important;
}

nav{
  background-color: #808080 !important;
}

#logged-user{
  border-color:#A9A9A9 !important;
}

.invalid{
  border-color:darkred !important;
  background-color: lightcoral;
}

.invalid::after{
  content: "Imagem deve ser menor que 2Mb";
  position:relative;
  color: darkred;
  font-weight: bold;

}

.request_failure{
  border-color: darkred !important;
  background-color: lightcoral !important;
  color: darkred !important;
}

.request_success{
  border-color: darkgreen !important;
  background-color: palegreen !important;
  color: darkgreen !important;
}

#loadingDiv{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  height:100%;
  width:100%;
  z-index: 13;
  background-color: rgba(255,255,255,0.3);
}

#loadingDiv img{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  margin:auto;
  border-radius:20px;

}

[id^=container-driver-profile]{
  cursor:pointer;
}

#container-driver-profile-picture{
  cursor:auto;
}

#car-picture-display{
  max-width: 700px;
}

[id^=driver-profile-label]{
  padding-bottom:20px;
}

[id^=driver-profile-label]::after{
  position:absolute;
  bottom:15px;
  width:100%;
  background-color:gray;
  color:black;
  font-weight: bold;
  font-size:1.2em;
  height:40px;
  content: attr(data-after);
  z-index:5;
  text-align:center;
  line-height: 40px;
}

/* Alterações de slider para tracks */

#track-style::-webkit-slider-thumb, #track-rain-chance::-webkit-slider-thumb, #track-avg-temp::-webkit-slider-thumb {
  height: 60px !important;
  background: rgba(255,255,255,0.3) !important;
    border: 2px white solid !important;
    z-index:5;

}

/* All the same stuff for Firefox */
#track-style::-moz-range-thumb, #track-rain-chance::-moz-range-thumb, #track-avg-temp::-moz-range-thumb {
  /* height: 60px !important; */
  background: rgba(255,255,255,0) !important;
  border: 2px white solid !important;
  z-index:50;
}

#track-style::-webkit-slider-runnable-track, #track-rain-chance::-webkit-slider-runnable-track, #track-avg-temp::-webkit-slider-runnable-track {
  height: 30px !important;
    background: rgba(64,64,64,0) !important;
    z-index:5;
}

#track-style::-moz-range-track, #track-rain-chance::-moz-range-track, #track-avg-temp::-moz-range-track {
  height: 30px !important;
    background: rgba(64,64,64,0) !important;
    /* display: none; */
    z-index:50;
}



#track-style::after, #track-rain-chance::after, #track-avg-temp::after{
  content: attr(data-css);
  /* content: "teste"; */
  position: absolute;
  width: 100%;
  top: 15px;
  left: 50%;
  z-index: -1;
  font-size:1.5em;
  font-weight: bold;
  text-align:center;
  transform:translateX(-50%);
}

@-moz-document url-prefix() {
  .special-form-group::after {
    content: attr(data-css);
    /* content: "teste"; */
    position: absolute;
    width: 100%;
    top: 12px;
    right: -75px;
    z-index: -1;
    font-size:1.5em;
    font-weight: bold;
    text-align:center;
    font-family: inherit;
    /* transform:translateX(-50%); */
  }

  .special-form-group{
    position:relative;
    z-index: 0;
  }

  .moz-special{
    background-color:transparent !important;
  }


}

#track-about{
  height:200px;
}

#competition-about{
  height: 100px;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
  border-top-right-radius:10px;
  border-bottom-right-radius:10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#container-driver-info{
  scrollbar-color: #888 #f1f1f1 ;
  scrollbar-width: thin;
}


/*  Stamps */

.sem-contrato::before{
  position:absolute;
  width:130px;
  top:10;
  left:10;
  text-align:center;
  content: "Sem contrato";
  transform: rotate(-5deg);
	color: #0A9928;
	font-size: 1.5rem;
	font-weight: 700;
	border: 0.5rem solid #0A9928;
	display: block;
	padding: 0.25rem 1rem;
	text-transform: uppercase;
	border-radius: 0;
	font-family: 'Courier';
	-webkit-mask-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/8399/grunge.png');
  -webkit-mask-size: 944px 604px;
  /* mix-blend-mode: multiply; */
  -webkit-mask-position: 13rem 6rem;
}


.aposentado::before{
  position:absolute;
  width:140px;
  top:10;
  left:10;
  text-align:center;
  content: "Aposentado";
  transform: rotate(-5deg);
	color: blue;
	font-size: 1.5rem;
	font-weight: 700;
	border: 0.5rem solid blue;
	display: block;
	padding: 0.25rem 1rem;
	text-transform: uppercase;
	border-radius: 0;
	font-family: 'Courier';
	-webkit-mask-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/8399/grunge.png');
  -webkit-mask-size: 944px 604px;
  /* mix-blend-mode: multiply; */
  -webkit-mask-position: 13rem 6rem;
}

div[id^="container-competition"]{
  height:80%;
  width:33.3%;
  display:flex;
  flex-direction: column;
  flex-wrap: nowrap;
  box-sizing: border-box;
  background-color:black;
  border: gray 2px solid;
  filter: drop-shadow(10px 10px 4px black);
  box-shadow: 0 0 3pt 2pt black;
  border-radius:10px;
  padding:20px;
  margin: 40px 30px 100px 10px;
  overflow-y: auto;

}

#container-competition-seasons{
  padding:0;
}

#competition-logo-display{
  max-height:120px;
  position:relative;
}

#container-logo-competition{
  height:120px;
  margin-bottom:40px;
}

/* Accordion start */

[class*="accordion"] {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  transition: 0.4s;
  margin:0;
}

[class*="active"], [class*="accordion"]:hover {
  background-color: #ccc;
}

.panel {
  /* padding: 0 18px; */
  background-color: white;
  /* max-height: 0; */
  /* overflow: hidden; */
  /* transition: max-height 0.2s ease-out; */
  display:none;
}

.panel button{
  width:100%;
  box-sizing: border-box;

}

.accordion-race{
  background-color:white;
}

.accordion-race.active-race{
  background-color:darkgray;
}

.flag-thumb{
  max-height:10px;
}

/* Accordion end */

tr[data-position]{
  /* background-color:red !important; */
  filter: grayscale(1);
}

tr[data-position="1"]{
  /* background-color:red !important; */
  filter:hue-rotate(-13deg) saturate(90%) brightness(80%);
}

tr[data-position="2"]{
  /* background-color:red !important; */
  filter:hue-rotate(-60deg) saturate(0%) brightness(75%);
}

tr[data-position="3"]{
  /* background-color:red !important; */
  filter:hue-rotate(-30deg) saturate(61%) brightness(50%);
}


.wrong-input{
  border-color:darkred !important;
  background-color: lightcoral;
}

.correct-input{
  border-color:darkgreen !important;
  background-color: palegreen;
}


#container-drivers-logo-suit{
  width:100%;
  height: 60%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;

}

#container-suit{
  height: 70%;
  width:100%;
  margin:5px;
}

#container-car-full{
    width:100%;
    height: 100%;
}


#



/* Media queries */

@media only screen and (max-width: 600px) {
  .container-driver-main{
    display:flex;
    flex-direction:column;
    flex-wrap:nowrap;
    width:100%;
    height: auto;
    min-height: 100%;
    align-items: center;
    justify-content: center;

  }

  #container-driver-pictures{
    width:100%;
    display:flex;
    flex-direction:column;
    flex-wrap:nowrap;
    align-items: center;
    justify-content: center;
    padding-bottom:0px !important;

  }

  #container-driver-car-helmet{
    width:100%;
    height:200px;
    display:flex;
    flex-direction:column;
    flex-wrap:nowrap;
    align-items: center;
    justify-content: center;

  }

  .image{
    max-height: none;
  }

  #container-driver-profile-picture{
    width:300px;
    height:300px;
    margin-bottom:40px;
  }

  body{
    height: auto;
    width: auto;
  }

  #container-driver-info{
    width:95%;
    align-items: center;
    justify-content: center;
    margin:30px 0 0 0 ;
  }

}
