body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height:1.5;
}

#root .App{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  padding-top: 0px;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  padding-top:0px;
  position:relative;
}

.footer{
  width:500px;
  max-width:100%;
  padding:15px;
  margin:0 auto;
  text-align:center;
  margin-top:20px;
  box-sizing:border-box;
}
.contact{
  margin-top:10px;
  font-size:14px;
  color:#786a6a;
  margin-top:30px;
  width:600px;
  max-width:100%;
}

h1{
  text-align:center;
}
.game-header{
  display:flex;
  align-items:center;
  flex-direction: column;
  box-sizing: border-box;
}
.game-header h1{
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 0.5em;
}
.game-header p{
  font-size: 18px;
    line-height: 30px;
    margin: 0 auto 10px;
    max-width: 100%;
    text-align: center;
    width: 600px;
}

.message{
  margin-top:10px;
  margin-bottom:15px;
}
.game-group {
  display: flex;
  max-width:600px;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1em;
  width: 100%;
  box-sizing: border-box;
}

.group-name {
  font-size: 1.2em;
  font-weight: bold;
}

.group-members {
  font-size: 1em;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
  margin-bottom: 1em;
  width: 100%;
}

.game-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  color: #000;
  font-weight: 900;
  border: none;
  text-transform: uppercase;
  min-width: calc(100vw / 4 - 15px);
  height: 70px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  border:1px solid #6f5bb5;
  background-color: #fff;
  transition: background-color 0.3s ease;
}

.game-item.selected {
  background-color: #6f5bb5;
  color: #fff;
}

.game-group{
  background-color: rgb(251, 212, 0);
  width: 100%;
  padding-bottom: 20px;
  margin-bottom: 0;
  box-sizing: border-box;
}

.btn-wrapper{
  display:flex;
  flex-direction: row;
  align-items: center;
  margin-bottom:20px;
  width: 100%;
}

@media (max-width:600px){
  .btn-wrapper .game-btn{
    margin: 0.5em 5px;
  }
}

.game-btn {
  width: 100%;
  height: 50px;
  border: 1px solid black;
  border-radius: 25px; 
  background-color: transparent;
  color: black;
  font-size: 1em;
  margin: 0.5em 0;
  cursor: pointer;
}

.submit-btn{
  background:black;
  border:none;
  color:#fff;
}


@media (min-width: 600px) {
  .game-board {
      grid-template-columns: repeat(4, 1fr);
      width: 600px;
  }
  .game-item {
      width: 140px;
      min-width:auto;
  }
  .btn-wrapper{
      flex-direction: row;
      justify-content: space-between;
      max-width:600px;
  }
  .game-btn {
      width: 160px;
  }
}

@media (max-width: 600px) {
  .game-header{
      max-width:100%;
  }
  .game-container, #root .App{
      padding-left:15px;
      padding-right:15px;
  }
  .game-item{font-size:14px; height:60px;}
  .game-board{margin-bottom:10px;}
}

.difficulty-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top:0px;
}

.difficulty-wrapper label {
  font-size: 20px;
  margin-right: 10px;
}

.difficulty-wrapper button {
  padding: 8px 20px;
  font-size: 16px;
  background-color: #ddd;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color:#000;
}

.difficulty-wrapper button:hover {
  background-color: #bbb;
}

.difficulty-wrapper .selected {
  background-color: #aaa;
  color: white;
}

.disclaimer{
  font-size:14px;
  color:#786a6a;
  margin-top:30px;
  width:600px;
  max-width:100%;
}


.congratulations {
  padding: 20px;
  background-color: #fff;
  border-radius: 15px;
  text-align: center;
  margin: 20px 0;
}

.congratulations h2 {
  color: #0047AB;
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

.congratulations p {
  color: #0047AB;
  font-size: 1.5em;
}

/* Apply custom font sizes for mobile devices */
@media only screen and (max-width: 600px) {
  .game-item.size-8 {
    font-size: 13px;
  }
  .game-item.size-more {
    font-size: 12px;
  }
}


.content{
  padding:0 15px;
  margin-top:20px;
  width:100%;
  max-width:600px;
}

.links{
  text-align:center;
  width:70%;
  margin:0 auto;
  margin-bottom:50px;
}

h3.for-content{
  margin-top:40px;
}

.top-g{
  width: 100%;
  max-width: 600px;
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top:5px;
  margin-bottom:5px;
}

.top-g .game-time{
  font-weight:700;
}

.top-g .p-text{
  margin:0px;
  padding:0;
}

.share span{
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: inline-block;
  margin: 2px;
}

img{
  max-width:100%;
}

img.ill{
  border: 1px solid #ebebeb;
  box-shadow: 1px 6px 9px rgba(0,0,0,0.1);
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

.page-content{
  width: 100%;
  background: #f3eff9;
}

.inner-wrapper{
  width: 600px;
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
  padding: 40px 20px;
}
.footer .inner-wrapper{
  padding:20px 0;
}

@media (max-width:600px){
  .ez-video-container.ez-stuck:not(.raise){
    display:none !important;
    z-index:-999999;
  }
}

.top-bar{
  border-bottom:1px solid #ebebeb;
}

.top-bar .container{
  display:flex;
  align-items:center;
  justify-content: space-between;
  width:630px;
  max-width:100%;
  margin:0 auto;
  height:50px;
  padding: 0 15px;
  box-sizing: border-box;
}

.element, .element-middle a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color:#000;
  font-size:13px;
}

#lang-switch, #help-button, #create-custom {
  border: none;
    background: none;
    cursor: pointer;
    background: #d7e8f0;
    font-weight: bold;
    padding: 7px 15px;
    color:#000;
}

#create-custom{
  margin-right: 5px;
  padding: 5px 10px;
  display: flex;
}
.element-middle{
  font-weight:bold;
}
@media (max-width:600px){
  .element-middle a{
    font-size:10px;
  }
}

.element-middle img {
  display: block;
  margin: 0 auto;
  height:30px;
  margin-right:10px;
}

.download-app{
  margin-top:20px;
}

.archive-wrapper{
  margin-top:10px;
}

.archive-wrapper select{
  height:40px;
  padding:0 10px;
}

.game-header{
  margin-top:0px;
}

.ad-bar{
  background: #e0dbfe;
  text-align: center;
  padding: 5px 0px;
  font-size: 14px;
}
.ad-bar a{
  font-weight:600
}

#root{
  min-height:529px;
}

@media (min-width:600px){
  #root{
    min-height:593px;
  }
}

.sidebar-place{
  position: absolute;
  left: 0;
  top: 35px;
  width:336px;
  height:600px;
}

@media (max-width:1350px){
  .sidebar-place{
    display:none;
  }
}

.games{
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0;
}

.other-games{
  background:#fff;
}

.other-games .inner-wrapper{
  padding-top:0px;
  text-align:center;
}

.games a{
  text-decoration: none;
}

.othergame-item {
  width: 200px;
  margin: 15px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,.07);
  transition:all 0.3s;
}


.othergame-item {
  text-decoration: none;
  border-radius: 10px;
}

.othergame-item__img {
  height: 133px;
  border-radius: 10px 10px 0 0;
}

.othergame-item__img{
  overflow: hidden;
}

.othergame-item__img img {
  display: block;
  max-width: 100%;
  transition: transform .35s;
  transform: scale(1);
}

.othergame-item__info {
  padding: 10px 15px 15px;
}

.othergame-item__title {
  color: #13141c;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
  transition: .3s;
}

.othergame-item__text {
  color: #7e8399;
  font-size: 13px;
  line-height: 18px;
  margin-bottom: 10px;
}

.othergame-item__bottom {
  display: flex;
  justify-content: center;
}

.othergame-item__play {
  color: #13141c;
  font-size: 16px;
  font-weight: 700;
  background: #fff;
  padding: 8px 54px;
  border-radius: 50px;
  transition: .3s;
  border: 1px solid #c5c6ce;
}

.othergame-item:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,.15);
}

.othergame-item:hover .othergame-item__play {
  color: #fff;
  background: #57ac57;
  border: 1px solid #57ac57;
}

.othergame-item:hover .othergame-item__title {
  color: #57ac57;
}

.othergame-item:hover .othergame-item__img img {
  transform: scale(1.15);
}

@media (max-width: 767px) {
.othergame-item {
  width: 160px;
  margin: 10px;
}

.othergame-item__img {
  height: 107px;
}

.othergame-item__title{
  font-size: 16px;
}
}


a.game-btn{
  text-decoration: none;
  text-align: center;
  line-height:49px;
}