﻿body {
    background: #deebf7;
    color: #fff;
    font-size: 18px;
    margin: 0;
    padding: 0;
}
header {
    background: #0070c0;
    height: auto;
    margin-bottom: 150px;
    padding-bottom: 24px;
    position: relative;
}
header > div.logo {
    background: url('../assets/logo.png') no-repeat center top;
    background-size: 70% 70%;
    height: 119px;
    left: 50%;
    min-width: 136px;
    position: absolute;
    top: 100%;
    transform: translate(-50%, 0);
    width: 147px;
}
header > div.title {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    padding: 0 8px;
}
header > div.szechenyi {
    background: url('../assets/szechenyi-terv-plusz-logo.png') left top no-repeat;
    background-size: 316px 90px;
    height: 90px;
    margin-bottom: 24px;
    min-width: 316px;
    width: 316px;
	z-index: 10;
}
header > div.accessibility {
    display: flex;
    padding: 8px;
    position: absolute;
    top: 0;
    right: 0;
}
header > div.accessibility a {
    display: block;
    width: 35px;
    height: 35px;
    background: url('../assets/accessibility.png') no-repeat;
	z-index: 20;
}
body > nav {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 50px auto;
	overflow: hidden;
}
nav.container-fluid,
nav > .col-sm-6,
nav > .col-sm-4 {
    padding: 0;
}
nav > img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}
body .box a {
    display: block;
    border: 8px solid #deebf7;
    min-height: 200px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    text-decoration: none;
    padding: 80px 0 0 50px;
    background: rgba(255,255,255,0.5);
    transition: background ease 1s;
}
body .box a:hover {
    color: #fff;
    text-decoration: none;
    background: transparent;
}
nav > aside {
    position: absolute;
    bottom: -20px;
    right: 10px;
    text-align: right;
    font-size: 10px;
    color: #000;
}

body > section {
    display: none;
    position: relative;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    background: #0070c0;
    padding: 20px 5px;
    min-height: 400px;
}
section > .closebtn {
    position: absolute;
    top: 20px;
    right: 40px;
}
section > .closebtn a {
    color: #fff;
}
section > .closebtn a:hover {
    color: #ddd;
}

section h1 {
    padding-bottom: 30px;
    font-size: 22px;
}

section .strong {
    font-weight: bold;
    font-size: 22px;
}

.gallery-img {
    width: 320px;
}
.gallery-half-img {
    width: 320px;
    padding: 5px 0;
}

a {
    color: #fff;
    text-decoration: underline;
}
a:hover {
    color: #ddd;
}

@media (min-width: 320px) {
    header > div.logo {
        background-size: auto;
    }
    header > div.title {
        font-size: 15px;
    }
    body > section {
        padding: 20px 10px;
    }
    body .box a {
        min-height: 250px;
        font-size: 18px;
        padding-top: 100px;
    }
    section > .close a {
        top: 20px;
    }
    section h1 {
        font-size: 25px;
    }
    .gallery-img {
        width: 450px;
    }
    .gallery-half-img {
        width: 450px;
        padding: 5px;
    }
}
@media (min-width: 640px) {
    header {
        margin-bottom: 120px;
    }
    header > div.title {
        font-size: 18px;
    }
    body > section {
        padding: 20px;
    }
    body .box a {
        min-height: 300px;
        font-size: 22px;
    }
    section > .close a {
        top: 30px;
    }
    section h1 {
        font-size: 30px;
    }
    .gallery-img {
        width: 100%;
    }
    .gallery-half-img {
        width: 45%;
        padding: 0 5px;
    }
}
@media (min-width: 768px) {
    header {
        margin-bottom: 120px;
    }
    header > div.title {
        font-size: 18px;
    }
    body > section {
        padding: 20px 40px;
    }
}
@media (min-width: 992px) {
    header {
        display: flex;
        gap: 24px;
        height: 90px;
        justify-content: space-between;
        margin-bottom: 210px;
        padding-bottom: 0;
    }
    header > div.logo {
        left: 0;
        position: relative;
        top: 0;
        transform: translate(0, 0);
    }
    header > div.title {
        align-items: center;
        display: flex;
        font-size: 20px;
        justify-content: center;
        width: 100%;
    }
    header > div.accessibility {
        align-items: center;
        display: flex;
        position: relative;
    }
    .gallery-img {
        width: 90%;
    }
}
@media (min-width: 1200px) {
    header > div.title {
        font-size: 22px;
    }
    .gallery-img {
        width: 80%;
    }
}

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