A:hover,
body {
	color: #272727
}
a img,
h1,
h2,
p {
	border: 0
}
body,
h1,
h2,h3,
p {
	padding: 0;
	margin: 0
}
#bodyarea {
	clear: both
}
.img-responsive {
		display: block;
		margin-left: auto;
		margin-right: auto;
	}
.header,
.top_logo,
img {
    display: block;
    text-align: center;
}
body{
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4; 
  background: transparent; 
}

html, body { height: 100%; }

body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  /* control poziții */
  --topDark: clamp(60px, 10vh, 120px); 
  --greenEnd: clamp(180px, 28vh, 320px); 
  --blendEnd: calc(var(--greenEnd) + clamp(90px, 14vh, 180px)); 

  background: linear-gradient(
    to bottom,
    #bfe0bf 0,
    #c7e6c7 var(--topDark),
    #cfead0 var(--greenEnd),
    #e2e7cd var(--blendEnd),
    #f0e6c8 100%
  );
}

ul, ol {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 1.4rem;
    padding-left: 0.4rem;
    list-style-position: outside; 
}
.subarea_text ul,
.subarea_text ol {
    margin-left: 1.6rem;
    padding-left: 0.6rem;
}

 .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        .message {
            margin-bottom: 20px;
            padding: 10px;
            background-color: #e0f7fa;
            border: 1px solid #26c6da;
            color: #0097a7;
            border-radius: 4px;
        }
        .message.error {
            background-color: #ffcdd2;
            border-color: #ef5350;
            color: #c62828;
        }
.header,.top_logo,img,nav.responsive {
	display: block;
}

.bottom,
.gametext1,
nav {
	font-size: 16px
}
.subarea .center {
    display: flex;
    justify-content: center;  /* centrează orizontal */
}
/* --- wrapper joc + buton fullscreen --- */
.game-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* iframe-ul de joc */
.game-wrapper .iframe-default {
    width: 820px;      /* ajustezi 780 / 800 / 840 cum îți place */
    max-width: 100%;
    display: block;
}

/* butonul fullscreen */
#fullscreenBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 20;
    transition: background 0.2s, transform 0.2s;
}

#fullscreenBtn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

/* pe mobil îl putem micșora puțin */
@media (max-width: 768px) {
    #fullscreenBtn {
        top: 6px;
        right: 6px;
        font-size: 18px;
        padding: 3px 6px;
    }
}

.subarea .center .iframe-default {
    width: 820px;    /* lățimea „reală” a jocului, poți pune 800 / 900 */
    max-width: 100%; /* ca să nu iasă în afara ecranului pe mobil */
    display: block;
}
.center {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center;    /* Center vertically */
}
A:link,
A:visited {
	color: #272727;
	text-decoration: none
}
A:hover {
	text-decoration: underline;
	cursor: pointer
}
.subarea_text a:link,
A:active {
	text-decoration: none
}
A:active {
    color: #DC1013
}
p {
    color: #1b0404;
    font-weight: 200;
    text-align: center;
}
@-webkit-keyframes load {
	0% {
		left: 0;
		height: 30px;
		width: 15px
	}
	50% {
		height: 8px;
		width: 40px
	}
	100% {
		left: 235px;
		height: 30px;
		width: 15px
	}
}
.iframe-container {
            position: relative;
            width: 100%;
            height: 0;
            overflow: hidden;
        }

        .iframe-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }
@keyframes load {
	0% {
		left: 0;
		height: 30px;
		width: 15px
	}
	50% {
		height: 8px;
		width: 40px
	}
	100% {
		left: 235px;
		height: 30px;
		width: 15px
	}
}
h1,
h2 {
	text-align: center
}
h2,
h3{
    text-align: center;
    font-size: 18px;
}
#wrapper {
	width: 996px;
	position: relative;
	margin-left: auto;
	margin-right: auto
}
.top_logo {
	width: 800px;
	padding-top: 8px;
	padding-bottom: 8px;
	margin: 0 auto;
	max-width: 100%;
	height: auto;
}
nav,
nav2 {
	height: auto;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	position: center;
	text-align: center;
	box-shadow: 0 0 15px rgba(0,0,0,.9);
	background:rgba(255, 255, 255, .3);
	border: 1px solid #9e0b0e;
}
.content-box {
    height: auto;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,.9);
    background: rgba(255, 255, 255, .3);
    border: 1px solid #9e0b0e;
    border-radius: 4px;
    display: block;
    float: left;
}

.content-box ul,
.content-box ol {
    list-style-position: inside;
    padding-left: 0;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
}


.leaderboard{
  width: 100%;
  max-width: 100%;
  min-height: 90px; 
  margin: 12px auto;
  text-align: center;
  display: block;
  clear: both;
  overflow: visible;
  background: rgba(255, 255, 255, .3);
  border: 1px solid #9e0b0e;
  box-shadow: 0 0 15px rgba(0,0,0,.9);
  border-radius: 4px;
  padding: 9px;
  box-sizing: border-box;
}

#bodyarea,
.menu,
nav {
	margin-bottom: 0px
}
nav.responsive {
	display: block
}
nav {
	background-color: #ecbd4c;
	font-weight: 700;
	color: #513b06;
	border-radius: 4px;
	display: block;
	width: 100%;
}
.menu,
nav2 {
	display: block;
	box-shadow: 0 0 15px rgba(0,0,0,.9);
	background:rgba(255, 255, 255, .3);
	border: 1px solid #9e0b0e;
}
nav2 {
    margin-bottom: 12px;
    float: left;
    width: 100%;
    -webkit-appearance: none;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    text-align: center;
}
.menu {
	border-radius: 4px
}
nav A:active,
nav A:hover,
nav A:link,
nav A:visited {
	color: #513b06;
	text-decoration: none
}
.leftarea {
    float: right;
    width: 180px;
    margin-left: 13px
}
.menu {
	position: relative;
	width: 180px;
	border-radius: 4px;
	margin-bottom: 10px
}
.menu_content_160,
.menu_content_180 {
	margin-top: 10px;
	display: inline-block
}
.menu_content {
	z-index: 100;
	position: relative;
	padding-left: 31px;
	padding-top: 24px;
	padding-bottom: 15px;
	line-height: 24px
}
.menu_content_title {
	font-weight: 800
}
.menu_content_180 {
	margin-left: 17px;
	margin-bottom: 13px
}
.menu_content_160 {
	width: 160px;
	height: auto;
	margin-bottom: 10px;
	margin-left: 10px
}
.gamewrapper {
	margin-left: 6px;
	margin-right: 6px;
	padding: 8px;
	border: 1px solid #e6dcc0;
	border-radius: 6px;
	box-sizing: border-box;
}
.rightarea {
	text-align: center;
	padding: 10px;
	margin-bottom: 12px;
    float: right;
    width: 780px;
	-webkit-appearance: none;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
	box-shadow: 0 0 10px rgba(0,0,0,.9);
	background:rgba(255, 255, 255, .3);
	border: 1px solid #9e0b0e;
}
.rightarea iframe{
  display: block;
  width: 100%;
  height: 650px;
  border: 0;
  background: transparent;
}
.rightarea iframe.iframe-tall{
  height: 750px;
}

.game {
	height: 180px;
	margin-left: 8px;
	margin-right: 8px;
	padding-top: 8px
}
.subarea {
	border-radius: 4px;
	margin-bottom: 13px;
	padding-top: 10px;
	padding-bottom: 10px;
	box-shadow: 0 0 15px rgba(0,0,0,.9);
	background:rgba(255, 255, 255, .3);
	border: 1px solid #9e0b0e;
	text-align:center
}
.gametext1,
.gametext3,
.text {
	padding-left: 1px
}
.gametext1,
.gametext2,
.text {
	padding-top: 2px
	padding-bottom: 2px
}
.gamewrapper {
    margin-top: 5px;
    float: left;
    width: 230px;
    border: 3px
}
.gametext1 {
	color: #2f2f2f;
	font-weight: 700
}
.bottom {
	color: #1b1111;
	font-weight: 400;
	text-align: center
}
.gametext1 A:active,
.gametext1 A:link,
.gametext1 A:visited {
	color: #2f2f2f;
	TEXT-DECORATION: none
}
.gametext1 A:hover {
	color: #2f2f2f;
	TEXT-DECORATION: underline
}
.gametext2 {
	padding-bottom: 2px;
	display: block;
	font-size: 16px
}
.gametext3 {
	color: #2f2f2f;
	line-height: 22px
}
.text {
	font-size: 16px;
	color: #2f2f2f;
	font-weight: 500;
	padding-bottom: 4px
}
.playarea,
.subarea {
	width: 100%;
	-webkit-appearance: none;
	float: left;
	background:rgba(255, 255, 255, .3)
}
.playarea,
.playarea_head,
.subarea {
	background:rgba(255, 255, 255, .3)
}
.subarea {
    border-radius: 4px;
    text-align: center;
}
.subarea_heading1 {
	font-weight: 700;
	font-size: 20px;
	color: #d96b12;
	padding: 12px 8px 6px 16px
}
.subarea_text a:active,
.subarea_text a:link,
.subarea_text a:visited {
	color: #0254eb
}
.subarea_heading2 {
    font-weight: 700;
    font-size: 18px;
    padding-left: 16px;
    padding-right: 8px;
    padding-bottom: 12px;
    text-align: center;
}
.subarea_form,
.subarea_text {
	padding-left: 16px;
	padding-right: 16px
}
.subarea_text {
    line-height: 22px;
    text-align: center;
    font-size: 16px;
    padding-top: 5px;
	max-width: 965px
}
.subarea_text a:hover {
	color: #0254eb;
	text-decoration: underline
}
.subarea_img {
	margin-top: 2px;
	margin-bottom: 8px;
	width: 100%
}
.playarea {
    margin-bottom: 10px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px
}
.extra,
.white,
.playarea_head {
    margin-right: 12px;
    margin-left: 12px;
    text-align: center;
}
.extra,
.white {
	background-color: #fff
}
.extra,
.white {
    min-height: 75px;
	max-height: 100px;
    height: auto;
    margin: 10px;
	padding-bottom: 10px;
}
.right {
    width: auto;
    height: auto;
	border-radius: 5px;
    margin-bottom: 15px;
	border: 1px solid #9e0b0e;
}

img.red:hover{
    border-color: #66afe9;
    box-shadow: 0 0 8px rgba(217,20,23,1.00);
	border:  #dadada;
    border-radius: 5px;
	outline: none;
}
.zoom {
  transition: transform .1s; /* Animation */
  width: 160px;
  height: auto;
  margin-bottom: 15px;
}

.zoom:hover {
  transform: scale(1.03); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}
.extra {
    width: auto;
    min-height: 120px;
    margin-top: 12px;
    margin-bottom: 10px;
	display: block;
	vertical-align: top
}
.playarea_game {
	text-align: center
}
.infoarea_top {
	font-weight: 700;
	font-size: 20px;
	color: #373d36;
	line-height: 46px;
	background-color: #b4dfae;
	height: 36px;
	width: 100%;
	text-align: center;
	-webkit-border-radius: 4px 4px 0 0;
	-moz-border-radius: 4px 4px 0 0;
	border-radius: 4px 4px 0 0
}
.infoarea_body {
	padding-top: 20px;
	padding-bottom: 12px;
	padding-left: 24px
}
.infoarea_right {
	padding-right: 15px;
	width: 85%;
	float: left;
	line-height: 22px;
	padding-bottom: 10px
}
@media (max-width: 991px) {
	#wrapper {
		width: 768px
	}
	.fixed {
		display: block
	}
	.center-block,.img-responsive {
		display: block;
		margin-left: auto;
		margin-right: auto;
	}
	.leftarea {
		display: none
	}
	#bodyarea {
		margin-top: 12px
	}
	.playarea {
		margin-top: 0
	}
	.rightarea {
		text-align: center;
		padding-top: 12px;
		margin-bottom: 12px;
		width: 800px;
		-webkit-appearance: none;
    	-webkit-border-radius: 4px;
   	 	-moz-border-radius: 4px;
   	 	border-radius: 4px;
		box-shadow: 0 0 10px rgba(0,0,0,.9);
		background:rgba(255, 255, 255, .3);
		border: 1px solid #9e0b0e;
	}
	.gamewrapper {
		margin-left: 12px;
		width: 239px
	}
	.playarea_game {
		margin-top: 12px
	}
}
@media (max-width:767px) {
	.center-block,.img-responsive {
		display: block;
		margin-left: auto;
		margin-right: auto;
	}

	#wrapper {
		width: 631px;
	}

	.top_logo {
		padding-top: 0;
		padding-bottom: 14px;
	}

	.img-responsive {
		max-width: 100%;
		height: auto;
		position: center;
	}

	.adarea1 {
		display: none;
	}

	.introduction {
		height: auto;
		width: 100%;
	}

	.introduction_text {
		padding-bottom: 12px;
	}

	.gamewrapper {
		width: 296px;
		margin-left: 13px;
	}

	.gameimg {
		width: 296px;
	}
}

@media (max-width: 640px) {
	#wrapper {
		width: 503px
	}
	.gamewrapper {
		width: 239px;
		padding-left: 132px
	}
}
@media (max-width: 525px) {
	#wrapper {
		width: 435px
	}
	.gamewrapper {
		padding-left: 98px
	}
}
@media (max-width: 480px) {
	#wrapper {
		width: 320px
	}
	.gamewrapper {
		width: 294px;
		padding-left: 0
	}
}
/* ===== NATURAL SNOW ===== */
#snow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* peste background */
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -12px;

  /* formă ușor neregulată */
  width: var(--size);
  height: var(--size);
  border-radius: 50%;

  /* aspect NATURAL */
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255,255,255,0.98),
      rgba(255,255,255,0.85) 40%,
      rgba(255,255,255,0.45) 65%,
      rgba(255,255,255,0.15) 100%
    );

  /* foarte important pentru realism */
  filter: blur(0.6px);
  opacity: var(--opacity);

  animation-name: snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes snow-fall {
  to {
    transform: translate(var(--drift), 110vh);
  }
}

/* conținutul peste ninsoare */
#wrapper {
  position: relative;
  z-index: 1;
}
@media (max-width: 991px) {
    .content-box {
        width: 100%;
        margin-bottom: 12px;
    }
}
@media (max-width: 767px) {
    .content-box {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}
@media (max-width: 480px) {
    .content-box {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}
.content-box h2 { margin: 0 0 10px; }
.content-box h3 { margin: 14px 0 6px; }
.content-box p { margin: 0 0 10px; line-height: 1.55; }
.note { font-size: 16px; opacity: 0.85; padding: 10px;  }

/* =====================================================
   GAME PLAYER – container dedicat (CLS safe)
   ===================================================== */

.game-player{
  width: 100%;
  max-width: 965px;
  padding: 15px;
  display: flex;
  justify-content: center;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0,0,0,.9);
  background:rgba(255, 255, 255, .3);
  border: 1px solid #9e0b0e;
  text-align:center
}

/* iframe joc */
.game-iframe{
  width: 100%;
  height: 650px;
  display: block;
  border: 0;
  background: transparent;
  border-radius: 6px;
}

/* responsive */
@media (max-width: 900px){
  .game-iframe{
    height: 75vh;
    min-height: 520px;
  }
}

/* tablet / mobil */
@media (max-width: 900px){
  .game-iframe{
    height: 75vh;
    min-height: 520px;
  }
}

/* Phones: show ONLY the game (Outspell + Wordmeister + Scrabble pages) + reserve space for MV sticky */
@media (max-width: 600px){

  :root{
    --mv-sticky-h: 90px; /* ajusteaza 80-120px dupa sticky */
  }

  html, body{
    height: 100%;
    margin: 0;
    padding: 0;
  }

  /* 1) ascunde elementele de pagina (nu ascundem "tot body", ca sa nu omoram sticky Mediavine) */
  #wrapper > .header,
  nav.fixed,
  #bodyarea > .subarea,
  .leftarea,
  .leaderboard,
  article.content-box,
  section.content-box,
  #wrapper > br,
  #bodyarea > br,
  /* footer-ul tau e ultimul div mare din bodyarea in paginile /play */
  #bodyarea > div:last-child{
    display: none !important;
  }

  /* 2) full viewport pentru containerul jocului */
  #wrapper,
  #bodyarea{
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .rightarea,
  .game-player{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    /* lasa loc jos pentru sticky Mediavine */
    bottom: calc(var(--mv-sticky-h) + env(safe-area-inset-bottom, 0px)) !important;

    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    float: none !important;
    z-index: 10 !important;
  }

  /* 3) iframe umple containerul de joc (include si scrabble.html care foloseste .iframe-default) */
  .rightarea iframe,
  .game-player iframe,
  .game-iframe,
  .iframe-default{
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    display: block !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
}
