html {
    height: 100%;
}

.container {
    width: 90% !important;
    max-width: 100% !important;
}

@media (min-width: 1750px) {
    .container {
        /*width: 1750px !important;*/
        max-width: 1750px !important;
    }

    .menu-item {
        font-size: 26px !important;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;;
    }
}

.page-header {
    border-bottom: #a8a8a8 solid 1px !important;
    padding-bottom: 10px;
}

.header-image {
    text-align: center;
}

body {
    background-image: url('img/bg.jpg');
    background-color: #c5c1c0 !important;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100%;
    background-position: center;
    background-size: cover;
    margin: 0;
    font-family: 'Lato', sans-serif !important;
    font-weight: 400 !important;
    font-size: 20px !important;
    text-align: justify;
}

.menu-item {
    cursor: pointer;
    position: relative;
    text-align: center;
    font-weight: 200;
    white-space: nowrap;
}

.selected-menu-item {
	font-weight: 700;
}

/* If the screen size is 800px wide or more, set the font-size of menu to 26px */
@media screen and (min-width: 800px) {
    .menu-item {
        font-size: 22px;
    }

	.selected-menu-item {
		font-weight: 500;
	}
}

@media screen and (max-width: 1200px) {
    body {
        font-size: 18px !important;
    }

    h2 {
        font-size: 1.4rem !important
    }

	h3 {
        font-size: 1.2em !important;
    }

    h4 {
        font-size: 1.1em !important;
    }
}

@media screen and (max-width: 900px) {
    body {
        font-size: 15px !important;
    }
}

.vertical-center {
    display: flex;
    align-items: center;
}

#content {
    overflow: auto;
    max-width: 100vw !important;
}

* {
    box-sizing: border-box;
}

.header-column-left {
    display: table-cell;
    vertical-align: middle;
    width: 40%;
    padding: 10px;
}

.header-column-right {
    display: table-cell;
    vertical-align: middle;
    width: 60%;
    padding: 10px;
}

.header-row {
    display: table;
    width: 100%;
    padding-top: 20px;
}

.header-row:after {
    content: "";
    display: table;
    clear: both;
}

@media screen and (max-width: 900px) {
    .header-column {
        width: 100%;
        display: block;
    }

    .header-row {
        padding-top: 5px;
    }
}

.header-img {
    width: 95%;
    max-width: min(60vw, 500px);
    margin: 10px;
}

a:link, a:visited {
    color: black;
}

a:link {
    color: black !important
}

.menu-item a:link {
    text-decoration: none !important;
}

a:visited {
    color: black !important
}

.menu-item a:visited {
    text-decoration: none !important;
}

a:hover {
    color: black !important
}

.menu-item a:hover {
    text-decoration: none !important;
}

a:active {
    color: black !important
}

.menu-item a:active {
    text-decoration: none !important;
}

.link {
    text-decoration: underline !important;
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 900px) {
    .column {
        width: 100%;
    }
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ececec;
    width: 90%;
    min-width: fit-content;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
}

.dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px #c3c3c3 solid;
    font-weight: 100 !important;
}

.dropdown-content a:hover {
    background-color: #e2e2e2;
}

.dropdown:hover .dropdown-content {
    display: block !important;
}

.homepage-main-img-wrapper {
    position: relative;
}

.homepage-main-img-wrapper-background {
    position: relative;
    opacity: 0;
}

.homepage-main-img {
    width: 100%;
    outline: 1px #636363 solid;
}

.slide {
    border: none;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-transition: opacity 2s linear;
    -moz-transition: opacity 2s linear;
    -o-transition: opacity 2s linear;
    transition: opacity 2s linear;
}

.showMe {
    opacity: 1;
}

.instagram-photos {
    -webkit-column-count: 3;
    -webkit-column-gap: 6px;
    -moz-column-count: 3;
    -moz-column-gap: 6px;
    column-count: 3;
    column-gap: 6px;
}

.instagram-photos img {
    width: 100% !important;
    display: block;
    border: 1px #636363 solid;
    object-fit: cover;
}

article {
    float: left;
    width: 33.33%;
}

figure {
    padding: 0;
    width: 95%;
    padding-bottom: 80%;
    margin: 1em auto;
    overflow: hidden;
    position: relative;
    background: #000;
}

#footer {
    margin: 0 auto;
    width: 100%;
    opacity: 0.90;
}

#footer p {
    white-space: pre-line;
    font-weight: 400;
}

#footer-left {
    float: left;
    text-align: right;
}

#footer-right {
    float: right;
}

#footer-img {
    margin-top: 10px;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
}

/* social media icons are in the right side corner for bigger screens, second footer under for smaller */
@media screen and (min-width: 900px) {
    #footer p {
        font-size: medium;
        min-width: 45%;
    }

    #footer-2 {
        float: right;
        right: 0;
        bottom: 0;
        margin-right: 0;
        position: absolute;
    }


    #social-media-icons {
        display: inline-block;
        vertical-align: middle;
    }
}

@media screen and (max-width: 900px) {
    #footer p {
        font-size: small;
        min-width: 40%;
    }

    #footer-2 {
        text-align: center;
    }

    #social-media-icons {
        display: inline-block;
        vertical-align: middle;
        padding-bottom: 10px;
    }
}

#social-media-icons img {
    margin: 5px;
}

/* PAGES */

#content img {
    border: 1px solid #a6a6a6;
}

h1 {
    font-size: 2rem !important;
}

#content h2 {
    font-size: 1.5em;
    color: #212529;
}

#content h3 {
    font-size: 1.3em;
    color: #212529;
}

#content h4 {
    font-size: 1.2em;
    color: #212529;
}

#content blockquote {
    border: 1px solid #9b9b9b;
    border-left: none;
    border-right: none;
}

#content .block-image img {
    border: 1px solid #9b9b9b;
    max-width: 100%;
}

#content p a {
	text-decoration: underline !important;
}

.brdtop {
    border-top: 1px solid #9b9b9b;
}

#content .colored-odd tr:nth-child(odd)  {
    background-color: #9b9b9b4f;
}

#content .colored-even tr:nth-child(even)  {
    background-color: #9b9b9b4f;
}

#content table thead tr {
    background-color: transparent !important;
}

#content table tr.hov:hover{
    /*background-color: #ffffff85;*/
}

#content table td {
    padding: 0.5em 0.25em;
}

.disclaimer {
    margin-top: 0.5em;
}

.disclaimer a {
	text-decoration: underline !important;
}

.cantus {
    margin-left: 2em;
    margin-bottom: 2em;
}

.lyrics {
    font-size: 0.9em;
}

#cantus-nav {
    background-color: #ffffff85;
    margin-bottom: 1em;
}

#cantus-nav .category-menu a {
    margin: 2em;
    text-decoration: none !important;
}

#cantus-nav .category-menu strong {
    margin: 2em;
}

#cantus-nav .pager a {
    margin: 1em;
    text-decoration: none !important;
}

#cantus-nav .pager strong {
    margin: 1em;
}

#cantus-nav input[type=checkbox] {
    margin-left: 3em;
    margin-right: 1em;
}

.subheader {
	color: #212529;
}

.juhatus .member {
    width: 300px !important;
}

.juhatus .member h3 {
	font-size: 1em !important;
}

.juhatus li ul li {
    font-size: 0.7em !important;
}