* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  background: green;
  font-family: Arial;
}

body {
	/* No highlight on text */
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Chrome/Safari/Opera */
  -khtml-user-select: none;    /* Konqueror */
  -moz-user-select: none;      /* Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently not supported by any browser */
}

h1, h2, h3 {
	text-align: center;
}

h1 {
	font-size: 3vw;
}

h2 {
	font-size: 2vw;
}

h3 {
	font-size: 2vw;
}

h4 {
	font-size: 2vw;
	color: yellow;
	margin: 1vw;
}

i {
	margin: 0.5vw;
}

#rpsPic{
	display: center;
	
}

img {
  float: center;	
  display: block;
  margin: 2vw auto;
  max-width: 100%;
  height: auto;

}

p {
	font-size: 1vw;
}

#addName, #addMessage {
	background: white;
	border: 1px solid black;
	border-radius: 0.5vw;
}

#message-input {
	width: 93%;
}

#name-input, #message-input {
	border: 1px solid black;
	border-radius: 0.25vw;
}

#name-input, #addName {
	font-size: 2vw;
	padding: 0.5vw;
}

#message-input, #addMessage {
	font-size: 1vw;
	padding: 0.25vw;
}

#addMessage {
	border-radius: 0.25vw;
	width: 6%;
	float: right;
	background: #2fadfc;
}

#messages {
	width: 100%;
	height: 10vw;
	margin: 0.5vw 0;
	overflow-y: auto;
}

#messages > p {
	padding: 0.25vw 0;
}

.wrapper {
	position: relative;
	width: 100%;
	height: 100%;
}

.greeting {
	position: relative;
	margin: 1vw;
	text-align: center;
	color: white;
}

.holder-box, .holder-messages {
	position: relative;
	width: 61vw;
	height: 15vw;
	margin: 2vw auto;
}

.holder-messages {
	padding: 1vw;
	background: white;
	border: 1px solid black;
	border-radius: 2vw;
}

.waiting {
	position: relative;
}

.score {
	position: absolute;
	bottom: 0.5vw;
	height: 2vw;
	width: 96%;
}

.box {
	position: relative;
	float: left;
	width: 30vw;
	height: 100%;
	border: 1px solid black;
	padding: 1%;
	text-align: center;
	background: white;
	border-radius: 2vw;
}

.player1 {
	margin-right: 1vw;
}

.results {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 3vw 0;
	font-size: 9vw;
	color: red;
	text-shadow: 1px 1px black;
	z-index: -1;
	text-align: center;
}

.fa-rotate-270-flip-horizontal  {
  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3, mirror=1)";
  -webkit-transform: rotate(270deg) scale(-1, 1);
  -ms-transform: rotate(270deg) scale(-1, 1);
  transform: rotate(270deg) scale(-1, 1);
}

.fa-three-small {
	font-size: 7vw;
}

.fa-one-large {
	font-size: 9vw;
}

.brown {
	color: brown;
}

.float-left {
	float: left;
	margin-left: 20%;
}

.float-right {
	float: right;
	margin-right: 20%;
}

/* Choice1 animation */

.position-absolute-choice1 {
	position: absolute;
	right: 10vw;
}

@keyframes moveRight {
  
  to {
   right: 0;
  }

}

.animation-choice1 {
  animation-name: moveRight;
  animation-duration: 0.25s; 
  animation-timing-function: ease-out; 
  animation-delay: 0.75s;
  animation-direction: normal; 
}

.choice1-end {
  right: 0;
}

/* Choice2 animation */

.position-absolute-choice2 {
	position: absolute;
	left: 10vw;
}

@keyframes moveLeft {
  
  to {
   left: 0;
  }

}

.animation-choice2 {
  animation-name: moveLeft;
  animation-duration: 0.25s; 
  animation-timing-function: ease-out; 
  animation-delay: 0.75s;
  animation-direction: normal; 
}

.choice2-end {
  left: 0;
}

/* Scroll Bar */
::-webkit-scrollbar {
    width: 12px;
}
 
/* Track */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    -webkit-border-radius: 10px;
    border-radius: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(47,173,252,0.8); 
    -webkit-box-shadow: inset 0 0 6px rgba(47,173,252,0.5); 
}
::-webkit-scrollbar-thumb:window-inactive {
	background: rgba(47,173,252,0.4); 
}

/* Media queries for mobile and tablet*/
@media screen and (max-width: 780px) and (orientation: portrait) {
	
	i {
		margin: 0.5vw;
	}

	img {
		max-height: 20vw;
	}

	h1 {
		font-size: 5vw;
	}

	h2 {
		font-size: 4vw;
	}

	h3 {
		font-size: 6vw;
	}

	h4 {
		font-size: 5vw;
		margin: 1vw;
	}

	.choices1 > i, .choices2 > i {
		margin: 0.5vw 10vw;
	}

	.holder-box, .holder-messages {
		width: 96vw;
		height: 60vw;
		margin: 2vw auto;
	}

	.box {
		width: 47vw;
		height: 100%;
		border: 1px solid black;
		padding: 1%;
		text-align: center;
		background: white;
		border-radius: 2vw;
	}

	.player1 {
		margin-right: 2vw;
	}
	
	.fa-three-small {
		font-size: 14vw;
	}

	.fa-one-large {
		font-size: 30vw;
	}

	.waiting > .fa-one-large {
		margin-top: 10vw;
		font-size: 35vw;
	}

	.float-left {
		margin-left: 0;
	}

	.float-right {
		margin-right: 0;
	}

	.score {
		bottom: 2.5vw;
		height: 2vw;
	}

	p {
		font-size: 4vw;
	}

	#message-input {
		width: 85%;
	}

	#name-input, #addName {
		font-size: 5vw;
	}

	#message-input, #addMessage {
		font-size: 4vw;
		padding: 0.25vw;
	}

	#addMessage {
		width: 13%;
	}

	#messages {
		height: 50vw;
		margin: 0.5vw 0;
	}

	#messages > p {
		padding: 0.25vw 0;
	}

	/* Choice1 animation */

	.position-absolute-choice1 {
		position: absolute;
		top: 15vw;
		right: 0;
	}

	@keyframes moveRight {
	  
	  to {
	   right: -10vw;
	  }

	}

	.choice1-end {
	  right: -10vw;
	}

	/* Choice2 animation */

	.position-absolute-choice2 {
		position: absolute;
		top: 15vw;
		left: 0;
	}

	@keyframes moveLeft {
	  
	  to {
	   left: -10vw;
	  }

	}

	.choice2-end {
	  left: -10vw;
	}
}

/* Media queries for mobile and tablet*/
@media screen and (max-width: 500px) {
	
	i {
		margin: 0.5vw;
	}

	img {
		max-height: 20vw;
	}

	h1 {
		font-size: 5vw;
	}

	h2 {
		font-size: 4vw;
	}

	h3 {
		font-size: 6vw;
	}

	h4 {
		font-size: 5vw;
		margin: 1vw;
	}

	.choices1 > i, .choices2 > i {
		margin: 0.5vw 10vw;
	}

	.holder-box, .holder-messages {
		width: 96vw;
		height: 60vw;
		margin: 2vw auto;
	}

	.box {
		width: 47vw;
		height: 100%;
		border: 1px solid black;
		padding: 1%;
		text-align: center;
		background: white;
		border-radius: 2vw;
	}

	.player1 {
		margin-right: 2vw;
	}
	
	.fa-three-small {
		font-size: 14vw;
	}

	.fa-one-large {
		font-size: 30vw;
	}

	.waiting > .fa-one-large {
		margin-top: 10vw;
		font-size: 35vw;
	}

	.float-left {
		margin-left: 0;
	}

	.float-right {
		margin-right: 0;
	}

	.score {
		bottom: 2.5vw;
		height: 2vw;
	}

	p {
		font-size: 4vw;
	}

	#message-input {
		width: 85%;
	}

	#name-input, #addName {
		font-size: 5vw;
	}

	#message-input, #addMessage {
		font-size: 4vw;
		padding: 0.25vw;
	}

	#addMessage {
		width: 13%;
	}

	#messages {
		height: 50vw;
		margin: 0.5vw 0;
	}

	#messages > p {
		padding: 0.25vw 0;
	}

	/* Choice1 animation */

	.position-absolute-choice1 {
		position: absolute;
		top: 15vw;
		right: 0;
	}

	@keyframes moveRight {
	  
	  to {
	   right: -10vw;
	  }

	}

	.choice1-end {
	  right: -10vw;
	}

	/* Choice2 animation */

	.position-absolute-choice2 {
		position: absolute;
		top: 15vw;
		left: 0;
	}

	@keyframes moveLeft {
	  
	  to {
	   left: -10vw;
	  }

	}

	.choice2-end {
	  left: -10vw;
	}
}