@import url('https://fonts.googleapis.com/css?family=Quicksand:400,500,700&subset=latin-ext');

/*
TEMPLATE - styly pro celou webovou aplikaci
*/

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
}

body {
  padding: 0;
  background: #2a4961;
  color: #fff;
}

select, input, textarea {
	color: #000;
}

a {
	color: #fff;
	text-decoration: none;
}

a:hover {
	color: #00a8e1;
	text-decoration: none;
}

.navbar {
	background: #2a4961;
}

.navbar a {
	color: #fff;
	text-transform: uppercase;
	font-weight: bold;
}

.navbar a:hover {
	color: #00a8e1;
}

.nav li a {
	font-weight: normal;
	text-transform: none;
}

.nav li a:hover {
	color: #fff;
	background: #00a8e1;
}

.navbar-toggle .icon-bar {
	background: #fff;
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: #355a77;
}

.table-striped>tbody>tr>td {
	border-top: none;	
}

.page {
	min-height: 100%;
	position: relative;
}

.version {
	position: absolute;
	bottom: 0;
	width: 100%;
	margin-bottom: -50px;
	text-align: right;
}

/* Form */

.form {
	max-width: 450px;
	margin: 50px auto 0;
}

.btn-new {
	float: right;
}

.form-select {
	float: left;
}

.loginpage > a button {
	max-width: 450px;
	margin: 10px auto;	
}

.loginpage h2 {
	margin-bottom: 30px;
}



/* Uprava profilu */

.look-chooser {
	position: relative;
	width: 150px;
	margin: 0px auto;
}

.look-chooser-name {
	text-align: center;
	background-color: #95dc28;
    border-radius: 10px;
    font-weight: bold;
    font-family: 'Quicksand', sans-serif;
    margin-top: 5px;
}

.look-chooser-name:first-letter {
	text-transform: capitalize;
}

.look-chooser img {
	display: none;
}

.look-chooser ul {
	margin: 0px auto;
	width: 100px;
}

.look-chooser ul, 
.look-chooser ul li {
	list-style: none;
	/*margin: 0px;*/
	padding: 0px;
	-webkit-padding-start: 0px;
}

.look-chooser .look-chooser-prev,
.look-chooser .look-chooser-next {
	position: absolute;
	top: 30%;
	z-index: 999;
	padding: 5px;
	font-size: 22px;
	text-decoration: none;
}

.look-chooser .look-chooser-prev:hover,
.look-chooser .look-chooser-next:hover {
	cursor: pointer;
}

.look-chooser .look-chooser-prev {
	
}

.look-chooser .look-chooser-next {
	right: 0;
}

.picture-info {
	background-color: #ff7777;
    padding: 8px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    font-size: 13px;
}

.picture-info p {
	margin: 5px 0px;
}

.form-group input[type="file"] {
	margin-top: 10px;
}

.form-group td {
	margin-right: 10px;
    display: inline-block;
}

.textarea-hobbies,
.textarea-description {
	min-height: 100px;
}

/* Profil */

.profile-button {
	max-width: 450px;
	margin: 0px auto;
}

/* Room */

#header ul, 
#header li {
	list-style: none;
	margin: 0px;
	padding: 0px;
	-webkit-padding-start: 0px;
}

#header li {
	float: left;
	padding: 13px;
	background-color: #5d5d5d;
	width: 33.333%;
	text-align: center;
}

#header li:last-child {
	padding: 10px;
}

#header li:hover {
	background-color: #0fb9f0;
	cursor: pointer;
}

.active-tab {
	background-color: #0fb9f0 !important;
}

#header a {
	color: white;
    font-weight: bold;
    text-decoration: none;
}

#content {
	clear: both;
	overflow: auto;
	background: rgba(87,86,87,1);
	background: -moz-linear-gradient(top, rgba(87,86,87,1) 0%, rgba(163,163,163,1) 55%, rgba(235,235,235,1) 100%);
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(87,86,87,1)), color-stop(55%, rgba(163,163,163,1)), color-stop(100%, rgba(235,235,235,1)));
	background: -webkit-linear-gradient(top, rgba(87,86,87,1) 0%, rgba(163,163,163,1) 55%, rgba(235,235,235,1) 100%);
	background: -o-linear-gradient(top, rgba(87,86,87,1) 0%, rgba(163,163,163,1) 55%, rgba(235,235,235,1) 100%);
	background: -ms-linear-gradient(top, rgba(87,86,87,1) 0%, rgba(163,163,163,1) 55%, rgba(235,235,235,1) 100%);
	background: linear-gradient(to bottom, rgba(87,86,87,1) 0%, rgba(163,163,163,1) 55%, rgba(235,235,235,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#575657', endColorstr='#ebebeb', GradientType=0 );
}

#messages {
	padding: 0px 5px;
	overflow: auto;
}

.message {
	background-color: #0FB9F0;
    margin: 5px 0;
   /* min-height: 70px;*/
    border-radius: 5px;
    /* position: relative; */
    /*width: 400px;*/
    min-width: 200px;
    max-width: 80%;
    clear: both;
    font-family: 'Quicksand', sans-serif;
	font-size: 13px;
	/*box-shadow: 4px 4px 13px 0px rgba(0, 0, 0, 0.42);*/
	box-shadow: 3px 3px 15px 0px rgba(0, 0, 0, 0.42);
}

.other-message {
	float: left;
}

.other-message img {
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 5px;
	margin: auto;	
}

.other-message .message-text {
	padding: 15px 10px 15px 45px;
}
	
.my-message {
    float: right;
}

.my-message img {
	position: absolute;
	top: 0px;
	bottom: 0px;
	right: 5px;
	margin: auto;
}

.my-message .message-text {
	padding: 15px 45px 15px 10px;
}

.private {
	background-color: #42f44e !important;
}

.private .message-text {
	color: black;
}

.message-time {
	position: relative;
	height: 16px;
	font-size: 12px;
	font-weight: 500;
    text-align: center;
    background-color: transparent; /*#d81e18*/
    border-radius: 5px 5px 0px 0px;
}

.message-text {    
    text-align: justify;
    color: white;
    font-weight: 600;
}

.message-author {
	background-color: transparent;
	text-align: center;
	border-radius: 0px 0px 5px 5px;
	font-size: 12px;
	font-weight: 500;
}

.message-wrap {
	position: relative;
    min-height: 50px;
}

.message-warn {
    background-color: #7d7d7d;
    padding: 10px 10px 0;
}

#message-form {
	background-color: #5d5d5d;
	padding: 5px;
}

#message {
	/*border: none;*/
	max-width: 400px;
	min-width: 200px;
	min-height: 85px;
	max-height: 85px;
	height: 100%;
	width: 100%;
	display: block;
	margin: 5px auto;
	font-family: 'Quicksand', sans-serif;
	font-weight: 500;
	color: #0fb9f0;
}

#message-submit {
	background-color: white;
    background-image: url(../images/paper_plane.png);
	background-repeat: no-repeat;
	background-position: center;
	/*width: 56px;
	height: 56px;
	border-radius: 50px;*/
	width: 100px;
    height: 40px;
    border-radius: 30px;
	border: none;
	outline: none;
	display: block;
	margin: 0px auto;
	transition: all 150ms;
}

#message-submit:hover {
	background-image: url(../images/paper_plane_W.png);
	background-color: #0fb9f0;
}


.message-for-who {
	position: relative;
}

.message-for-who > div {
  cursor: pointer;
  display: inline-block;
  position: relative;
  font-size: 14px;
  color: #fff;
  width: 220px;
  /*height: 40px;*/
  background-color: #0fb9f0;
  padding: 8px;
  border-radius: 5px;	
}

.message-for-who > span {
	font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 150ms;
}

.message-for-who > span:hover {
	color: #d6d6d6; 
}

.message-for-who > div img {
	margin-right: 8px;
}

.message-for-who > div > span:before {
	content: '';
	width: 15px;
	height: 30px;
	display: inline-block;
	vertical-align: middle;
}

.select-styled {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #0fb9f0;
  border-radius: 5px;
  padding: 8px;
  -moz-transition: all 0.2s ease-in;
  -o-transition: all 0.2s ease-in;
  -webkit-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}
.select-styled:after {
  content: "";
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-color: #fff transparent transparent transparent;
  position: absolute;
  top: 16px;
  right: 10px;
}
.select-styled:hover {
  background-color: #12b1e4;
}
.select-styled:active, .select-styled.active {
  background-color: #12b1e4;
}
.select-styled:active:after, .select-styled.active:after {
  top: 9px;
  border-color: transparent transparent #fff transparent;
}

.select-options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 999;
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: #0fb9f0;
  max-height: 140px;
  overflow: auto;
}

.select-options li {
  margin: 0;
  padding: 8px 0;
  text-indent: 8px;
  border-top: 1px solid #fff;
  -moz-transition: all 0.15s ease-in;
  -o-transition: all 0.15s ease-in;
  -webkit-transition: all 0.15s ease-in;
  transition: all 0.15s ease-in;
}

.select-options li:hover {
  background: #159cc7;
}

.select-options li[rel="hide"] {
  display: none;
}

#friendlist {
	padding: 10px 0px;
}

#friendlist div {
	width: 80%;
	margin: 3px auto;
	color: white;
	text-shadow: 0px 0px 6px black;
}

.friendlist-item {
	text-transform: capitalize;
}

#friendlist div span {
	float: right;
}

#friendlist div span:hover {
	color: #ff2323;
	cursor: pointer;
}

/*Media Queries*/
@media only screen and (max-width: 1040px) {
	.col-sm-9 {
		display: none;
	}
	.col-sm-3 {
		width: 100%;
		height: 100%;
		float: none;
		padding: 0px;
	}
}

@media only screen and (max-width: 430px) {
	.picture-info {
		font-size: 10px;
	}
}

.username-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.image-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 50px;
}

.arrow {
  font-size: 24px;
  cursor: pointer;
  user-select: none;
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}

.menu-title {
    text-align: center;
    padding-bottom: 50px;
}

.menu-input-name {
    text-align: center;
    padding-bottom: 50px;
}

.menu-input-name input {
    width: 20%;
    min-width: 180px;
    height: 42px;
    font-size: 16px;
    font-weight: bold;
}

.menu-button-start {
    text-align: center;
}

.menu-button-start input {
    font-weight: bold;
    min-width: 100px;
    width: 10%;
    height: 40px;
    border-radius: 10px;
    font-size: 16px;
    border-style: none;
}

#game-screen, #menu-screen {
    display: none;
}
