@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&display=swap');

:root {
    --primary-blue: #0789e1;
    --light-blue: #c9e1f0;
    --shadow: #8bb3cc;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
	min-width: 400px;
}

body {
    margin: 0;
    font-family: 'Raleway', sans-serif; 
}

header {
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas:
        "logo account-menu"
        "logo title"
        "logo icons";
	height: 120px;
}

header * {
    display: flex;
    flex-wrap: wrap;
}

header section.logo {
	grid-area: logo;
    width: 120px;
	height: 120px;
}

header section.logo img {
    max-width: 120px;
    min-width: 120px;
}

header section.account-menu {
	grid-area: account-menu;
	justify-content: flex-end;
}

header section.account-menu div.region {
	width: 60%;
}

header section.account-menu nav {
	display: flex;
	justify-content: flex-end;
	width: 100%;
	margin: auto;
	margin-bottom: 20px;
}

header section.account-menu .contextual-region .contextual {
	display: none;
}

header h1 {
	grid-area: title;
    max-width: 50%;
    margin: auto;
    color: var(--primary-blue);
	font-size: 2.2em;
	font-weight: 800;
	text-align: center;
}

header section.icons {
	grid-area: icons;
    justify-content: flex-end;
	margin-top: 10px;
	margin-right: 10px;
}

header section.icons section.icon {
    margin: 0 5px;
}

header section.icons section.icon a {
    font-size: 150%;
    margin: auto 0 0 0;
    color: var(--primary-blue);
    border: 0;
    text-decoration: none;
}

@media (max-width: 980px) {
header {
    display: grid;
    grid-template-columns: 120px 1fr 8fr 8fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
        "logo unused account-menu icons"
        "logo title title title";
	height: 120px;
}

header h1 {
	font-size: 1.9em;
	font-weight: 700;
    max-width: 80%;
}

header section.icons,
header section.account-menu nav {
	align-items: flex-start;
}

header section.account-menu nav {
	margin-top: 0;
}
}

@media (max-width: 680px) {
	header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 120px 120px 1fr;
    grid-template-areas:
        "logo logo logo"
        "title title title"
		"account-menu unused icons";
	height: auto;
}

header section.logo {
    width: 100%;
	display: flex;
	justify-content: center;
}

header section.account-menu,
header section.account-menu nav {
	justify-content: flex-start;
	align-items: flex-start;
}

header section.account-menu nav {
	margin-top: 0;
	margin-left: 10px;
}
}

nav.navigation.menu--main {
    border-style: dotted;
    border-width: 1px 0;
    margin: 15px 0 10px 0;
    font-weight: 500;
}

nav.navigation ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

nav.navigation ul li {
    display: inline-block;
}

nav.navigation ul li a,
nav.navigation ul li span{
    display: inline-block;
    margin: 10px 10px;
}

nav.navigation ul li:hover a,
nav.navigation ul li:hover span {
    margin: 7px 10px;
}

nav.navigation ul li ul {
    display: none;
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    margin-top: 0px;
    min-width: 153px;
    max-width: 270px;
}

nav.navigation ul li ul li {
    width: 100%;
}

nav.navigation ul li:hover {
    border-style: solid;
    border-width: 3px 0;
    border-color: var(--primary-blue);
}

nav.navigation ul li:hover ul,
nav.navigation ul li:focus ul{
    display: block;
}

nav.navigation ul li a {
    color: inherit;
    text-decoration: none;
}

section.images {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

section.images img {
    max-width: 33.3333%;
    min-width: 33.3333%;
    opacity: 1;
    height: 20vw;
}

.fade-in {
    animation-name: fade-in;
}

.appear-first {
    animation-duration: 3s;
}

.appear-second {
    animation-duration: 6s;
}

.appear-third {
    animation-duration: 9s;
}

@keyframes fade-in {
    0% {opacity:0;}
    100% {opacity:1;}
}

main {
    font-weight: 300;
    display: flex;
    flex-wrap: wrap;
    background-color: var(--light-blue);
    padding: 1% 0;
}

main section, main > div {
    margin: 15px;
    padding: 3% 2% 1% 2%;
    background-color: #ffffff;
}

main section.highlighted {
    background-color: var(--primary-blue);
    border: 0;
    color: #ffffff;
}

main section.highlighted a, main section.highlighted a:visited {
    color: #ffffff;
}

main section.highlighted h1,
main section.highlighted h2,
main section.highlighted h3,
main section.highlighted h4,
main section.highlighted h5,
main section.highlighted h6 {
	color: #ffffff;
}

main section.col-slim {
    width: calc(93% / 3);
    min-width: 350px;
    flex-grow: 1;
}

main section.col-wide, main > div {
    width: calc(93% / 3 * 2 + 2%);
    min-width: 350px;
    flex-grow: 2;
}

main section.col-full {
	flex-basis: 100%;
	width: 100%;
	flex-grow: 2;
}

main section h2 {
    margin: auto;
    text-align: center;
}

footer {
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 30px 3%;
    font-size: 75%;
}

footer div.region-footer h1,
footer div.region-footer h2,
footer div.region-footer h3,
footer div.region-footer h4,
footer div.region-footer h5,
footer div.region-footer h6 {
	color: #ffffff;
    font-weight: 600;
}

footer .footer-container {
    display: flex;
    flex-wrap: wrap;
}

footer .footer-container section {
    flex-grow: 1.5;
}

footer a {
	color: #ffffff;
}

input, select {
	padding: 5px;
}

div.text-formatted h1,
div.text-formatted h2,
div.text-formatted h3,
div.text-formatted h4,
div.text-formatted h5,
div.text-formatted h6 {
	color: var(--primary-blue);
}

/* Login */

div#edit-name--description {
	display: none;
}

div#edit-pass--description {
	display: none;
}

input::placeholder {
	font-size: 80%;
}

div.js-form-item label[for='edit-name'] {
	display: none;
}

div.js-form-item label[for='edit-pass'] {
	display: none;
}

form#user-login-form div {
    text-align: center;
}

form#user-login-form input {
    max-width: 80%;
}

/* Nodes */

div.node__content {
	width: 80%;
	margin: auto;
}

div.node__content div.field--name-title-text {
	box-shadow: none;
	color: var(--primary-blue);
	font-size: 120%;
	font-weight: 600;
	margin-bottom: 15px;
	text-align: center;
}

div.node__content div.field__label {
	color: var(--primary-blue);
}

div.node__content img {
	margin: 0 20px 20px 0;
	max-width: 80%;
    height: auto;
}

/* Views */

div.view-header h1,
div.view-header h2,
div.view-header h3,
div.view-header h4,
div.view-header h5,
div.view-header h6 {
	color: var(--primary-blue);
}

div.view div.view-header h2 {
	color: var(--primary-blue);
	margin-top: 20px;
}

div.view-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
}

div.views-row {
	border: 1px solid var(--light-blue);
	padding: 10px;
	margin: 10px;
}

section.highlighted div.view div.view-header h1, section.highlighted div.view div.view-header h2 {
	color: #ffffff;
	margin-top: 0;
	margin-bottom: 20px;
}

section.highlighted div.views-row {
	border: 0;
	padding: 0;
	width: 100%;
}

/* Alosztályok */

div.view-alosztalyok div.views-row {
	margin: 10px 10px 10px 0;
	min-width: 200px;
	max-width: 31%;
}

div.view-alosztalyok div.views-row div.views-field-title {
	color: var(--primary-blue);
	font-size: 120%;
	font-weight: 600;
}

div.view-alosztalyok div.views-row div.views-field-field-uj div.field-content {
	color: var(--primary-blue);
	display: none;
}

div.view-alosztalyok div.views-row div.views-field-title,
div.view-alosztalyok div.views-row div.views-field-field-az-esemeny-datuma {
	text-align: center;
	margin: 10px 0;
}

div.view-alosztalyok div.views-row div.views-field-view-node {
	text-align: right;
	margin: 10px 0;
}

div.view-alosztalyok div.views-row div.views-field-field-kep img {
	display: block;
	margin: auto;
}

/* Események */

article.node--type-hir img {
    max-width: 100%;
}

div.node__content div.field--name-field-az-esemeny-datuma {
	text-align: center;
}

div.node__content div.field--name-field-kep img {
	display: block;
	margin: auto;
}

div.view-esemenyek div.views-row {
	margin: 10px 10px 10px 0;
	min-width: 350px;
	max-width: 48%;
}

div.view-esemenyek div.views-row img {
	max-width: 100%;
	max-height: 400px;
	height: auto;
}

div.view-esemenyek div.views-row div.views-field-title {
	color: var(--primary-blue);
	font-size: 120%;
	font-weight: 600;
}

div.view-esemenyek div.views-row div.views-field-field-uj div.field-content {
	color: var(--primary-blue);
	display: none;
}

div.view-esemenyek div.views-row div.views-field-title,
div.view-esemenyek div.views-row div.views-field-field-az-esemeny-datuma {
	text-align: center;
	margin: 10px 0;
}

div.view-esemenyek div.views-row div.views-field-view-node {
	text-align: right;
	margin: 10px 0;
}

div.view-esemenyek div.views-row div.views-field-field-kep img {
	display: block;
	margin: auto;
}

div.view-kiemelt-esemenyek div.views-row {
	margin: 10px 10px 10px 0;
	min-width: 48%;
	max-width: 48%;
}

div.view-kiemelt-esemenyek div.views-row img {
	max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
}

@media (max-width: 520px) {
	div.view-kiemelt-esemenyek div.views-row {
	max-width: 65%;
}
}

div.view-kiemelt-esemenyek div.more-link {
	text-align: left;
	margin: 25px 10px 10px 10px;
	font-weight: bold;
}

div.view-kiemelt-esemenyek div.views-row div.views-field-title {
	color: var(--primary-blue);
	font-size: 120%;
	font-weight: 600;
}

div.view-kiemelt-esemenyek div.views-row div.views-field-field-uj div.field-content {
	color: var(--primary-blue);
	display: none;
}

div.view-kiemelt-esemenyek div.views-row div.views-field-title,
div.view-kiemelt-esemenyek div.views-row div.views-field-field-az-esemeny-datuma {
	text-align: center;
	margin: 10px 0;
}

div.view-kiemelt-esemenyek div.views-row div.views-field-view-node {
	text-align: right;
	margin: 10px 0;
}

div.view-kiemelt-esemenyek div.views-row div.views-field-field-kep img {
	display: block;
	margin: auto;
}

div.field__item > video {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
}


/* Könyvek */

input#edit-submit-konyvek{
	display: block;
	margin: auto;
	margin-bottom: 25px;
}

div.view-konyvek div.views-row {
	margin: 10px 10px 10px 0;
	width: 350px;
}

div.view-konyvek div.views-row.highlighted {
	background-color: var(--primary-blue);
	color: #ffffff;
}

div.view-konyvek div.views-row.highlighted h2,
div.view-konyvek div.views-row.highlighted a,
div.view-konyvek div.views-row.highlighted div.views-field-title,
div.view-konyvek div.views-row.highlighted div.views-field-field-uj div.field-content {
	color: #ffffff;
}


div.view-konyvek div.views-row div.views-field-title {
	color: var(--primary-blue);
	font-size: 120%;
	font-weight: 600;
}

div.view-konyvek div.views-row div.views-field-field-uj div.field-content {
	color: var(--primary-blue);
	display: none;
}

div.view-konyvek div.views-row div.views-field-field-megvasarolhato {
	margin: 10px 0;
}

div.view-konyvek div.views-row div.views-field-title,
div.view-konyvek div.views-row div.views-field-field-szerzo,
div.view-konyvek div.views-row div.views-field-field-mufaj,
div.view-konyvek div.views-row div.views-field-field-terjedelem,
div.view-konyvek div.views-row div.views-field-field-ar-ft-db- {
    max-width: 320px;
	text-align: center;
	margin: 10px 0;
}

div.view-konyvek div.views-row div.views-field-field-boritokep img {
	display: block;
	margin: auto;
	border: 1px solid var(--primary-blue);
}

div.view-konyvek div.views-row div.views-field-field-letoltheto-verzio,
div.view-konyvek div.views-row div.views-field-field-pdf-verzio {
    display: inline-block;
    width: 50%;
    padding: 0 30px;
    margin-top: 40px;
}

div.view-konyvek div.views-row div.views-field-field-pdf-verzio {
    text-align: right;
}

div.view-konyvek div.views-row div.views-field-field-letoltheto-verzio a,
div.view-konyvek div.views-row div.views-field-field-pdf-verzio a,
div.view-konyvek div.views-row div.views-field-field-hangoskonyv a{
    text-decoration: none;
}

div.view-konyvek div.views-row div.views-field-field-hangoskonyv div.field-content {
    text-align: center;
    margin-top: 2em;
}

div.view-konyvek div.views-row div.views-field-view-node {
	margin: 30px 0 10px 0;
	text-align: right;
}

article.node--type-olvasnivalo div.field--name-title-text {
	font-size: 1.5em;
}

article.node--type-olvasnivalo div.field--name-field-ar-ft-db-,
article.node--type-olvasnivalo div.field--name-field-szerzo,
article.node--type-olvasnivalo div.field--name-field-mufaj,
article.node--type-olvasnivalo div.field--name-field-terjedelem {
	text-align: center;
	margin: 10px 0 0 0;
}

article.node--type-olvasnivalo div.field--name-field-ar-ft-db-,
article.node--type-olvasnivalo div.field--name-field-terjedelem {
	margin: 15px 0 30px 0;
}

article.node--type-olvasnivalo div.field--name-field-boritokep img {
	display: block;
	margin: auto;
	border: 1px solid var(--primary-blue);
}

/* Olvasnivalók */

div.view-olvasnivalok table {
  border: 1px solid var(--light-blue);
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  margin-top: 20px;
}

div.view-olvasnivalok table thead th {
  border: 0;
  border-bottom: 1px solid var(--light-blue);
  font-size: 11pt;
  font-weight: bold;
  text-align: left;
  padding: 10px;
}

div.view-olvasnivalok table thead th:nth-child(1) {
    width: 30px;
}

div.view-olvasnivalok table thead th:nth-child(4) {
    width: 15%;    
}

div.view-olvasnivalok table thead th:nth-child(5),
div.view-olvasnivalok table thead th:nth-child(6),
div.view-olvasnivalok table thead th:nth-child(7) {
  width: 10%;
}

div.view-olvasnivalok table tbody tr {
  border-bottom: 1px solid var(--light-blue);
}

div.view-olvasnivalok table tbody tr td {
  padding: 10px;
}

div.view-olvasnivalok table tbody tr td.is-active {
  background-color: #ffffff;
}

div.view-olvasnivalok table tr.odd {
  background-color: #ffffff;
}

div.view-olvasnivalok table tr.even {
  background-color: var(--light-blue);
}

div.view-olvasnivalok table a {
  color: var(--primary-blue);
  text-decoration: none;
}

div.view-olvasnivalok table i {
    color: var(--primary-blue);
}

@media (max-width: 900px) {
    div.view-olvasnivalok table {
        font-size: 80%;   
    }
}

div.view-olvasnivalok table thead th:nth-child(5),
div.view-olvasnivalok table tbody td:nth-child(5) {
    text-align: right;
}

@media (max-width: 780px) {
    div.view-olvasnivalok table thead th:nth-child(5),
    div.view-olvasnivalok table tbody td:nth-child(5) {
        display: none;
    }
    
    div.view-olvasnivalok table thead th:nth-child(6),
    div.view-olvasnivalok table thead th:nth-child(7) {
        width: 12%;
    }
}

@media (max-width: 760px) {
    div.view-olvasnivalok table thead th:nth-child(4),
    div.view-olvasnivalok table tbody td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 760px) {
    div.view-olvasnivalok table thead th:nth-child(6),
    div.view-olvasnivalok table thead th:nth-child(7) {
        width: 14%;
    }
}

@media (max-width: 640px) {
    div.view-olvasnivalok table {
        font-size: 75%;   
    }
}


/* Tanítók */

div.node__content div.field--name-field-elt {
	text-align: center;
}

div.view-tanitok div.views-row {
	min-width: 312px;
}

div.view-tanitok div.views-row div.views-field-title {
	font-size: 120%;
	font-weight: 600;
}

div.view-tanitok div.views-row div.views-field-title,
div.view-tanitok div.views-row div.views-field-field-elt {
	text-align: center;
	margin: 10px 0;
}
div.view-tanitok div.views-row div.views-field-field-elonezeti-portre img {
	display: block;
	margin: auto;
}

/* Fórum */

.forum table {
  border: 1px solid var(--light-blue);
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.forum table thead th {
  border: 0;
  border-bottom: 1px solid var(--light-blue);
  font-size: 11pt;
  font-weight: bold;
  text-align: left;
  padding: 10px;
}

.forum table thead th:nth-child(1) {
  width: 50%;
}

.forum table tbody tr {
  border-bottom: 1px solid var(--light-blue);
}

.forum table tbody tr td {
  padding: 10px;
}

.forum table tr.odd {
  background-color: #ffffff;
}

.forum table tr.even {
  background-color: var(--light-blue);
}

.forum table a {
  color: var(--primary-blue);
}

article.node--type-forum {
	border: 1px solid var(--light-blue);
}

article.node--type-forum footer {
	background-color: var(--light-blue);
	color: #000000;
	padding: 10px;
}

article.node--type-forum footer a {
	color: #000000;
}

article.node--type-forum div.node__content {
	padding: 10px;
}

section.field--type-comment {
	padding: 0;
}

section.field--type-comment article {
	margin-bottom: 20px;
}

section.field--type-comment div.content {
	font-size: 110%;
	padding: 10px;
	clear: both;
}

section.field--type-comment div.content h3 {
	font-size: 87%;
}

section.field--type-comment div.content ul {
	padding: 10px 0 0 0;
	font-size: 80%;
}

section.field--type-comment div.content ul li {
	padding: 0 10px 0 0;
}

section.field--type-comment div.content ul a {
	color: var(--primary-blue);
}

article.comment {
	border: 1px solid var(--light-blue);
	margin: 15px 0;
}

article.comment mark i {
	margin: 5px;
	color: var(--primary-blue);
}

article.node--type-forum a {
	color: var(--primary-blue);
}

article.node--type-forum form {
	padding: 10px;
}

footer.node__meta {
	margin-bottom: 25px;
}

article.profile div.form-item {
    display: none;
}

h2.comment-form__title {
    color: var(--primary-blue);
}

article.comment a.permalink {
    display: none;
}

div.js-form-item-subject-0-value {
    display: none;
}

article.comment > div > ul > li.comment-reply {
    display: none;
}

article.comment > footer > article > div.field.field--name-user-picture.field--type-image.field--label-hidden.field__item > a > img {
}

footer.comment__meta {
    height: 120px;
}

article.profile {
    float: left;
}

div.text-format-wrapper div.filter-wrapper {
    display: none;
}

#edit-captcha-response--description {
    margin-top: 10px;
}

body > div.dialog-off-canvas-main-canvas > div > main > section > article > footer {
    display: none;
}

/* Tagoknak */

div.view-tagoknak-szolo-dokumentumok table {
  border: 1px solid var(--light-blue);
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  margin-top: 20px;
}

div.view-tagoknak-szolo-dokumentumok table thead th {
  border: 0;
  border-bottom: 1px solid var(--light-blue);
  font-size: 11pt;
  font-weight: bold;
  text-align: left;
  padding: 10px;
}

div.view-tagoknak-szolo-dokumentumok table thead th:nth-child(1) {
  width: 50%;
}

div.view-tagoknak-szolo-dokumentumok table tbody tr {
  border-bottom: 1px solid var(--light-blue);
}

div.view-tagoknak-szolo-dokumentumok table tbody tr td {
  padding: 10px;
}

div.view-tagoknak-szolo-dokumentumok table tbody tr td.is-active {
  background-color: #ffffff;
}

div.view-tagoknak-szolo-dokumentumok table tr.odd {
  background-color: #ffffff;
}

div.view-tagoknak-szolo-dokumentumok table tr.even {
  background-color: var(--light-blue);
}

div.view-tagoknak-szolo-dokumentumok table a {
  color: var(--primary-blue);
}


div.view-tagoknak-szolo-dokumentumok table caption {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 120%;
  margin-bottom: 15px;
}

div.view-tagoknak-szolo-dokumentumok table caption details {
  display: none;
}


/* Misc */

main a {
	color: var(--primary-blue);
}

div[data-drupal-messages] {
	flex-basis: 100%;
	width: 100%;
	margin: 0 15px;
}

input[type="submit"] {
	border: 1px solid var(--primary-blue);
	background-color: var(--light-blue);
}

audio {
    margin-top: 2em;
    width: 100%;
}