@font-face {
    font-family: "PWChristmas";
	src: url("/media/PWChristmasfont.ttf");
	
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: large;
}

body {
    background: darkblue url(./../media/forest.jpg) no-repeat;
	background-size: cover;
    background-position: 50% 50%;
    overflow: hidden;
	position: fixed;
}

small {
    font-size: 0.95em;
}

header, #container_wrapper {
	width: 100vw;
	display: flex;
    justify-content: center;
    align-items: center;
	padding-top: 40px;
}

header div {
    background: whitesmoke;
    color: black;
    font-size: x-large;
    font-weight: bold;
    height: 100px;
    width: 50vw;
	min-width: 15em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 24px #999;
    border-radius: 10px;
}

/*
========================================================
MODAL
========================================================
*/
div.md-content img {
    max-width: 100%;
    max-height: 250px;
    margin-bottom: 10px;
}

div.md-content ol {
  list-style-position: outside;
  padding-left: 40px;
}

div.md-content ol li {
  margin-left: 20px;
}

div.md-content div.images {
    overflow: hidden;
}

div.md-content div.center * {
    max-height: 300px;
    margin: 0 10px;
}

#modal-07 div.center img {
    max-width: 275px;
}

#modal-07 div.center video {
    max-height: 250px;
}

#modal-start button {
	border: none;
	padding: 0.6em 1.2em;
	background: #fff;
	color: #222;
	font-family: 'Lato', Calibri, Arial, sans-serif;
	font-size: 1em;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	display: inline-block;
	margin: 3px 2px;
	border-radius: 2px;
}
    
#modal-start button:hover {
	background: #ddd;
}

#modal-start button.md-close {
    margin-top: 20px;
}

div.md-alert .md-content {
    background-color: tomato;
}

div.md-alert .md-content img.icon {
    position: absolute;
    height: 80px;
    top: 3px;
}

img.pulse {
    transform: scale(1);
    animation: pulse 2s infinite;
}

div.md-alert #modal-start button.md-close {
    margin-top: 20px;
}

div.md-alert input {
    width: 85%;
    color: #222;
    border: 0;
    border-radius: 10px;
    padding: 7px 5px;
    text-align: center;
    margin-top: 10px;
    box-shadow: inset 0 0 10px #bbb;
}

div.md-alert .md-content img.santa {
    display: none;
    position: absolute;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

/* Chrome, Safari, Edge, Opera */
div.md-alert input::-webkit-outer-spin-button,
div.md-alert input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
div.md-alert input[type=number] {
  -moz-appearance: textfield;
}

div.md-alert button.md-close.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    
    20% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

/*
========================================================
MAIN CONTENT
========================================================
*/
#container_wrapper {
    margin-top: 40px;
    margin-left: 50%;
    perspective: 1000px;
    width: 50vw;
    min-width: 20em;
    height: 380px;
    transform: translateX(-50%);
    transition: 1s;
}

#container {
    position: relative;
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
    color: black;
    background: whitesmoke;
    box-shadow: 0 0 24px #999;
    border-radius: 10px;
    text-align: center;
}

#container.wrong {
    animation: shake 1s;
}

@keyframes shake {
    0% { transform: translate(0, 0); background-color: whitesmoke; }
    10% { transform: translate(-5px, 0); background-color: rgb(255, 75, 80); }
    20% { transform: translate(5px, 0); background-color: whitesmoke; }
    30% { transform: translate(-5px, 0); }
    40% { transform: translate(5px, 0);  background-color: rgb(255, 75, 80);}
    50% { transform: translate(-5px, 0);  background-color: whitesmoke;}
    60% { transform: translate(0, 0); }
    100% { transform: translate(0, 0); }
}

#container.solved {
    animation: rotate 4s cubic-bezier(0.3, 1, 0.3, 1) forwards;
}

#container.solved form#check_answer {
    background-color: #58e7587a;
}

@keyframes rotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(900deg); }
}

form#check_answer,
div#result {
    backface-visibility: hidden;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    padding: 40px 30px;
}

div#result {
    transform: rotateY(180deg);
}

div#result p {
    margin-bottom: 20px;;
}

div#result p:last-of-type {
    margin-bottom: 15px;
}

span#result_number {
    display: none;
    font-size: xxx-large;
    font-weight: bold;
}

.title {
    font-size: x-large;
    font-weight: bold;
    margin-bottom: 35px;
}

#container input {
    font-size: large;
    padding: 5px;
    margin: 35px 0;
    width: 30%;
    min-width: 150px;
    height: 45px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    transition: 1s;
}

#container button {
	border: none;
	padding: 0.6em 1.2em;
	background: #5789bd6b;
	color: #222;
	font-family: 'Lato', Calibri, Arial, sans-serif;
	font-size: 1em;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	display: inline-block;
	margin: 3px 2px;
	border-radius: 2px;
    height: 45px;
}

#container button:hover {
	background: #ddd;
}

#container button.loading {
    pointer-events: none;
    background: #ddd;
}

#container button.loading::before,
#container button.loading::after {
    content: '⏳';
    display: inline-block;
    margin: 0 10px;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(180deg); }
    50% { transform: rotate(180deg); }
    65% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
}

/* 
========================================================
OTHER
========================================================
*/
#santa1 {
    position: fixed;
    top: 145px;
    left: 100vw;
    width: 200px;
    height: auto;
    z-index: 10;
    transition-timing-function: linear;
}

#santa2 {
    position: fixed;
    top: 575px;
    right: calc(100vw + 300px);
    width: 200px;
    height: auto;
    transform: rotateY(180deg);
    z-index: 10;
    transition-timing-function: linear;
}

#santa_text {
    position: fixed;
    top: 365px;
    right: calc(100vw + 300px + 20em);
    z-index: 10;
    transform: translateX(-50%);
    transition-timing-function: linear;
    padding: 27px;
    text-align: center;
    font-style: italic;
}

#santa_text {
    width: 50vw;
}

@media screen and (max-width: 600px) {
    #santa_text {
        width: 100vw;
        transform: unset;
    }
}