@import url(font/beaufort.css);

::-webkit-input-placeholder { /* Edge */
	color: #4e4529;
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
	color: #4e4529;
}

::placeholder {
	color: #4e4529;
}

.guess-board input, 
.guess-board button,
.start-window button,
.pause-window button { 
	font-family: Beaufort, BeaufortW01-Regular, Arial, sans-serif;
	font-size: 1.5em;
}

body {
	background-color: grey;
	margin: 0;
	font-family: Beaufort, BeaufortW01-Regular, Arial, sans-serif;
}

h1 {
	font-size: 3rem;
	margin: 0 0 20px 0;
}
.start-window h1 {
	font-size: 2.2rem;
	margin-top: 5px;
}

.skarner {
	overflow: hidden;
}

.hide {
	display: none;
}

.overlayer {
	position: fixed;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 1;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.overlayer.extra {
	background-color: rgba(0, 0, 0, 0.95);
}

.top,
.friend-top {
	position: fixed;
	z-index: 1;
	top: 0;
	right: 0;
	padding: 5px 12px 5px 30px;
	color: #fff;
	background: rgb(12,29,40);
	background: linear-gradient(270deg, rgba(12,29,40,1) 50%, rgba(0,0,0,0) 100%);
	border-bottom: 1px solid rgba(12,29,40,0.3);
	text-align: right;
}

.top div,
.friend-top div {
	display: inline-block;
}

.top .guess-left,
.friend-top .friend-guess-left {
	margin-right: 15px;
}

.top.push {
	top: 26px;
}

.friend-top {
	color: #ddc476;
}

.guess-board,
.start-window,
.pause-window,
.win-window {
	position: fixed;
	z-index: 1;
	color: #fff;
	width: 90%;
	/*max-width: 403px;*/
	max-width: 450px;
	text-align: center;
	left: 0;
	right: 0;
	margin: auto;
	padding: 15px;
	box-sizing: border-box;
}

.start-window,
.pause-window,
.win-window {
	top: 50%;
	transform: translate(0%, -50%);
	max-width: 500px;
}

.start-window p.big,
.win-window p.big {
	margin-top: 0;
	font-size: 1.5em;
}

.sub {
	margin-bottom: 8px;
}

.sub.friend {
	color: #ddc476;
	margin-bottom: 10px;
	margin-top: -7px;
}

.start-window p,
.pause-window p,
.win-window p {
	font-size: 1.3em;
}

.start-window .outside {
	position: absolute;
	top: 105%;
	left: 0;
	right: 0;
	letter-spacing: 0.5px;
}

.win-window,
.pause-window {
	display: none;
}

.pause-window a {
	text-decoration: none;
	color: #fff;
	border-bottom: 1px dashed #fff;
	margin: 10px 15px;
	display: inline-block;
	transition: all .3s;
}
.pause-window a:hover {
	color: #ffe8a0;
	border-color: #ffe8a0;
}


.beatme-link {
	background-color: #ddc476;
	padding: 7px 9px;
	display: inline-block;
	border-radius: 5px;
	cursor: pointer;
	margin-bottom: 5px;
	border: 2px solid #ddc476;
	color: #0d1d28;
	word-break: break-all;
}

.beatme-link:hover {
	background-color: #0d1d28;
	color: #ddc476;
}

.beatme-link-confirm {
	position: absolute;
	left: 0;
	right: 0;
	background: #ddc476;
	color: #0d1d28;
	width: 100px;
	margin: auto;
	border-radius: 5px;
	padding: 5px 0px;
	text-align: center;
	transition: all 0.3s;
	opacity: 0;
	bottom: -20px;
}

.beatme-link-confirm.animated {
	opacity: 1;
	bottom: -10px;
}

.guess-bg-front {
	background-color: #0c1d28;
	border: 2px solid #ddc476;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: -1;
	transition: all .1s;
}

.guess-bg-back-top,
.guess-bg-back-bottom {
	width: 100%;
	height: 100px;
	position: absolute;
	z-index: -2;
	margin: auto;
	left: 0;
	right: 0;
}

.guess-bg-back-top {
	top: -5px;
}

.guess-bg-back-bottom {
	bottom: -5px;
}

.guess-bg-back-top:after,
.guess-bg-back-top:before,
.guess-bg-back-bottom:after,
.guess-bg-back-bottom:before {
	content: "";
	width: 100%;
	height: 0;
	position: absolute;
	left: 0;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	box-sizing: border-box;
}

.guess-bg-back-top:before {
	top: 0;
	border-bottom: 20px solid #ddc476;
}

.guess-bg-back-top:after {
	top: 1px;
	border-bottom: 20px solid #0c1d28;
}

.guess-bg-back-bottom:before {
	bottom: 0;
	border-top: 20px solid #ddc476;
}

.guess-bg-back-bottom:after {
	bottom: 1px;
	border-top: 20px solid #0c1d28;
}

.guess-board.correct .guess-bg-front,
.guess-board.correct button,
.guess-board.correct button:focus,
.guess-board.correct input,
.guess-board.correct input:focus {
	border-color: #23a54b;
	transition: border .1s;
	color: #23a54b;
}

.guess-board.correct .guess-left {
	border-color: #23a54b;
}

.guess-board.correct .guess-bg-back-top:before,
.guess-board.correct .guess-bg-back-bottom:before {
	border-top-color: #23a54b;
	border-bottom-color: #23a54b;
}

.guess-board.not-correct .guess-bg-front,
.guess-board.not-correct button,
.guess-board.not-correct button:focus,
.guess-board.not-correct input,
.guess-board.not-correct input:focus {
	border-color: red;
	transition: border .1s;
	color: red;
}

.guess-board.not-correct .guess-left {
	border-color: red;
}

.guess-board.not-correct .guess-bg-back-top:before,
.guess-board.not-correct .guess-bg-back-bottom:before {
	border-top-color: red;
	border-bottom-color: red;
}

.guess-board input, 
.guess-board button,
.start-window button,
.pause-window button { 
	margin: 0 auto;
	/*padding: 8px 7px 7px 7px;*/
	border: 2px solid #ddc476;
	outline: none;
	text-transform: capitalize;
	color: #dacca1;
	text-align: center;
	box-sizing: border-box;
	box-shadow: inset 0 0 5px #000;
	background: #1e2328;
	/*background: linear-gradient(0deg, rgba(55,41,24,1) 0%, rgba(106,76,39,1) 100%);*/
	background: linear-gradient(0deg, rgba(59,54,40,1) 0%, rgba(30,35,41,1) 30%);
	background-size: 100% 150px;
	/*background-position: 0 0;*/
    height: 39px;
}

.guess-board input { 
	background: #00060a;
	border-width: 1px;
	background: rgb(23,33,41);
	background: linear-gradient(0deg, rgba(23,33,41,1) 0%, rgba(6,18,29,1) 20%, rgba(0,0,0,1) 100%);
    transition: all .2s;
	background-size: 100% 100px;
	width: 250px;
}
.guess-board input:focus { 
	background-position: 0 -60px;
	border-color: #ffe8a0;
}

.guess-board button,
.start-window button,
.pause-window button { 
	text-transform: uppercase;
	padding-right: 20px;
	padding-left: 20px;
	vertical-align: top;
    margin-left: 4px;
    cursor: pointer;
    transition: all .2s;
}

.guess-board button:hover, 
.guess-board button:focus,
.start-window button:hover,
.start-window button:focus,
.pause-window button:hover, 
.pause-window button:focus { 
	border-color: #ffe8a0;
	background-position: 0 -110px;
	box-shadow: 0 0 4px #dacca1;
	/*text-shadow: 0 0 4px #dacca1;*/
}

.start-window button {
	margin-top: 10px;
}

.guess-time {
	font-size: 1.2em;
	font-weight: bold;
	position: absolute;
	top: -29px;
	left: 0;
	right: 0;
	margin: auto;

	background: #0c1f28;
	width: 70px;
	border: 2px solid #dec475;
	padding: 5px 0;
}

.info {
	position: relative;
	display: inline-block;
	vertical-align: top;
	margin: 4px 15px 0 7px;
}

.info .mark:hover ~ .tool,
.info .mark:focus ~ .tool {
	opacity: 1;
	z-index: 3;
}

.info .mark {
	position: absolute;
	top: 0;
	left: 0;
	padding: 6px 11px;
	z-index: 2;
	cursor: pointer;
}

.info .tool {
	position: absolute;
	border: 2px solid #ddc476;
	background-color: #0c1d28;
	top: -50px;
	left: -240px;
	padding: 6px 10px;
	z-index: -1;
	font-size: 1.1em;
	letter-spacing: 0.5px;
	width: 270px;
	transition: all .2s;
	opacity: 0;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.7);
}

.info:hover:after {
	border-top-color: #ffe8a0;
}

.info:hover:before {
	border-bottom-color: #ffe8a0;
}

.info:after,
.info:before {
	width: 0;
	height: 0;
	border: 15px solid transparent;
	position: absolute;
	content: '';
	left: 0;
}

.info:before {
	top: -15px;
	border-bottom-color: #ddc476;
}

.info:after {
	top: 15px;
	border-top-color: #ddc476;
}

.info-bg {
	position: absolute;
	top: 2px;
	left: 2px;
	z-index: 1;
}

.info-bg:after,
.info-bg:before {
	width: 0;
	height: 0;
	border: 13px solid transparent;
	position: absolute;
	content: '';
	left: 0;
}

.info-bg:before {
	top: -13px;
	border-bottom-color: #0c1d28;
}
.info-bg:after {
	top: 13px;
	border-top-color: #0c1d28;
}

.friend-score {
	font-size: 1.4rem;
	color: #d9c175;
	margin-top: -10px;
}

.portrait {
	background-size: cover;
	display: inline-block;
	position: relative;
	width: 25%; /* 4 */
	width: 20%; /* 5 */
	width: 16.66666666666667%; /* 6 */
	width: 14.28571428571429%; /* 7 */
	padding-bottom: 45.45454545454545%; /* 4 */
	padding-bottom: 36.36363636363636%; /* 5 */
	padding-bottom: 30.3030303030303%; /* 6 */
	padding-bottom: 25.97402597402597%; /* 7 */
	opacity: .5;
	cursor: pointer;
	transition: all .3s;
	margin: 0 0 -4px 0;
}

.portrait.hardmode .cover {
	background-image: url('unknown.jpg');
	background-size: cover;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.portrait:hover {
	opacity: 1;
}

.portrait.solved {
	opacity: 1;
	animation: glow .5s ease-in-out;
}

@keyframes glow {
	0%, 100% {
		box-shadow: inset 0 0 0 #23a54b;;
	}
	50% {
		box-shadow: inset 0 0 40px #23a54b;
	}
}

@media(max-width: 2200px) {
	.portrait {
		width: 12.5%; /* 8 */
		padding-bottom: 22.72727272727273%; /* 8 */
	}
}

@media(max-width: 1800px) {
	.portrait {
		width: 14.28571428571429%; /* 7 */
		padding-bottom: 25.97402597402597%; /* 7 */
	}
}

@media(max-width: 1300px) {
	.portrait {
		width: 16.66666666666667%; /* 6 */
		padding-bottom: 30.3030303030303%; /* 6 */
	}
}

@media(max-width: 1000px) {
	.portrait {
		width: 20%; /* 5 */
		padding-bottom: 36.36363636363636%; /* 5 */
	}
}

@media(max-width: 750px) {
	.portrait {
		width: 25%; /* 4 */
		padding-bottom: 45.45454545454545%; /* 4 */

	}
}

@media(max-width: 500px) {
	.portrait {
		width: 33.33333333333333%; /* 3 */
		padding-bottom: 60.606060606060615%; /* 3 */

	}
}

@media(max-width: 320px) {
	.portrait {
		width: 50%; /* 2 */
		padding-bottom: 90.90909090909091%; /* 2 */
	}
}

@media(max-width: 460px) {
	body {
		padding-bottom: 190px;
	}

	.guess-board {
		bottom: 20px;
	}

	.guess-board input {
		display: block;
		margin-bottom: 10px;
		width: 100%;
	}

	.info .tool {
		left: -200px;
		top: 20px;
	}
}

.guess-board {
	bottom: -200px;
	transition: all 1s ease;
}

.fadeOut {
	transition: opacity 0.5s;
	opacity: 0;
}

.fadeIn {
	transition: opacity 0.5s;
	opacity: 1;
}

footer {
	display: block;
	text-align: right;
	padding: 15px;
	background: #525252;
	color: #fff;
	margin-top: 1px;
}

/*
Formula:
(20/11) / X(this is nr of colums)
*/
