/*
Theme Name: kustova-website
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html, body {
	height: 100%;
}
body {
    font-family: 'Rubik', sans-serif;
    display: flex;
	flex-direction: column;
	min-height: 100%;
    background-color: #E4FBD2;
}
#main {
    flex: 1 0 auto;
}
#header {
    padding: 80px 20px;
    background-image: url(images/top-background.jpg);
    background-size: cover;
    background-position: center;
}
#header-in {
    max-width: 1200px;
    margin: 0 auto;
    overflow: auto;
}
#title {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px 0 20px 0;
    max-width: 600px;
    padding: 35px;
    color: #082d7e;
}
#title h1 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #a02323;
}
#title h2 {
    font-size: 18px;
    font-weight: 400;
    line-height: 140%;
}
#mob-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 180px;
    float: right;
    padding: 14px 10px;
    border-radius: 5px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    background-color: #082d7e;
    backdrop-filter: blur(10px);
    margin-top: 20px;
}
#mob-menu-btn img {
    width: 24px;
    margin-right: 10px;
}
#menu {
    padding: 20px;
    background: linear-gradient(to bottom, #ffffff, #E4FBD2);
}
#menu-in {
    max-width: 1200px;
    margin: 0 auto;
}
#menu ul {
    font-size: 0;
    display: flex;
    flex-wrap: wrap;
}
#menu ul li {
    display: flex;
    width: 20%;
    padding: 4px;
}
#menu ul li a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 14px; 
    font-size: 16px;
    font-weight: 400;
    background-color: darkslateblue;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
}
#menu ul li:nth-child(1) a {background-color: #05AFF2;}
#menu ul li:nth-child(2) a {background-color: #FF675C;}
#menu ul li:nth-child(3) a {background-color: #04D99D;}
#menu ul li:nth-child(4) a {background-color: #74BF04;}
#menu ul li:nth-child(5) a {background-color: #FD9E34;}
#menu ul li:nth-child(6) a {background-color: #04D99D;}
#menu ul li:nth-child(7) a {background-color: #74BF04;}
#menu ul li:nth-child(8) a {background-color: #FD9E34;}
#menu ul li:nth-child(9) a {background-color: #05AFF2;}
#menu ul li:nth-child(10) a {background-color: #FF675C;}
#menu ul li:nth-child(11) a {background-color: #05AFF2;}
#menu ul li:nth-child(12) a {background-color: #FF675C;}
#menu ul li:nth-child(13) a {background-color: #04D99D;}
#menu ul li:nth-child(14) a {background-color: #74BF04;}
#menu ul li:nth-child(15) a {background-color: #FD9E34;}
#menu ul li:nth-child(16) a {background-color: #04D99D;}
#menu ul li:nth-child(17) a {background-color: #74BF04;}
#menu ul li:nth-child(18) a {background-color: #FD9E34;}
#menu ul li:nth-child(19) a {background-color: #05AFF2;}
#menu ul li:nth-child(20) a {background-color: #FF675C;}
#content {
    padding: 30px 20px;
}
#content-in {
    max-width: 1200px;
    margin: 0 auto;
}
#content * {
	line-height: 1.7em;
}
#content p {
	margin-bottom: 10px;
}
#page-title {
	font-size: 30px;
	color: #0f587d;
	font-weight: 500;
}
#page-title:after {
	content: '';
	display: block;
	height: 1px;
	margin-top: 10px;
	margin-bottom: 30px;
	background-color: #0f587d;
}
#content ul,
#content ol {
	margin-left: 20px;
}
#content ul li,
#content ol li {
	margin-bottom: 5px;
}
.main-img {
	display: block;
	width: 100%;
    max-width: 290px;
    margin: 0 20px 20px 0;
    float: left;
}
hr {
	display: block;
	height: 1px;
	margin: 40px 0 20px 0;
	background-color: #0f587d;
	border: none;
}
h2 {
	font-size: 24px;
	color: #0f587d;
	font-weight: 400;
	margin-bottom: 20px;
}
#content a {
	color: #0b438b;
	text-decoration: underline;
}
#footer {
    flex: 0 0 auto;
    background-color: #1dc424;
}
#footer-image {
    height: 60px;
    background-image: url(images/footer.jpg);
    background-size: contain;
}
#footer-main {
    padding: 20px;
}
#footer-in {
    max-width: 1200px;
    margin: 0 auto;
}
#footer p {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    line-height: 140%;
    text-align: center;
}
.main-photo {
    height: 498px !important;
    border-radius: 3px;
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
}
#photo-gallery {
    font-size: 0;
    margin-right: -10px;
}
.photo-out {
    width: 20%;
    display: inline-block;
    padding: 0 10px 10px 0;
}
.photo {
    display: block;
    border-radius: 3px;
    width: 100%;
    padding-top: 100%;
    background-size: cover;
    background-position: center;
    background-color: #eeeeee;
}
.photo:hover {
    outline: 1px solid #01579B;
    outline-offset: -1px;
}
@media (max-width: 1280px) {
    #menu ul li a {
        font-size: 14px;
    }
}
@media (max-width: 1100px) {
    #header {
        background-position: center right -300px;
    }
    #menu ul li {
        width: 25%;
    }
    #menu ul li a {
        padding: 14px 10px;
    }
}
@media (max-width: 900px) {
    #menu ul li {
        width: 33.33333%;
    }
}
@media (min-width: 701px) {
    #mob-menu-btn {
        display: none !important;
    }
    #menu {
        display: block !important;
    }
}
@media (max-width: 700px) {
    #header {
        background-position: center;
    }
    #title {
        max-width: 100%;
    }
    #menu {
        display: none;
    }
    #menu ul li {
        width: 50%;
    }
}
@media (max-width: 500px) {
	.main-img {
		float: none;
		margin: 0 auto 20px auto;
	}
}
@media (max-width: 420px) {
    #header {
        padding: 50px 20px;
    }
    #title {
        text-align: center;
    }
    #title h1 {
        font-size: 24px;
    }
    #title h2 {
        font-size: 16px;
    }
}
@media (max-width: 1100px) {
    #photo-gallery .photo-out {
        width: 25%;
    }
}

@media (max-width: 900px) {
    #photo-gallery .photo-out {
        width: 33.333333%;
    }
}

@media (max-width: 700px) {
    #photo-gallery .photo-out {
        width: 50%;
    }
}