/*
Theme Name: OCDB - Only Connect Database
Theme URI: http://ocdb.cc
Author: Cory Anotado
Author URI: http://cory.anota.do
Description: A no-nonsense Only Connect episode and question database.
Version: 1.0
Tags: Game Show
Colors: #CFE0F2, #5372BD, #264779, #002A59
*/
@import url(//fonts.googleapis.com/earlyaccess/notosansegyptianhieroglyphs.css);
html {
	scroll-behavior: smooth;
	font-size: 22px;
}
body {
	width: 80vw;
	max-width: 1150px;
	margin: 2rem auto;
	font-family: urw-din, sans-serif;
	font-weight: 400;
	font-style: normal;
}
p{
	line-height:1.4em;
}
.container{
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 20px;
	padding: 2rem;
	box-sizing: border-box;
}
.container .footer .container{
	padding:0;
	background-color:none;
	border-radius:0;
}
body:after{
	content:"";
	position:fixed;
	top:0;
	height:100vh;
	left:0;
	right:0;
	z-index:-3;
	background: rgb(31, 59, 110);
	background: linear-gradient(187deg, rgba(167, 185, 215, 1) 0%, rgba(125, 174, 218, 1) 50%, rgba(217, 235, 223, 1) 100%);
	-webkit-background-size: cover;
	  -moz-background-size: cover;
	  -o-background-size: cover;
	  background-size: cover;
}
h1, h2, h3, h4, h5, h6 {
	font-family: roboto-slab, serif;
	font-weight: 700;
	font-style: normal;
	color: #264779;
}
h5 a{
	text-decoration:none;
	color:#5372BD;
	margin:0 .2rem;
}
.symbol{
	font-family: 'Noto Sans Egyptian Hieroglyphs', sans-serif;
}
.hilite{
	background-color:rgba(255,255,0,0.6);
	padding:2px;
}
.search-field{
	border-radius: 10px;
	border:0;
	padding: .3rem;
}
.search-submit{
	background-color: #5372BD;
	box-sizing: border-box;
	padding: .6rem;
	text-align: center;
	color: #CFE0F2;
	border-radius: 10px;
	text-shadow: 1px 1px 5px rgba(83, 115, 189, 0.5);
	box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
	-webkit-box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
	-moz-box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
	width: 100%;
	text-decoration: none;
	border: 0;
}
.topper {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.topper .logo img {
	width: 50%;
}
.topper .list .menu {
	list-style-type: none;
	display:flex;
}
.topper .list .menu li {
	display: inline;
	margin-right:.5rem;
}
.topper .list .menu li a{
	background-color: #002B5F;
	box-sizing: border-box;
	padding: .6rem;
	text-align: center;
	color: #CFE0F2;
	border-radius: 10px;
	text-shadow: 1px 1px 5px rgba(83, 115, 189, 0.5);
	box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
	-webkit-box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
	-moz-box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
	width: 100%;
	text-decoration:none;
}
 .toggle {
	 border:0;
	 padding:.3rem;
	 background-color: #002B5F;
	 color: #CFE0F2;
 	text-shadow: 1px 1px 5px rgba(83, 115, 189, 0.5);
 	box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
 	-webkit-box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
 	-moz-box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
	border-radius: 10px;
 }
.search-results .content{
	margin-bottom:2rem;
}

.search-results .content a{
	text-decoration:none;
	color:#5372BD;
}
.topper .search form{
	display:flex;
	font-size:.8rem;
}
.topper .search form label{
	display:inline-flex;
	align-items:center;
}
.topper .search form label i{
	margin-right:.5rem;
	color:#264779;
}
.topper .search form .search-submit{
	margin-left:.5rem;
}

.topper .list{
	flex-grow: 1;
	width: 100%;
	display: flex;
	align-items: end;
	justify-content: end;
}

.topper .list .menu li:last-child{
	margin-right:0;
}
.footer {
	margin-top: 1.5rem;
	font-size: .5rem;
}
.footer .container .locality {
	background-color: #002B5F;
	padding: .1rem;
	text-align: center;
	color: #CFE0F2;
	border-radius: 10px;
	text-shadow: 1px 1px 5px rgba(83, 115, 189, 0.5);
	box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
	-webkit-box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
	-moz-box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
}
.footer .container .locality a {
	color: #FFF;
}
.footer .container .locality p{
	padding: 0 1rem;
}
.episode-list {
	column-count: 2;
	margin-bottom: 2em;
	
	@media all and (max-width: 740px){ 
		column-count:1;
	}
	.series_grouping{
		margin-bottom:1em;
		break-inside: avoid-column;
	}
}
.episode-list h2{
	margin-top: 0;
}
.episode_link {
	margin-bottom:.3em;
}
.episode_link a{
	text-decoration:none;
	color:#5372BD;
}
.grid-container {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-template-rows: 1fr .2fr;
	row-gap: .3em;
	column-gap: .3em;
	grid-row-gap: .3em;
	grid-column-gap: .3em;
	grid-template-areas: "clue1 clue2 clue3 clue4" "answer answer answer answer" ". . . .";
}
#clue1, #clue2, #clue3, #clue4 {
  background: rgb(181, 220, 246);
  background: linear-gradient(
    173deg,
    rgba(181, 220, 246, 1) 0%,
    rgba(181, 220, 246, 1) 25%,
    rgba(186, 222, 247, 1) 30%,
    rgba(173, 212, 245, 1) 31%,
    rgba(173, 212, 245, 1) 100%
  );
  box-shadow: 0 0 19px rgba(83, 115, 189, 0.5) inset !important;
  padding: 0;
  border-radius: 10px;
  display: flex;
  flex-direction: column; /* Added */
  align-items: stretch;   /* Added */
  overflow: hidden;
  width: 100%;
  height: auto;
}
.clue, .wall-container .answer {
  display: flex;           /* Added */
  flex-direction: column;  /* Added */
  flex-grow: 1;            /* Changed from flex: 1; */
  text-align: center;
  text-decoration: none;
  color: #264779;
  /* Removed margin: auto auto; */
  text-shadow: 1px 1px 5px rgba(83, 115, 189, 0.5);
  margin: 0;               /* Added */
	min-height: 140px; 
	justify-content: center;
	padding: 0 .5em
}

#clue1 {
	grid-area: clue1;
}
#clue2 {
	grid-area: clue2;
}
#clue3 {
	grid-area: clue3;
}
#clue4 {
	grid-area: clue4;
}
.round {
	width: 100%;
}
.clue a {
	text-decoration: none;
	color: #264779;
}
.clue i {
	font-size: 3em;
}

.single-episode .clue p {
	margin: 0;
	padding: 0 .2rem;
	line-height:1rem;
}
.answer {
	grid-area: answer;
}
.answer .answer-show {
	background-color: #002B5F;
	box-sizing: border-box;
	padding: .3rem;
	text-align: center;
	color: #CFE0F2;
	border-radius: 10px;
	text-shadow: 1px 1px 5px rgba(83, 115, 189, 0.5);
	box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
	-webkit-box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
	-moz-box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
	width: 100%;
}
.answer-explanation {
	font-style: italic;
	font-size: .8rem;
	text-align: center;
}
.single-episode .content {
	margin-bottom: 3rem;
}
.wall-container {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr 1fr;
	grid-template-areas: "group1-clue1 group1-clue2 group1-clue3 group1-clue4 group1-answer" "group2-clue1 group2-clue2 group2-clue3 group2-clue4 group2-answer" "group3-clue1 group3-clue2 group3-clue3 group3-clue4 group3-answer" "group4-clue1 group4-clue2 group4-clue3 group4-clue4 group4-answer";
	row-gap: .3em;
	column-gap: .3em;
	margin-bottom:3rem;
	grid-row-gap: .3em;
	grid-column-gap: .3em;
}
.wall-container .cell{
	box-shadow: 0 0 19px rgba(83, 115, 189, 0.5) inset!important;
	padding: .2rem 0;
	border-radius: 10px;
	display: flex;

}
.single-episode .wall-container .group1{
	background: rgb(17, 52, 105);
	background: linear-gradient(173deg, rgba(22, 59, 112, 1) 0%, rgba(22, 59, 112, 1) 25%, rgba(17, 52, 103, 1) 30%, rgba(17, 52, 103, 1) 31%, rgba(17, 52, 103, 1) 100%);
	box-shadow: 0 0 19px rgba(15, 28, 63, 0.5) inset!important;
}
.single-episode .wall-container .group2{
	background: rgb(17, 52, 105);
	background: linear-gradient(173deg, rgba(62, 130, 116, 1) 0%, rgba(2, 130, 116, 1) 25%, rgba(2, 130, 116, 1) 30%, rgba(57, 118, 107, 1) 31%, rgba(57, 118, 107, 1) 100%);
	box-shadow: 0 0 19px rgba(15, 28, 63, 0.5) inset!important;
}
.single-episode .wall-container .group3{
	background: rgb(17, 52, 105);
	background: linear-gradient(173deg, rgba(96,22,57,1) 0%, rgba(96,22,57,1) 25%, rgba(96,22,57,1) 30%, rgba(84,20,48,1) 31%, rgba(84,20,48,1) 100%);
	box-shadow: 0 0 19px rgba(15, 28, 63, 0.5) inset!important;
}
.single-episode .wall-container .group4{
	background: rgb(17, 52, 105);
	background: linear-gradient(173deg, rgba(55,128,156,1) 0%, rgba(55,128,156,1) 25%, rgba(55,128,156,1) 30%, rgba(47,112,139,1) 31%, rgba(47,112,139,1) 100%);
	box-shadow: 0 0 19px rgba(15, 28, 63, 0.5) inset!important;
}
.single-episode .wall-container .group1-answer, .single-episode .wall-container .group2-answer, .single-episode .wall-container .group3-answer, .single-episode .wall-container .group4-answer{
	background: rgb(17, 52, 105)!important;
	background: linear-gradient(173deg, rgba(22, 59, 112, 1) 0%, rgba(22, 59, 112, 1) 25%, rgba(17, 52, 103, 1) 30%, rgba(17, 52, 103, 1) 31%, rgba(17, 52, 103, 1) 100%)!important;
	box-shadow: 0 0 19px rgba(15, 28, 63, 0.5) inset!important;
	border-radius:10px;
}
.wall-container .answer{
	text-align: center;
	text-decoration: none;
	flex: 1;
	margin: auto auto;
	text-shadow: 1px 1px 5px rgba(83, 115, 189, 0.5);
}
.wall-container .clue, .wall-container .answer{
	color:#FFF;
}
.group1-clue1 {
	grid-area: group1-clue1;
}
.group1-clue2 {
	grid-area: group1-clue2;
}
.group1-clue3 {
	grid-area: group1-clue3;
}
.group1-clue4 {
	grid-area: group1-clue4;
}
.group1-answer {
	grid-area: group1-answer;
}
.group2-clue1 {
	grid-area: group2-clue1;
}
.group3-clue1 {
	grid-area: group3-clue1;
}
.group4-clue1 {
	grid-area: group4-clue1;
}
.group2-clue2 {
	grid-area: group2-clue2;
}
.group3-clue2 {
	grid-area: group3-clue2;
}
.group4-clue2 {
	grid-area: group4-clue2;
}
.group2-clue3 {
	grid-area: group2-clue3;
}
.group2-clue4 {
	grid-area: group2-clue4;
}
.group2-answer {
	grid-area: group2-answer;
}
.group3-clue3 {
	grid-area: group3-clue3;
}
.group3-clue4 {
	grid-area: group3-clue4;
}
.group3-answer {
	grid-area: group3-answer;
}
.group4-clue3 {
	grid-area: group4-clue3;
}
.group4-clue4 {
	grid-area: group4-clue4;
}
.group4-answer {
	grid-area: group4-answer;
}
.vowel-round{
	margin-bottom:2rem;
}
.vowel-round .category{
	background-color: #002B5F;
	box-sizing: border-box;
	padding: .3rem;
	text-align: center;
	color: #CFE0F2;
	border-radius: 10px;
	text-shadow: 1px 1px 5px rgba(83, 115, 189, 0.5);
	box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
	-webkit-box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
	-moz-box-shadow: 0 0 30px rgba(0, 15, 33, 0.9) inset;
	width: 100%;
	margin-bottom:.7rem;
}
.vowel-round .missing-vowels .puzzle{
	background: rgb(181, 220, 246);
	background: linear-gradient(173deg, rgba(181, 220, 246, 1) 0%, rgba(181, 220, 246, 1) 25%, rgba(186, 222, 247, 1) 30%, rgba(173, 212, 245, 1) 31%, rgba(173, 212, 245, 1) 100%);
	color: #264779!important;
	box-sizing: border-box;
	padding: .3rem;
	font-size:1.2rem;
	text-align: center;
	border-radius: 10px;
	text-shadow: 1px 1px 5px rgba(83, 115, 189, 0.5);
	box-shadow: 0 0 19px rgba(83, 115, 189, 0.5) inset!important;
	padding: .5rem 0;
	width: 100%;
}

.vowel-round .missing-vowels .solution{
	font-style: italic;
	text-align:center;
	font-size:.7rem;
	padding:.3rem 0;
}
.vowel-round .missing-vowels{
	margin-bottom:.5rem;
}

/* Card Flip Maybe */

.answer .card .front{
	color:rgba(255,255,255,0.4);
}
.clue .card .front{
	color:rgba(0,40,86,0.4);
}
.answer-show.back p{
	margin:0;
	padding:0;
	font-size:.8rem;
	font-style:italic;
	color:rgba(255,255,255,0.4);
}
.picture_clue{
	overflow: hidden;
	position: relative;
	width: 100%;
	-webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);
}
.answer input, .clue input, .picture_clue input{
	display:none;
}
.picture_clue .back{
	height:100%;
	width:100%;
	box-sizing:border-box;
	position:absolute;
	left:0;
	top:0;
	box-shadow: 0 0 19px rgba(83, 115, 189, 0.5) inset!important;
	padding: 1.2rem 0;
	border-radius: 10px;
}
.answer .card .back, .clue .card .back, .picture_clue .card .back{
	display:none;
}
:checked + .card .back {
    display:block;
}
:checked + .card .front {
    display:none;
}
.wall-container .group1-answer, .wall-container .group2-answer, .wall-container .group3-answer, .wall-container .group4-answer{
	border-radius: 10px;
}
.grid-container label{
	display:flex;
	overflow:hidden;
}
.grid-container .answer label{
	display:block;
}
.grid-container label #clue2, .grid-container label #clue3, .grid-container label #clue4, .grid-container{
	flex-basis:100%;
}
@media all and (max-width: 740px) { 
	html{
		font-size:18px;
	}
	body{
		width: 95vw;
	}
	.grid-container {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr 1fr 1fr;
		row-gap: .3em;
		column-gap: .3em;
		grid-row-gap: .3em;
		grid-column-gap: .3em;
		grid-template-areas: "clue1 clue2" "clue3 clue4" "answer answer" ". .";
	}
	.topper{
		flex-direction:column;
		align-items:flex-start;
	}
	.topper .menu{
		padding:0;
	}
	.topper .logo img{
		width:30%;
		margin-bottom:1rem;
	}
	.topper .search{
		margin-bottom:1rem;
	}
	.wall-container .answer{
		min-height: 1.5em;
	}
	.wall-container {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr 1fr;
		grid-template-rows: 1fr 2em 1fr 2em 1fr 2em 1fr 2em 1fr;
		grid-template-areas: "group1-clue1 group1-clue2 group1-clue3 group1-clue4" "group1-answer group1-answer group1-answer group1-answer" "group2-clue1 group2-clue2 group2-clue3 group2-clue4" "group2-answer group2-answer group2-answer group2-answer" "group3-clue1 group3-clue2 group3-clue3 group3-clue4" "group3-answer group3-answer group3-answer group3-answer" "group4-clue1 group4-clue2 group4-clue3 group4-clue4" "group4-answer group4-answer group4-answer group4-answer";
		row-gap: 1em;
		column-gap: .3em;
	}
	.wall-container .group1-answer .cell, .wall-container .group2-answer .cell, .wall-container .group3-answer .cell, .wall-container .group4-answer .cell{
		min-height:1.5em;
		box-sizing:border-box;
		margin-bottom:1em;
	}
	.footer{
		font-size:0.6rem;
		line-height:1.2em;
	}
 }