@charset "utf-8";
/* CSS Document */


/* Spelets CSS */
#spelet {
	margin: 0 auto;
	width: 100%;
	max-width: 860px;
	padding: 20px;
	background: #581890;
	color: #fff;
	border-radius: 20px;
	-webkit-box-shadow: inset 0px 0px 4px 0px #ac77db, 0px 0px 10px 0px #341656; 
	box-shadow: inset 0px 0px 4px 0px #ac77db, 0px 0px 10px 0px #341656;
	transition: 0.5s;
}

#spel_datum {
	margin: 0;
	text-align: right;
	font-size: 90%;
	font-style: italic;
}

#spelplan {
	position: relative;
}

#spelplan h1 {
	color: #fff;
	text-align: center;
}

#spelplan a {
	color: #fff;
	text-decoration: underline;
}
#spelplan a:hover {
	color: #fbd12f;
	text-decoration-line: underline;
	text-decoration-style: dotted;
}

#spelbeskrivning p {
	margin: 15px 0 0 0;
	font-size: 1.1rem;
	text-align: center;
}

#spelmeddelande {
	/*position: relative;
	min-height: 60px;*/
	height: 0;
	/*width: 100%;*/
	margin: 0;
	border-radius: 4px;
	z-index: 2000;
	text-align: center;
}

#spelmeddelande #spelinforuta {
	/*display: inline-block;
	margin: 10px 0 0 0;*/
	padding: 12px 24px;
	background: #2c46c7;
	background: linear-gradient(180deg,rgba(44, 70, 199, 1) 0%, rgba(26, 43, 131, 1) 100%);
	color: #fff;
	border-radius: 10px;
	border-radius: 10px;
	animation-name: tonaUt;
	/*animation-delay: 1.5s;
	animation-duration: 1.5s;*/
	animation-duration: 2s;
	animation-fill-mode: forwards;
	/*position: absolute;*/
	bottom: 0;
	left: 0;
	margin-inline: auto; 
	width: fit-content;
}

#spelinforuta.error {
	display: block;
}

#resultatrubrik {
	text-align: center;
}

#resultatrubrik h3 {
	margin: 10px 0 5px 0;
	font-size: 1.8rem;
}

#resultatmeddelande {
	text-align: center;
}

#spelomgang_slut {
	position: absolute;
	bottom: -20px;
	left: 0;
	width: 100%;
	background: #5a8451;
	color: #fff;
	border-radius: 4px;
	z-index: 2000;
}
#spelomgang_slut p {
	margin: 0;
	padding: 5px;
}

#spelplan_halvor {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-content: flex-start;
	gap: 20px;
}

#spelplan_halvor div {
	max-width: 50%;
	cursor: pointer;
}
#spelplan_halvor div:hover {
	text-decoration: underline;
}

.forklaring {
	margin: 0;
	padding: 0px;
	background: #fff;
	color: #fff;
	height: 0;
	opacity: 0;
	transition: 0.5s;
	border-radius: 0;
}
.forklaring.aktiv {
	height: auto;
	opacity: 1;
	margin: 0 0 20px 0;
	padding: 10px;
	background: #1b6322;
	background: linear-gradient(135deg,rgba(27, 99, 34, 1) 0%, rgba(52, 133, 62, 1) 100%);
	border-radius: 10px;
	transition: 0.5s;
}
.forklaring.avslutad {
	margin-bottom: 10px!important;
	transition: 0.5s;
}

.forklaring h4 {
	margin: 0 0 6px 0;
	font-size: 1.2rem;
	transition: 0.5s;
}
.forklaring.avslutad h4 {
	margin-bottom: 2px;
	font-size: 1.1rem;
	transition: 0.5s;
}

.forklaring p {
	margin: 0;
	transition: 0.5s;
}
.forklaring.avslutad p {
	font-size: 0.9rem;
	transition: 0.5s;
}

#spelbrickor {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	justify-content: center;
	align-content: center;
	gap: 10px;
}

.spelbricka {
	padding: 10px;
	background: #fff;
	color: #2f2f2f;
	cursor: pointer;
	font-weight: bold;
	border-radius: 10px;
	-webkit-box-shadow: 0px 0px 6px 0px #fff; 
	box-shadow: 0px 0px 6px 0px #fff;
	word-break: break-all;
	transition: 0.5s;
}
/*.spelbricka:hover {
	background: #5e95ff;
}*/

.spelbricka.vald {
	background: #de9b0b;
	background: linear-gradient(180deg,rgba(222, 155, 11, 1) 0%, rgba(153, 106, 5, 1) 100%);
	color: #fff;
	transition: 0.5s;
}

.spelbricka.fullt {
	animation-name: fullFel;
	animation-duration: 1s;
	animation-fill-mode: forwards;
}

.spelbricka.fel_svar {
	animation-name: felSvar;
	animation-duration: 0.5s;
	animation-fill-mode: forwards;
	transition: 0.5s;
}

#gissa_knapp {
	display: block;
	z-index: 100;
	/*width: 100%;*/
	min-width: 120px;
	margin: 15px auto 0 auto;
	padding: 15px;
	background: #4f4f4f;
	background: #2C262E;
	background: linear-gradient(180deg,rgba(87, 80, 89, 1) 0%, rgba(46, 35, 48, 1) 100%);
	border: none;
	color: #fff;
	border-radius: 6px;
	cursor: not-allowed;
	font-family: arial, sans-serif;
	font-size: 1.1rem;
	font-weight: bold;
	transition: 0.5s;
}
#gissa_knapp.redo {
	/*background: #287530;*/
	background: #318125;
	background: linear-gradient(180deg,rgba(52, 140, 38, 1) 0%, rgba(44, 112, 34, 1) 100%);
	-webkit-box-shadow: inset 0px 0px 4px 0px #ac77db, 0px 0px 10px 0px #341656; 
	box-shadow: inset 0px 0px 4px 0px #ac77db, 0px 0px 10px 0px #341656;
	cursor: pointer;
	transition: 0.5s;
	/*animation-name: gronAnimation;
	animation-duration: 2s;
	animation-direction: alternate;
	animation-iteration-count: infinite;*/
}
#gissa_knapp.redo:hover {
	background: #d3a937;
	background: linear-gradient(180deg,rgba(235, 186, 54, 1) 0%, rgba(173, 139, 45, 1) 100%);
	background: #de9b0b;
	background: linear-gradient(180deg,rgba(222, 155, 11, 1) 0%, rgba(153, 106, 5, 1) 100%);
	transition: 0.5s;
	/*animation-duration: 0s;*/
}

#facit_knapp a, #rensa_knapp a {
	padding: 8px 12px;
	background: #37376e;
	background: linear-gradient(180deg,rgba(55, 55, 110, 1) 0%, rgba(32, 20, 84, 1) 100%);
	border-radius: 5px;
	color: #fff;
	text-decoration: none;
}
#facit_knapp a:hover, #rensa_knapp a:hover {
	background: #201454;
	background: linear-gradient(180deg,rgba(32, 20, 84, 1) 0%, rgba(55, 55, 110, 1) 100%);
	color: #fff;
	text-decoration: none;
}

#betygsatt_spel {
	display: none;
	margin-bottom: 20px;
}

#betygsatt_spel .flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-content: flex-start;
	/*gap: 20px;*/
}

#betygsatt_spel .betygsruta {
	width: 30%;
	/*padding: 10px;*/
	text-align: center;
	cursor: pointer;
	opacity:1;
	transition: 0.5s;
}
#betygsatt_spel .betygsruta:hover {
	opacity: 0.6;
}

.betygsruta img {
	max-height: 150px;
}

.spelrad {
	display: flex;
	flex-wrap: wrap;
	flex-flow: row wrap;
	justify-content: center;
}

.spelrad_ruta {
	position: relative;
	width: 55px;
	height: 55px;
	padding: 16px 0;
	text-align: center;
	margin: 0 2px 5px 2px;
	background: #333;
	color: #fff;
	font-size: 30px;
	font-weight: bold;
	border: 2px solid #111;
	text-transform: uppercase;
	
}

.spelrad_ruta .bokstav {
	display: block;
	margin-top: 4px;
	cursor: default;
}

#meddelandeplats p {
	margin: 0 0 5px 0;
	font-size: 18px;
}

#gissningsinfo {
	margin: 15px 0;
	color: #fff;
	text-align: right;
}

#gissningsinfo p {
	float: right;
	max-width: 49%;
	margin: 0;
}

#gissningsinfo p#rekordtext {
	float: left;
	text-align: left;
}

#antal_fel, #tidigare_resultat {
	padding: 6px;
	background: #000;
	color: #fff;
	font-weight: bold;
	border-radius: 5px;
}

#antal_fel.noll_fel, #tidigare_resultat {
	background: #318125;
	background: linear-gradient(180deg,rgba(52, 140, 38, 1) 0%, rgba(44, 112, 34, 1) 100%);
}

#antal_fel.okad {
	/*background: #c41b4e;
	background: linear-gradient(180deg,rgba(196, 27, 78, 1) 0%, rgba(99, 11, 29, 1) 100%);*/
	animation-name: antaFelOkad;
	animation-duration: 0.75s;
	animation-fill-mode: forwards;
}

#tidigare_resultat.nytt_rekord {
	animation-name: ettNyttRekord;
	animation-duration: 1.5s;
	animation-fill-mode: forwards;
}

#vinstanimation {
	/*display: none;*/
	margin: 0 auto;
	/*height: 0px;*/
	overflow: hidden;
	animation-name: vinstAnimation;
	animation-duration: 5.5s;
	animation-fill-mode: forwards;
}

#dela_some {
	text-align: center;
}

.dela_some {
	display: inline-block;
	padding: 8px 10px;
	margin: 5px auto;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	background: #3b91a8;
	background: linear-gradient(180deg,rgba(59, 145, 168, 1) 0%, rgba(25, 110, 120, 1) 100%);
	color: #fff;
	text-decoration: none;
	font-size: 1.2rem;
}

#dela_mastodon {
	background: #6364FF;
	background: linear-gradient(180deg,rgba(99, 100, 255, 1) 0%, rgba(86, 58, 204, 1) 100%);
}
#dela_mastodon:hover {
	background: #563ACC;
	background: linear-gradient(180deg,rgba(86, 58, 204, 1) 0%, rgba(99, 100, 255, 1) 100%);
}




/* Animationer */
@keyframes tonaUt {
	0% {bottom: 30px; opacity: 1; display: inline-block;}
	50% {bottom: 110px;  opacity: 1; display: inline-block;}
	80% {bottom: 110px; opacity: 1; display: inline-block;}
	100% {bottom: 110px; opacity: 0; display: none;}
}

@keyframes antaFelOkad {
	0% {background: #fff;}
	25% {background: linear-gradient(180deg,rgba(196, 27, 78, 1) 0%, rgba(99, 11, 29, 1) 100%);}
	50% {background: linear-gradient(180deg,rgba(196, 27, 78, 1) 0%, rgba(99, 11, 29, 1) 100%);}
	75% {background: #fff;}
	100% {background: linear-gradient(180deg,rgba(196, 27, 78, 1) 0%, rgba(99, 11, 29, 1) 100%);}
}

@keyframes ettNyttRekord {
	0% {background: linear-gradient(180deg,rgba(52, 140, 38, 1) 0%, rgba(44, 112, 34, 1) 100%);}
	25% {background: linear-gradient(180deg,rgba(235, 133, 49, 1) 0%, rgba(161, 90, 18, 1) 100%);}
	50% {background: linear-gradient(180deg,rgba(52, 140, 38, 1) 0%, rgba(44, 112, 34, 1) 100%);}
	75% {background: #fff;}
	100% {background: linear-gradient(180deg,rgba(52, 140, 38, 1) 0%, rgba(44, 112, 34, 1) 100%);}
}

@keyframes felSvar {
	from {background:#fff;}
	to {background: linear-gradient(180deg,rgba(255, 28, 28, 1) 0%, rgba(209, 0, 0, 1) 100%);}
}

@keyframes fullFel {
	0%   {background: #fff; color: initial;}
	40%  {background: linear-gradient(180deg,rgba(255, 28, 28, 1) 0%, rgba(209, 0, 0, 1) 100%); color: #fff;}
	60%  { background: linear-gradient(180deg,rgba(255, 28, 28, 1) 0%, rgba(209, 0, 0, 1) 100%); color: #fff;}
	100% {background: #fff; color: initial;}
}

@keyframes gronAnimation {
	from {background:#287530;}
	to {background: #3e8c46;}
}

@keyframes vinstAnimation {
	0%   {height: 0px; opacity: 0;}
	10%  {height: auto; opacity: 1;}
	70%  {height: auto; opacity: 1;}
	80%  {height: 90px; opacity: 0.5;}
	100% {height: 0px; opacity: 0;}
}

/* Responsiv design */

/* --- För skärmar med bredden max 600px --- */
@media screen and (max-width: 600px) {
	#spelet {
		background: none;
		box-shadow: none;
		padding: 0;
	}
	
	.spel_lista h3 {
		clear: left;
	}
}