@font-face {
	font-family: 'codropsicons';
	font-weight: normal;
	font-style: normal;
	src: url('../fonts/codropsicons/codropsicons.eot');
	src: url('../fonts/codropsicons/codropsicons.eot?#iefix') format('embedded-opentype'), url('../fonts/codropsicons/codropsicons.woff') format('woff'), url('../fonts/codropsicons/codropsicons.ttf') format('truetype'), url('../fonts/codropsicons/codropsicons.svg#codropsicons') format('svg');
}

*,
*::after,
*::before {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

body {
	font-family: 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	margin: 0;
	color: #444;
	background: #f6f6f6;
}

a {
	text-decoration: none;
	color: #d1b790;
	outline: none;
}

a:hover,
a:focus {
	color: #bba077;
	outline: none;
}


/* Top Navigation Style */

.meta {
	font-size: 0.75em;
	line-height: 1;
	position: fixed;
	top: 1em;
	left: 1em;
	right:1em;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
}

.meta a {
	display: block;
	padding: 1em 1.35em;
	position: relative;
}

.meta a:not(:last-child) {
	border-right: 0;
}

.codrops-icon {
	width: 4em;
}

.codrops-icon span {
	display: none;
}

.codrops-icon::before {
    -webkit-mask-size: cover;
    mask-size: cover;
    width: 2em;
    height: 2em;
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    z-index: 3;
    transition: all 1s ease-in-out;
}

.codrops-icon--drop::before {
	-webkit-mask-image: url(../img/dmag-logo.svg);
    mask-image: url(../img/dmag-logo.svg);
	background-color: #d1b790;
}

.codrops-icon::before:hover {
	background-color: #bba077;
}

/* Demo links */

.demo-link {
	font-family: 'Playfair Display';
	font-weight: bold;
	text-align: right;
	-webkit-flex: 1;
	flex: 1;

}

.demo-link--current {
	color: #bba077;
}

@media screen and (max-width:40em) {

	.meta {
		right: 1em;
	}
	.demo-link {
		-webkit-flex: 1;
		flex: 1;
	}
}

/* Styles for sponsor */
body #cdawrap { top: auto; right: auto; bottom: 12px; left: 12px; border: 1px solid #d1b790; background: none; }
.partisan { position: fixed; bottom: 0; left: 0; width: 38em; padding: 4.5em 7.5em 1.5em 5.5em; }
.partisan__bg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.5; }
.partisan__link { position: relative; display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center; -webkit-align-items: center; align-items: center; }
.partisan__img, .partisan__title { opacity: 0.85; -webkit-transition: opacity 0.1s; transition: opacity 0.1s; }
.partisan__link:hover .partisan__img, .partisan__link:hover .partisan__title { opacity: 1; }
.partisan__img { max-width: 42%; margin: -6em -1em -2em 1em;}
.partisan__title { font-family: 'Playfair Display'; font-weight: bold; position: relative; margin: 0.5em 0 0 0.85em; color: #555d27; }
.partisan__title::before { content: 'Modell&Makett'; font-size: 0.5em; font-weight: bold; position: absolute; bottom: 100%; left: 0; padding: 0 0 0.5em 0; letter-spacing: 0.25em; text-transform: uppercase; color: #95a534; }
@media screen and (max-width:80em) {
	.partisan { font-size: 76%; }
	.partisan__title::before { font-size: 0.25em; }
}
@media screen and (max-width:60em) {
	.game-holder .message--instructions { bottom: 5.5em; }
	.partisan { width: 100%; height: auto; padding: 1.75em 0.5em 0.5em; text-align: center; background: rgba(190, 215, 48, 0.5); }
	.partisan__bg { display: none; }
	.partisan__img { display: none; }
	.partisan__title { margin: 0; }
	.partisan__title::before { width: 100%; padding: 0 0 0.25em; }
}

@media screen and (max-width:40em) {
.meta .demo-link {
line-height:1.4;}
}

.stat_cont ul {
    padding: 0;
    margin: 0;
}

.stat_cont ul li {
	list-style-type: none;
    text-align: left;
    padding: 0.2em 0;
    border-bottom: 1px solid #444444;
}

.stat_cont .stat_lst_pos {
	    font-family: 'Playfair Display';
    font-size: 1.6em;
    line-height: 1;
    letter-spacing: -0.025em;
    color: #c7e78f;
    background: #444444;
    margin: 0;
    padding: 0 0.5em;
    font-weight: 900;
}

.stat_cont .stat_lst_score {
	font-family: 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.81em;
    line-height: 1;
    letter-spacing: 0em;
    color: #ffffff;
    border-right: 1px solid #444444;
    margin: 0 0.5em 0 0;
    padding: 0 1em;
    font-weight: 100;
    display: inline-block;
    position: relative;
    text-align: center;
}

.stat_cont .stat_lst_nev {
	font-family: 'Playfair Display';
    font-size: 1.2em;
    line-height: 0;
    letter-spacing: -0.025em;
    color: #c7e78f;
    margin: 0 0 0 0.5em;
    padding: 0;
    font-weight: 100;
    font-style: italic;
}

.stat_cont .stat_lst_datum {
	font-family: 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.81em;
    line-height: 0;
    letter-spacing: 0em;
    margin: 0 0.5em 0 0;
    padding: 0 0.5em;
    font-weight: 100;
    display: inline-block;
    position: relative;
    width: 100%;
    text-align: right;
}


form .close, 
.stat_cont .close {
	    margin: -0.7em -1.8em;
    display: block;
    float: right;
    right: 0;
    padding: 0.5em;
}

form .close span,
.stat_cont .close span {
        padding: 0.5em;
    color: #df9379;
    font-size: 0.7em;
    font-weight: 900;
	cursor:pointer;
}

.stat_cont,
form {
	position: absolute;
    z-index: 3;
    background-color: #4e4c46eb;
    width: 40%;
    min-width: 20em;
    max-width: 30em;
    left: 50%;
    top: 50%;
    padding: 1em 2em 4em;
    transform: translate(-50%, -50%);
    text-align: center;
    vertical-align: baseline;

}

.stat_cont {
    left: 50%;
    top:0;
	margin: 1em 0;
    padding: 1em 2em 4em;
    transform: translateX(-50%);
}

.stat_cont h2,
form h2 {
	font-family: 'Playfair Display';
    font-size: 3.3em;
    line-height: 1;
    letter-spacing: -0.025em;
    color: #d1b790;
    margin: 0.5em;
}

form h2 span {
    font-family: 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-align: center;
    font-size: 24%;
    display: block;
    color: white;
    letter-spacing: 0.2em;
    font-style: italic;
    margin-top: 1em;
    font-weight: 100;
}

form h2 span strong{
    font-family: 'Playfair Display';
	letter-spacing: -0.025em;
}

@-webkit-keyframes autofill {
    0%,100% {
        color: var(--gray-mid);
        background: transparent;
    }
}

input:-webkit-autofill {
    -webkit-animation-delay: 1s; /* Safari support - any positive time runs instantly */
    -webkit-animation-name: autofill;
    -webkit-animation-fill-mode: both;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active  {
	  border: none;
	  -webkit-text-fill-color: #FFF !important;
	  -webkit-box-shadow: 0 0 0 30px #4e4c46eb inset !important;
	  -moz-box-shadow: 0 0 0 30px #4e4c46eb inset !important;
	  box-shadow:0 0 0 30px #4e4c46eb inset !important;
	  transition: background-color 5000s ease-in-out 0s;
}

input:-webkit-autofill {
    -webkit-text-fill-color: #FFF !important;
	text-size-adjust: inherit;
}

input:-internal-autofill-selected {
    appearance: menulist-button;
    background-color: transparent !important;
    background-image: none !important;
    color: -internal-light-dark(black, white) !important;
}

input[type=text]::-ms-clear {  display: none; width : 0; height: 0; }
input[type=text]::-ms-reveal {  display: none; width : 0; height: 0; }

/* clears the 'X' from Chrome */
input[type="text"]::-webkit-search-decoration,
input[type="text"]::-webkit-search-cancel-button,
input[type="text"]::-webkit-search-results-button,
input[type="text"]::-webkit-search-results-decoration { display: none; }

.off {display:none;}


input {
	font-family: 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: block;
    width: 75%;
    font-size: 1.5em;
    background-color: transparent;
    border: none;
    margin: 0.5em auto;
    padding: 0.5em;
    color: #ffffff;
    border-bottom: 0.2em dotted #a58c65;
	outline: none;	
}

.butt {
	font-family: 'Playfair Display';
	background-color: #d6483b;
    font-weight: 800;
    border-bottom: 0.2em solid #00000045;
    cursor: pointer;
	border-radius: 50px;
	margin-top: 2em;

}

@media screen and (max-width:60em) {

.stat_cont h2, form h2 {
	font-size: 2em;
	margin:0.5em 0.5em 1em;
}

}