html{
  box-sizing: border-box;
}
*, *::before, *::after{
  box-sizing: inherit;
}
/* Its vital that we mention body in the following */
html, :root, body{
  /* --color1: 214,173,57;
  --color2: 106,63,24; */
  --main-color: rgb(var(--color1));
  --contrast-color: rgb(var(--color2));
  --background-color: rgba(var(--color1), 0.3);
  --popup-color: rgb(254, 223, 107);
  --overlay-color: rgba(123, 123, 123, 0.5);
}

body{
  font-family: helvetica;
}
h1, h2, h3, h4, h5, h6, p {
  color: var(--contrast-color);
}

h1{
  font-size: 3vw;
}
h2{
  font-size: 2vw;
}
p, input, select, button, label{
  font-size: 1.5vw;
}

.overlay{
  background: var(--overlay-color);
  position: absolute;
  z-index: 10;
}

.here-comes-the-popup{
  background: var(--popup-color);
  border: 1px solid  var(--main-color);
  position: absolute;
  z-index: 20;
  /* width: 0;
  height: 0; */
  /* transition: all 0.6s; */
}

.here-comes-the-popup p{
  text-align: center;
  margin-top: 0;
  padding: 2vw;
  background-color: var(--main-color);
  font-size: 2vw;
  color: white;
  font-weight: bold;
}

.here-comes-the-popup button{
  display: block;
  width: 30%;
  margin: auto;
  height: 4vw;
  margin-top: 10VW;
  font-size: 2vw;
  font-weight: bold;
  color: var(--main-color);
}

.logo-div{
  display: flex;
  align-items: center;
  background: var(--main-color);
  /* padding: 1vw; */
}

.logo-container{
  width: 10%;
}

.logo-container img{
  width: 100%;
}

.searchbar{
  display: flex;
  justify-content: center;
  width: 90%;
}

.searchbar input{
  width: 30vw;
  padding: 1vw;
}

.searchbar button{
  display: inline-block !important;
  width: auto !important;
}

nav {
  background: var(--main-color);
  text-align: right;
  padding: 2vw;

}

nav a{
  text-decoration: none;
  color: white;
  font-weight: bold;
  text-transform: capitalize;
  margin-left: 2vw;
  /* margin-right: 2vw; */
}

nav a.this-page{
  color: var(--contrast-color);
}

.left-bar{
  margin-bottom: 5px;
}

/* Selector styling */
.left-bar .selector-div, .left-bar form{
  margin-left: auto;
}
.selector-div{
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.button-container{
  grid-column: 1/2;
  display: flex;
  justify-content: right;
  align-items: center;
  padding: 1vw;
}
.flex-container{
  display: flex;
  width: 9.5vw;
  height: 2vw;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 1vw;
}
.toggle-bar{
  height: 2vw;
  width: 100%;
  background-color: var(--main-color);
  border-radius: 1vw;
  transition: width 600ms ease-in-out 0s;
}
.toggle-button{
  height: 2vw;
  width: 2vw;
  background: white;
  border-radius: 1vw;
  position: relative;
  z-index: 2;
  position: absolute;
  left: 0vw;
  transition: left 600ms cubic-bezier(.5,-0.5,.5,1.5) 0s;
}

.selector-div p{
  font-size: 2vw;
  display: inline-block;
  margin: none;
  color: white;
  transition: opacity 600ms ease-in-out 0s;
}
/* Selector styling ends */

.main-body{
  /* display: grid; */
  /* grid-template-columns: 1fr 4fr; */
  /* grid-template-rows: auto; */
}

.left-bar{
  /* grid-column: 1/2; */
  background: var(--background-color);
  display: flex;
  align-items: center;
  /* flex-direction: column; */
  /* position: sticky; */
  top: 0;
}

.left-bar a{
  text-decoration: none;
  background: white;
  font-weight: bold;
  margin: 1vw;
  margin-right: 0;
  color: var(--main-color);
  padding: 1vw;
  cursor: pointer;
}
.main-contents{
  /* grid-column: 2/3; */
}

.face-block p{
  font-size: 10vw;
  margin: 0;
  padding: 0;
}

.grid-container{
  display: grid;
  /* margin: 4vw; */
  margin: 5px 0;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  /* grid-gap: 2vw; */
  /* grid-gap: 5px; */
}

.item, .game-conversation-div{
  background-color: var(--background-color);
  border: 1px solid var(--main-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 2vw;
  grid-column: 1/2;
  margin-top: 0;
}

.item form, .game-conversation-div form{
  width: 60%;
}

.game-conversation-div input, .game-conversation-div button, .game-conversation-div label,
.item input, .item button, .item label{
  display: block;
  width: 100%;
  padding: 1vw;
  margin: 1vw 0;
}

.item select, .game-conversation-div select{
  display: block;
  width: 100%;
  /* font-size: 1vw; */
  padding: 1vw;
  margin: 1vw 0;

}

.item small a{
  text-decoration: none;
}

button{
  outline: none ! important;
}

.item button, .game-conversation-div button{
  border-radius: 10px;
}

.tri-button{
  display: flex;
  justify-content: space-between;
}


.tri-button button{
  width: 26%;
  background: var(--background-color);
}

.tri-button button:first-of-type{
  background: var(--main-color);
}

.item label, .game-conversation-div label{
  background: white;
}


.signup-form .form-parts-container,
.change-password-form .form-parts-container{
  position: relative;
  overflow: hidden;
}

.signup-form .form-parts-container .dummy,
.change-password-form .form-parts-container .dummy{
  opacity: 0;
}

.signup-form .form-parts-container .form-part,
.change-password-form .form-parts-container .form-part{
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  /* transition: left 1s linear; */
  transition: left 1s cubic-bezier(0,-0.21,1,-0.23);
}

.signup-form .button-div{
  position: relative;
  display: flex;
  justify-content: space-between;
}

.signup-form .button-div .signup-button{
  color: initial;
  transition: color 0.5s 0.25s;
  width: 66%;
  background: var(--main-color);
}

.signup-form .button-div button[name="back-to-signin"]{
  width: 25%;
  background: var(--background-color);
}

.signup-form .back-button{
  position: absolute;
  bottom: 0;
  width: 10%;
  border: none;
  background: none;
  text-align: left;
  /* margin: 0; */
}


.full-button{
  width: 100%;
  background: var(--main-color);
}
textarea{
  width: 100%;
  height: 10vw;
  font-style: italic;
  font-size: 1.5vw;
  resize: none;
  margin: 1vw 0 0 0;
}

.two-in-a-row{
  display: flex;
  font-size: 1vw;
  justify-content: space-around;
  border: 3px solid white;
}

.two-in-a-row input, .two-in-a-row label{
  background: transparent;
  display: inline;
  width: auto;
}

.signup-form .back-button:active{
  font-weight: bold;
}

.signup-form .back-button:active{
  font-weight: bold;
}

.signout-form{
  width: 60%;
}
.signout-form button, .edit-form button{
  width: 100%;
  background: var(--main-color);
}

.btn-main{
  background: var(--main-color);
}

.my-contacts, .item h1.align-left{
  align-self: flex-start;
  margin-left: 10%;
}

.my-contacts{
  max-height: 15vw;
  min-width: 50%;
  overflow-y: auto;
  /* overflow: hidden; */
}

.player-1 p{
  /* background: rgba(256, 0, 0, 0.5);
  color: white; */
  border-left: 10px solid red;
  padding: 5px;
}

.player-2 p{
  /* background: rgba(0, 0, 256, 0.5);
  color: white; */
  border-right: 10px solid blue;
  padding: 5px;
}

/* On Chrome */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
/* For Firefox and IE */
.hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.my-games-in-play-div, .my-invitations-div{
  max-height: 25vw;
  overflow-y: auto;
  width: 60%;
}

.my-games-in-play-div p, .my-invitations-div p{
  text-align: right;
}

.chat-mate{
  font-weight: 300;
  transition: all 1s;
}

span.chat-mate{
  display: inline-block;
  min-width: 40%;
}
p.request-para{
  width: 100%;
}
span.in-center{
  display: inline-block;
  min-width: 80%;
}


.individual-msg{
  width: 60%;
  padding: 1vw;
  background: lightgrey;
  margin: 1vw;
  border-radius: 5px;
}
.my-message{
  margin-left: auto;
  background: var(--main-color);
}

.conversation{
  min-height: 20vw;
  max-height: 30vw;
  overflow: auto;
  background: white;
  width: 80%;
}
.conversation.game{
  max-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1vw;
}

.game-outer-container{
  position: relative;
  overflow: hidden;
}

.game-conversation-div{
  display: flex;
  justify-content: center;
  position: absolute;
  background: var(--main-color);
  width: 100%;
  /* margin-top: 5px; */
  top: 100%;
  z-index: 5;
  transition: top 1s;
}

.game-conversation-div #current_message{
  text-align: center;
}

.games-list {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: baseline;
}

.games-list div{
  width: 20%;
  display: block !important;
  cursor: pointer;
  position: relative;
}

.games-list div img{
  width: 100%;
}

.games-list div  h3{
  text-align: center;
  margin-top: 0;
}

.my-hidden-contacts{
  position: absolute;
  top: 0;
  z-index: 10;
  background: var(--overlay-color);
  max-height: 8vw;
  overflow-y: scroll;

}

.my-hidden-contacts li{
  list-style-type: none;
  font-size: 2vw;
  margin-top: 0.5vw;
}

.my-hidden-contacts li:hover {
  background: var(--main-color);
}

.foot{
  min-height: 10vw;
  background: var(--main-color);
  display: flex;
  justify-content: space-between;
}

.foot .foot-item{
  width: 20%;
  padding: 1vw;
}

.foot-item a{
  text-decoration: none;
}

.foot-item:first-of-type a{
  display: inline-block;
  margin-top: 1vw;
}

.foot-item a img{
   margin: auto;
   vertical-align: middle;
   display: inline-block;
   width: 2vw;
}

.foot-item a span{
  font-weight: bold;
  color: white;
  margin-left: 1vw;
}
.send_message{
  width: 80% !important;
}
.send_message *:first-child{
  margin-top: 0;
}
