*, ::after, ::before {
	box-sizing:content-box;
}

body {
	color:#fff;
	font-size: 20px;
	background-image:url("../images/week-4-background.jpg");
	background-color: #08388A;
    font-family: 'Chelsea Market', cursive;
    background-size: 100vw 100vh;
    background-repeat: no-repeat;
    overflow-y: scroll;
    -webkit-transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out;
    -o-transition: opacity 1s ease-in-out;
    transition: opacity 1s ease-in-out;
}

.crystals {
    margin:0 auto;
    width:460px;
}

.crystals img {
	width:100px;
	height:100px;
    float:left;
 	margin-right: 15px;
}

.scoreboard {
	border:5px solid white;
	background:rgba(3,44,101,0.5);
	padding:15px;
	width:70%;
	margin: 0 auto 5%;
	border-radius:100px;
}

.crystals:after {
    content: '';
    display: block;
    clear: both;
}

button {
	border-radius: 25px;
	background-color: #041d60;
	color:#1965d3;
	border:0;
	font-size: 18px;
	padding:15px;
	transition:2s ease-out;
}

#total-score {
	margin-top: 15px;
	font-size: 30px;
}

#wins {
	display: inline-block;
    float: left;
    margin-left: 100px;
}

#wins, #losses {
	font-size: 25px;
}
.score {
	margin-top: 20px;
}

button:hover {
    background-color:#010d35;
}

h1 {
	font-size: 3.5rem;
	color:#fff;
	margin: 40px 0;
}

#number {
	font-size:3.5em;
	margin:10px 0 20px;
}

.container {
	max-width:960px;
	margin:4% auto 0;
	text-align: center;
}

footer {
	width:90%;
	margin:0 auto;
	text-align: center;
}

/* The Modal (background) */

#clickMe:hover {
    cursor: pointer;
}

#clickMe {
  margin:40px;
  -webkit-animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;}

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

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

#popup {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.4);
}

.popup-content {
    background: rgba(255,255,255,1);
    margin: auto;
    color: #333;
    padding: 70px;
    border-radius: 25px;
    width: 60%;
    position: relative;
}

.popup-content p {
	margin-bottom:35px;
	line-height: 30px;
}

.close {
    color: #aaaaaa;
    top:20px;
    right:35px;
    position: absolute;
    font-size: 70px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 960px) {

h1 {
	 font-size: 3rem;
}

.crystals {
	width:360px;
	margin: 0 auto;
	display: block;
	position: relative;
}

.crystals img {
	width:80px;
	height:80px;
 	margin-right: 10px;
}

body {
	background-size: 100vw 100vh;
	height:100%;
	background-image:url("../images/week-4-background.jpg") !important; 
}
} 
