


/* WORDNERD COMMON CSS*/


* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Source Sans 3', sans-serif;
}

h1,h2,h3{
	font-weight: 700!important;
}

body{
	font-size: 22px;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
	font-weight: 600;
	text-align: center;
}


.container{
	padding: 20px;
	padding-top: 20px;
	flex: 0 0 500px;
	max-width: 500px;
	min-width: 0;
	margin: 0 auto;
	width: 100%;
}

h1{
	font-size: 30px;
}

h2{
	font-size: 24px;
}


a{
	color: inherit;
	text-decoration: none;
	display: block;
}

.mb-5{
	margin-bottom: 5px!important;
}

.mb-10{
	margin-bottom: 10px!important;
}

.mb-20{
	margin-bottom: 20px!important;
}

.mb-30{
	margin-bottom: 30px!important;
}

.mb-40{
	margin-bottom: 40px!important;
}


.mt-10{
	margin-top: 10px!important;
}

.mt-20{
	margin-top: 20px!important;
}

.mt-30{
	margin-top: 30px!important;
}

.mt-40{
	margin-top: 40px!important;
}

.help{
	/* margin-top: -41px; */
	margin-bottom:6px;
	font-size: 28px;
	font-weight: 800;
	margin-left: auto;
	line-height: 38px;
	width: 38px;
	border-radius: 7px;
	cursor: pointer;
}

.hidden{
	display:none!important;
}

.modal{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000000de;
	z-index: 99999;
}

.modalinner{
	width:85%;
	max-width: 425px;
	margin: auto;
	margin-top: 100px;
	max-height: 520px;
	padding: 20px;
	border-radius: 7px;
	background: white;
	position: relative;
	text-align: left;
	overflow-y: scroll;
}

.modal .close{
	float: right;
	position: sticky;
	top: -20px;
	cursor: pointer;
	padding: 20px;
	margin-top: -20px;
	margin-right: -20px;
	font-size: 24px;
}

.modal .button{
	margin: 0;
}

.modal .key{
	background: #e0d5d5;
}

.button{
	display: block;
	width: fit-content;
	padding: 10px;
	color: white;
	background: black;
	border-radius: 7px;
	margin-left: auto;
	margin-right: auto;
	border: none;
	cursor: pointer;
	font-size: 22px;
}

.flex{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

.flex div {
	flex: 1; 
	text-align: center;
}

.flex .button{
	margin:2px;
}

input{
	width: 100%;
	padding: 8px;
	border-radius: 7px;
	border: solid 2px #cbcbcb;
	font-size: 22px;
	font-family: 'Source Sans 3', sans-serif;
	text-align: center;
	font-weight: 600;
}

input::placeholder {
	color: #cbcbcb;
	font-size: 16px;
	text-transform: none;
}


input:focus {
	border: 2px solid #cbcbcb;
	outline: none;
}

.link{
	text-decoration: underline;
	text-decoration-thickness: 3px;
	cursor: pointer;
	display: block;
}


.logo{
	width: fit-content;
    background: #e9e9e9;
    font-size: 16px;
    font-weight: 700;
    margin: auto;
    padding: 3px;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 5px;
    display: none;
}

/* Dont show things with class dekstop on mobile*/
@media (hover: none) {
	.desktop{
		display: none;
	}
}


.share, .playnow{
	background: #58a351;
	border-bottom: 5px solid rgba(0,0,0,.1);
}

.button:hover{
	filter: invert(10%);
}
svg{
	vertical-align: middle;
}


.pastgame{
	display: flex;
	justify-content: space-between;
	padding: 5px 0;
	border-bottom: 1px solid #ddd;
}

.pastgamescore{
	color:grey;
}

.pastgamecomplete{
	color:#58a351!important;
}




/* WORDGPT CSS*/


.slots{
	background:#e9e9e9;
	margin:auto;
	margin-bottom: 20px;
	border-radius: 7px;
}

.word{
	margin-top: -68px;
}

.slot:empty{
 	background: #e9e9e9;
	border:solid 0px black;
	z-index: -99;
	position: relative;
	color: white;
	font-weight: 600;
	font-size: 24px;
}

.cell:empty{
	background: none;
	border:solid 0px black;
	z-index: -99;
	position: relative;
}

.message{
	height: 40px;
	line-height: 40px;
	padding-left: 10px;
	padding-right:10px;
	border-radius: 7px;
	width: 100%;
	width: fit-content;
	margin: auto;
	margin-top: -70px;
	margin-bottom: 30px;
	background: white;
	z-index: 99;
	position: relative;
	pointer-events: none;
}

.message:empty{
	background: none;
}

.letter, .slot, .cell{
	text-align: center;
	font-size: 28px;
	background:#a0dccd;
	width:calc(14.28% - 4px);
	margin:2px;
	height:60px;
	line-height:60px;
	border-radius: 7px;	
	cursor: pointer;
	font-weight: 700;
	border-bottom: 5px solid rgba(0,0,0,.1);
	overflow: hidden;
	position: relative;
}

.letter:after,
.cell:after {
	top:-15px;
	font-size: 15px;
	position: absolute;
	bottom: -15px;
	right: 5px;
	content: attr(data-score);
}

.letter:empty:after,
.cell:empty:after {
	content: none;
}


.letter:empty{
	visibility: hidden;
}


.controls div{
	padding:8px;
	color: white;
	background: black;
	border-radius: 7px;
	width:calc(25% - 4px);
	margin:2px;
	cursor: pointer;
}	


.\32 {
	background: #7589df!important;
}

.\32 :after {
	content: "x2";
}

.\33 {
	background: #e95454!important;
}

.\33 :after {
	content: "x3";
}

.complete{
	font-weight: bold;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nerdle-logo {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.nerdle-logo img {
  display: block;
  height: 32px;
}

.gamename {
  flex: 1;
  text-align: center;
  margin: 0;
}

#menu {
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 32px;
}

.moregames-button {
	height: 48px;
	width: 152px;
	border-radius: .5rem;
	background: #F1F3F9;
	border: 1px solid #DEE3ED;
	display:flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #820458;
}

.moregames-button img {
	height: 18px;
	margin-left: 5px;
	margin-right: 5px;
}

.moregames-container {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
}


#nerdlegame_M_1 iframe {
  margin: auto !important;
}

#nerdlegame_M_2 iframe {
  margin: auto !important;
}

#nerdlegame_D_2 iframe {
  margin: auto !important;
}

.desktopSideAd {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.main-container {
  display: flex;
  flex-direction: row;
  justify-content: center;      /* Center the game area horizontally */
  align-items: flex-start;      /* Align items to the top */
  width: 100%;
  box-sizing: border-box;
}


@media (max-width: 600px) {
  .container {
    flex: 1 1 100%;
    max-width: 100vw;
    min-width: 0;
    width: 100vw;
    padding-left: 5px;
    padding-right: 5px;
  }
  .main-container {
    flex-direction: column;
    align-items: stretch;
  }
  .desktopSideAd {
    display: none;
  }
}