/*!
Theme Name: anagennisitheme
Theme URI: http://underscores.me/
Author: mrm
Author URI: https://www.mccann.gr/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: anagennisitheme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* Box sizing rules */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body,
html {
	overflow-x: hidden;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
	list-style: none;
}

/* Set core root defaults */
html:focus-within {
	scroll-behavior: smooth;
}

/* Set core body defaults */
body {
	min-height: 100vh;
	text-rendering: optimizeSpeed;
	line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
	text-decoration-skip-ink: auto;
}

a {
	text-decoration: none;
}

/* Make images easier to work with */
img,
picture {
	max-width: 100%;
	display: block;
	height: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
	font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {

	html:focus-within {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

html {
	scroll-behavior: smooth;
}

html,
body {
	height: 100%;
}

body {
	text-size-adjust: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.no-scroll {
	overflow-y: hidden;
}

h1 {
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 1em;
}

h2 {
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 1em;
}

h3 {
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 1em;
}

h4 {
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 1em;
}

h5 {
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 1em;
}

h6 {
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 1em;
}

:root {
	--white: hsl(0deg, 0%, 100%);
	--black: hsl(0deg, 0%, 0%);
	--text-primary: #031520;
	--text-secondary: rgba(5, 42, 64, 0.8);
	--primary-200: #87bad7;
	--primary-300: #5f9fc5;
	--primary-400: #3685b2;
	--primary-500: #0d6aa0;
	--secondary-300: #f3cb95;
	--secondary-500: #eba94e;
	--neutral: #fff;
	--neutral-200: #efefef;
	--neutral-300: #e8e8e8;
	--neutral-400: #e0e0e0;
	--neutral-500: #d8d8d8;
	--neutral-600: #bababa;
}

.container,
.hero,
.mobile-header,
.footer__links,
.footer__copy {
	--container: 500px;
	padding: 0 max(1.5rem, 50vw - var(--container) / 2);
}

@media screen and (min-width: 768px) {

	.container,
	.hero,
	.mobile-header,
	.footer__links,
	.footer__copy {
		--container: 900px;
	}
}

@media screen and (min-width: 1145px) {

	.container,
	.hero,
	.mobile-header,
	.footer__links,
	.footer__copy {
		--container: 1145px;
	}
}

@media screen and (min-width: 1237x) {

	.container,
	.hero,
	.mobile-header,
	.footer__links,
	.footer__copy {
		--container: 1237px;
	}
}

@media screen and (min-width: 1485px) {

	.container,
	.hero,
	.mobile-header,
	.footer__links,
	.footer__copy {
		--container: 1485px;
	}
}

.desktop-header {
	--container: 500px;
	padding: 0 max(1.5rem, 50vw - var(--container) / 2);
}

@media screen and (min-width: 768px) {

	.desktop-header {
		--container: 900px;
	}
}

@media screen and (min-width: 1145px) {

	.desktop-header {
		--container: 1250px;
	}
}

@media screen and (min-width: 1485px) {

	.desktop-header {
		--container: 1485px;
	}
}

@media screen and (min-width: 1550px) {

	.desktop-header {
		--container: 1550px;
	}
}

.hero__text h1 {
	font: 600 36px/44px "Roboto", sans-serif;
	letter-spacing: 0.5;
}

@media screen and (min-width: 1024px) {

	.hero__text h1 {
		font: 600 58px/66px "Roboto", sans-serif;
	}
}

.quiz th {
	font: 600 20px/28px "Roboto", sans-serif;
	letter-spacing: 0.5;
}

@media screen and (min-width: 1024px) {

	.quiz th {
		font: 600 28px/44px "Roboto", sans-serif;
	}
}

.quiz tr {
	font: 600 18px/24px "Roboto", sans-serif;
	letter-spacing: 0.5;
}

@media screen and (min-width: 1024px) {

	.quiz tr {
		font: 600 20px/28px "Roboto", sans-serif;
	}
}

.hero__text p {
	font: 400 18px/28px "Roboto", sans-serif;
}

@media screen and (min-width: 1024px) {

	.hero__text p {
		font: 400 20px/30px "Roboto", sans-serif;
	}
}

.main-navigation-desktop h1,
.main-navigation-desktop a,
.main-navigation-desktop .submenu a,
.main-navigation-mobile .menu-item a,
.main-navigation-mobile .menu-item h1 {
	font: 600 16px/24px "Roboto", sans-serif;
}

a.button,
input.button {
	font: 400 14px/25px "Arimo", sans-serif;
	position: relative;
	background-color: var(--neutral-700);
	color: var(--off-white);
	padding: 12px 20px;
	border-radius: 8px;
	display: inline-block;
	justify-content: center;
	transition: background-color 0.2s ease, color 0.2s ease;
}

@media screen and (min-width: 1024px) {

	a.button,
	input.button {
		font: 400 16px/24px "Arimo", sans-serif;
	}
}

a.button:disabled,
input.button:disabled {
	opacity: 0.5;
}

a.button:hover,
input.button:hover {
	background-color: var(--neutral-500);
}

a.button:active,
input.button:active {
	background-color: var(--neutral-300);
}

a.button--bleed-right,
input.button--bleed-right {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.footer .menu {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.footer__links {
	padding-block: clamp(2rem, 1.0039840637rem + 4.2496679947vw, 4rem);
	background-color: var(--neutral-700);
	display: flex;
	justify-content: space-between;
	align-items: start;
	flex-wrap: wrap;
	gap: 3.5rem;
}

.footer__copy {
	padding-block: 2rem;
	background-color: var(--neutral-600);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: center;
	color: var(--neutral-300);
}

.footer__copy small {
	font: 400 16px/24px "Arimo", sans-serif;
}

.footer__homelink {
	flex: 0 1 14rem;
}

.footer__nav {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

@media screen and (max-width: 1023px) {

	.footer__nav {
		flex: 0 0 100%;
		display: block;
	}
}

@media screen and (max-width: 1023px) {

	.footer__social {
		flex: 0 0 100%;
		order: -1;
	}
}

.footer .nav[label="footer nav"] .menu {
	columns: 3 13rem;
	column-gap: 2rem;
}

@media screen and (max-width: 1023px) {

	.footer .nav[label="footer nav"] .menu {
		columns: unset;
	}
}

.footer .nav[label="footer nav"] .menu__item {
	color: var(--white);
	line-height: 1.5;
	transition: opacity 0.2s ease;
}

.footer .nav[label="footer nav"] .menu__item:hover {
	opacity: 0.75;
}

.footer .nav[label="footer nav"] .menu__link {
	display: block;
	color: inherit;
	text-decoration: none;
	padding-block: 0.5rem;
	font: 400 14px/25px "Arimo", sans-serif;
}

@media screen and (min-width: 1024px) {

	.footer .nav[label="footer nav"] .menu__link {
		font: 400 16px/24px "Arimo", sans-serif;
	}
}

.mobile-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 32px;
	background-color: white;
	height: 92px;
	width: 100%;
	z-index: 99;
}

.mobile-header .menu-logo {
	width: 84px;
}

.mobile-header .mobile-menu {
	z-index: 5;
}

.main-navigation-mobile {
	position: absolute;
	min-height: 100vh;
	width: 100vw;
	z-index: 20;
	background: white;
	transform: translateX(-100%);
	transition: all 0.4s ease-in;
}

.main-navigation-mobile.open {
	transform: translateX(0);
	overflow-y: scroll;
}

.main-navigation-mobile .menu-item {
	width: 100%;
	margin: 2px 0;
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 92px);
	position: relative;
	top: 92px;
	justify-content: center;
}

.main-navigation-mobile .menu-item a,
.main-navigation-mobile .menu-item h1 {
	color: #891f03;
	text-align: center;
	cursor: pointer;
	padding: 15px 20px;
	position: relative;
	cursor: pointer;
}

.main-navigation-mobile .menu-item a.menubutton,
.main-navigation-mobile .menu-item h1.menubutton {
	color: #891f03;
	margin: 24px 16px;
	background-color: var(--primary-500);
	border-radius: 30px;
}

.main-navigation-mobile .menu-item a.menubutton::after,
.main-navigation-mobile .menu-item h1.menubutton::after {
	content: "";
	background-image: url("./img/whitedown.svg");
	top: 20px;
	width: 20px;
	height: 14px;
	display: block;
	position: absolute;
	right: 20px;
	background-size: cover;
	background-repeat: no-repeat;
	transition: all 0.3s ease-in;
}

.main-navigation-mobile .menu-item .parent-menu-item {
	margin-bottom: 0;
}

.main-navigation-mobile .menu-item .parent-menu-item::after {
	content: "";
	background-image: url("./img/chevron-down.svg");
	top: 20px;
	width: 20px;
	height: 14px;
	display: block;
	position: absolute;
	right: 20px;
	background-size: cover;
	background-repeat: no-repeat;
	transition: all 0.3s ease-in;
}

.main-navigation-mobile .menu-item .parent-menu-item.rotate::after {
	transform: rotate(180deg);
}

.main-navigation-mobile .menu-item h2.has-submenu {
	position: relative;
}

.main-navigation-mobile .menu-item h2.has-submenu::after {
	content: "";
	background-image: url("./img/arrow-down.svg");
	top: 20px;
	width: 23px;
	height: 14px;
	display: block;
	position: absolute;
	right: 20px;
	background-size: cover;
	background-repeat: no-repeat;
	transition: all 0.3s ease-in;
}

.main-navigation-mobile .menu-item h2.has-submenu.rotate::after {
	transform: rotate(180deg);
}

.main-navigation-mobile .menu-item div:not(.misc) {
	display: none;
}

.main-navigation-mobile .menu-item .opened {
	display: block;
}

.main-navigation-mobile .submenu a:not(.account-link) {
	padding: 10px 25px;
	color: #891f03;
	padding: 6px 16px;
	display: block;
}

.main-navigation-mobile .has-secondlevel {
	position: relative;
}

.main-navigation-mobile .has-secondlevel::after {
	content: "";
	background-image: url("./img/chevron-down.svg");
	top: 9px;
	width: 20px;
	height: 14px;
	display: block;
	position: absolute;
	right: 20px;
	background-size: cover;
	background-repeat: no-repeat;
	transition: all 0.3s ease-in;
}

.main-navigation-mobile .has-secondlevel.open::after {
	transform: rotate(180deg);
}

.main-navigation-mobile .secondlevelmenu {
	flex-direction: column;
}

.mobile-header {
	display: flex;
}

.desktop-header {
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 20px;
	height: 126px;
	width: 100%;
	z-index: 99;
	background-color: white;
	transition: all 0.4s ease-in;
}

.desktop-header .menu-logo {
	width: 116px;
	margin: auto;
}

.desktop-header .mobile-menu {
	z-index: 100;
}

.desktop-header.scrolledheader {
	background-color: white;
	padding-block: 16px;
	height: 85px;
}

.desktop-header.scrolledheader .main-submenu.active {
	top: 72px;
}

.desktop-header.scrolledheader .menu-item .parent-menu-item.menubutton {
	background-color: white;
	color: var(--primary-500);
}

.desktop-header.scrolledheader .menu-item .parent-menu-item.menubutton::after {
	background-image: url("./img/bluedown.svg");
}

.desktop-header.scrolledheader .menu-item .parent-menu-item.menubutton:hover {
	background-color: white;
}

.item {
	position: relative;
	display: flex;
	align-items: center;
}

.main-navigation-desktop.justify-left .menu-item {
	justify-content: flex-end;
}

.main-navigation-desktop.open {
	transform: translateX(0);
}

.main-navigation-desktop .menu-item {
	width: 100%;
	margin: 2px 0;
	display: flex;
}

.main-navigation-desktop h1,
.main-navigation-desktop a {
	padding: 0 20px;
	color: #891f03;
	margin-bottom: 0;
}

.main-navigation-desktop .menu-item .parent-menu-item {
	cursor: pointer;
	margin-bottom: 0;
	position: relative;
	display: flex;
	align-items: center;
}

.main-navigation-desktop .menu-item .parent-menu-item::after {
	content: "";
	background-image: url("./img/whitedown.svg");
	width: 17px;
	height: 18px;
	display: block;
	position: relative;
	background-size: cover;
	background-repeat: no-repeat;
	margin-left: 10px;
	transition: all 0.3s ease-in;
}

.main-navigation-desktop .menu-item .parent-menu-item.rotate::after {
	transform: rotate(180deg);
}

.main-navigation-desktop .menu-item .parent-menu-item:hover::before {
	width: 87%;
}

.main-navigation-desktop .menu-item .parent-menu-item.menubutton {
	background-color: var(--primary-500);
	color: #891f03;
	padding: 18px 34px;
	border-radius: 25px;
}

.main-navigation-desktop .menu-item .parent-menu-item.menubutton::after {
	content: "";
	background-image: url("./img/whitedown.svg");
	width: 17px;
	height: 18px;
	display: block;
	position: relative;
	background-size: cover;
	background-repeat: no-repeat;
	margin-left: 10px;
	transition: all 0.3s ease-in;
}

.main-navigation-desktop .menu-item .parent-menu-item.menubutton:hover {
	background-color: var(--primary-400);
}

.main-navigation-desktop .has-secondlevel {
	position: relative;
}

.main-navigation-desktop .has-secondlevel::before {
	content: "";
	background-image: url("./img/chevron-down.svg");
	top: 9px;
	width: 20px;
	height: 14px;
	display: block;
	position: absolute;
	right: 20px;
	background-size: cover;
	background-repeat: no-repeat;
	transition: all 0.3s ease-in;
}

.main-navigation-desktop .has-secondlevel.open::before {
	transform: rotate(180deg);
}

.main-navigation-desktop .main-submenu {
	display: none;
}

.main-navigation-desktop .main-submenu.active {
	display: flex;
	border-radius: 8px;
	display: flex;
	background: white;
	position: absolute;
	right: 0;
	top: 93px;
	box-shadow: 0 8px 14px 4px rgba(18, 78, 86, 0.1);
}

.main-navigation-desktop .submenu {
	display: flex;
	flex-direction: column;
	min-width: auto;
}

.main-navigation-desktop .submenu a {
	padding: 10px 24px;
	color: var(--text-secondary);
	white-space: nowrap;
	position: relative;
}

.main-navigation-desktop .submenu a:hover {
	background-color: var(--neutral-200);
}

.main-navigation-desktop .submenu a:first-child:hover {
	border-radius: 8px 8px 0 0;
}

.main-navigation-desktop .submenu a:last-child:hover {
	border-radius: 0 0 8px 8px;
}

.main-navigation-desktop .submenu a:not(:last-child)::after {
	content: "";
	position: absolute;
	height: 1px;
	width: 100%;
	bottom: 0;
	left: 0;
	display: block;
	background-color: var(--neutral-200);
}

.main-navigation-desktop .submenu .secondlevelmenu {
	flex-direction: column;
}

.main-navigation-desktop .submenu .secondlevelmenu ::after {
	content: "";
	position: absolute;
	height: 1px;
	width: 100%;
	bottom: 0;
	left: 0;
	display: block;
	background-color: var(--neutral-200);
}

.main-navigation-desktop .has-submenu {
	margin-bottom: 16px;
}

.scolledheader .main-navigation-desktop .menu-item .parent-menu-item.menubutton {
	background-color: white;
	color: var(--primary-500);
}

.scolledheader .main-navigation-desktop .menu-item .parent-menu-item.menubutton::after {
	content: "";
	background-image: url("./img/bluedown.svg");
}

.scolledheader .main-navigation-desktop .menu-item .parent-menu-item.menubutton:hover {
	background-color: var(--neutral-200);
}

.desktop-header {
	display: none;
}

@media screen and (min-width: 1300px) {

	.desktop-header {
		display: flex;
	}
}

.menu-container {
	height: 95px;
}

@media screen and (min-width: 1300px) {

	.menu-container {
		height: 126px;
	}
}

header {
	position: fixed;
	z-index: 3;
}

.burger-button {
	cursor: pointer;
	width: 24px;
	height: 16px;
	position: relative;
	background: none repeat scroll 0 0 transparent;
	border: medium none;
	border-spacing: 0;
	list-style: none outside none;
	margin: 0;
	padding: 0;
	text-indent: 0;
}

.burger-button span {
	transition: all 0.3s ease;
	border-radius: 4px;
	position: absolute;
	width: 100%;
	height: 2px;
	left: 0;
	background-color: #891f03;
}

.burger-button span:first-child {
	top: 0;
}

.burger-button span:nth-child(2) {
	top: 6px;
}

.burger-button span:last-child {
	top: 12px;
}

.burger-button.open span:first-child {
	transform: rotate(45deg);
	top: 6px;
}

.burger-button.open span:nth-child(2) {
	opacity: 0;
	width: 0;
}

.burger-button.open span:last-child {
	transform: rotate(-45deg);
	top: 6px;
}

.social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	padding: 0;
	margin: 0;
	list-style-type: none;
}

.social__item {
	width: 1.5rem;
	height: 1.5rem;
	flex: 0 0 1.5rem;
}

.social__link {
	transition: opacity 0.2s ease;
}

.social__link:hover {
	opacity: 0.5;
}

#backtotop {
	position: fixed; /* Fixed/sticky position */
	bottom: 20px; /* Place the button at the bottom of the page */
	right: 10px; /* Place the button 30px from the right */
	cursor: pointer;
	z-index: 1000;
	background: white;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid hsl(218deg, 24%, 27%);
}

@media screen and (min-width: 1024px) {

	#backtotop {
		right: 30px; /* Place the button 30px from the right */
	}
}

#backtotop img {
	width: 24px;
	transform: rotate(180deg) translateY(3px);
}

.backtotop {
	opacity: 0;
	transform: translateY(80px);
	transition: all 1s linear;
}

.backtotop.newClass {
	opacity: 1;
	transform: translateY(0);
}

.hero {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	padding-top: 64px;
	padding-bottom: 64px;
	height: 100vh;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	background-position: bottom right;
	min-height: 600px;
}

@media screen and (min-width: 1024px) {

	.hero {
		flex-wrap: nowrap;
		justify-content: space-between;
	}
}

.hero__text {
	margin-bottom: 40px;
}

@media screen and (min-width: 1024px) {

	.hero__text {
		width: 48%;
	}
}

.hero__text h1 {
	color: white;
	text-align: center;
	margin-bottom: 8px;
}

@media screen and (min-width: 1024px) {

	.hero__text h1 {
		text-align: left;
		margin-bottom: 16px;
	}
}

.hero__text p {
	color: white;
	text-align: center;
	margin-bottom: 40px;
}

@media screen and (min-width: 1024px) {

	.hero__text p {
		text-align: left;
	}
}

.hero__image {
	width: 80%;
	margin: auto;
	position: relative;
}

@media screen and (min-width: 1024px) {

	.hero__image {
		margin: unset;
		margin-right: 28px;
		width: 40%;
	}
}

.hero__image img {
	position: relative;
	z-index: 2;
}

.hero__image::before,
.hero__image::after {
	content: "";
	position: absolute;
	background-color: var(--neutral-100);
}

.hero__image::after {
	top: -18px;
	left: -18px;
	z-index: 1;
	width: 40%;
	height: 60%;
}

@media screen and (min-width: 1024px) {

	.hero__image::after {
		top: -28px;
		left: -28px;
	}
}

.hero__image::before {
	bottom: -18px;
	right: -18px;
	z-index: 1;
	height: 40%;
	width: 60%;
}

@media screen and (min-width: 1024px) {

	.hero__image::before {
		bottom: -28px;
		right: -28px;
	}
}

.container {
	padding-top: 80px;
	padding-bottom: 40px;
}

.quiz {
	background-image: url("./img/bg.jpeg");
	background-size: cover;
	background-position: top;
}

.quiz .grifoi-logo {
	width: 160px;
	display: block;
	margin: 20px auto;
}

.quiz .table-responsive {
	overflow-x: auto;
}

.quiz table {
	border-collapse: collapse;
	box-shadow: 0 -1px 10px 0 rgba(172, 171, 171, 0.3);
	width: 100%;
}

.quiz th {
	color: #fff;
	background-color: #891f03;
	border-bottom: 1px solid white;
}

.quiz tr {
	border-bottom: 1px solid black;
}

.quiz th,
.quiz td {
	padding: 20px 30px;
}

.quiz .align-left {
	text-align: left;
}

.quiz .align-right {
	text-align: right;
}

.quiz.first-round tr:nth-child(2),
.quiz.first-round tr:nth-child(3),
.quiz.first-round tr:nth-child(4),
.quiz.first-round tr:nth-child(5),
.quiz.first-round tr:nth-child(6),
.quiz.first-round tr:nth-child(7),
.quiz.first-round tr:nth-child(8),
.quiz.first-round tr:nth-child(9),
.quiz.first-round tr:nth-child(10),
.quiz.first-round tr:nth-child(11),
.quiz.first-round tr:nth-child(12),
.quiz.first-round tr:nth-child(13) {
	background-color: green;
	color: white;
	border-bottom: 1px solid white;
}

.quiz.second-round tr:nth-child(2),
.quiz.second-round tr:nth-child(3),
.quiz.second-round tr:nth-child(4) {
	background-color: green;
	color: white;
	border-bottom: 1px solid white;
}

.quiz.finals tr:nth-child(2) {
	background-color: green;
	color: white;
}

main {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
