@import url('https://fonts.cdnfonts.com/css/palatino-lt-black');

:root {
    --last-update: "26.9.2023";
    --contact-info: "office@otterguard.com";

    /*colors*/
    /*b&w combinations also used directly in parents and childs because of different transparent aspects*/
    --black: rgb(0, 0, 0);
    --white: rgb(255, 255, 255);

    /*blue*/
    --light-blue: rgb(61, 150, 201);
    --darker-blue: rgb(7, 67, 102); /*used in contact form as background*/
    --light-page-blue: rgb(132, 202, 243); /*used as contrast color for active page in nav*/
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Palatino LT";
    font-weight: normal;

    background-image: url("pictures/background_main.jpg");
    /*background-color: rgb(0,0,0,0.2);
    background-blend-mode: multiply;*/
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;

}

.invisibleLink, .invisibleLink:visited, .invisibleLink:hover, .invisibleLink:active {
    color: var(--white);
    text-decoration: none;
}

.headerDiv{
    height: 150px;
}

h1 {
    margin: auto;
    margin-top: 15px;
    text-align: center;
    color: var(--white);
    text-shadow: 10px 10px 10px var(--black);

    font-size: 60px;
    /*-webkit-text-stroke: 2px black;*/
}

.mainDiv {
    display: flex;
    flex-direction: row;
    width: auto;
    height: auto;
    /*padding-left: 160px;*/
    justify-self: center;
    /*border: 2px dashed red;*/
}

nav {
    /*background-color: rgb(0,0,0,0.5);*/
    width: 150px;
    /*padding-left: 160px;*/
    display: flex;
    flex-direction: column;
    position: fixed;
    margin-left: 10%;
    margin-right: auto;
    border-radius: 5px;
}

nav > a, nav > a:visited, nav > a:hover, nav > a:active {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border: 2px solid var(--white);
    border-radius: 5px;
    padding: 5px;
    font-size: 22px;
    color: var(--white);
    background-color: rgb(0,0,0,0.5);
    text-align: center;
    transition: 0.2s;
}

nav > a:hover {
    transform: scale(1.2);
    box-shadow: 0px 0px 50px black;
}

nav > a > img {
    width: 25px;
    height: 25px;
    filter: invert(100%);
}

.navActive {
    color: var(--light-page-blue) !important;
}

main {
    background-color: var(--black);
    width: 62%;
    height: auto;
    /*margin-left: 80px;*/
    border-radius: 10px;
    /*border: 4px dashed rgba(255, 255, 255, 0.205);*/
    margin: auto;
    margin-bottom: 50px;
    justify-self: center;
    box-shadow: 0px 0px 50px var(--black), 0px 0px 25px var(--black);
}

main > h3 {
    color: var(--white);
    margin-left: 40px;
    margin-right: 40px;
}

main > p {
    color: var(--white);
    margin-left: 40px;
    margin-right: 40px;
}

ul, li {
    color: var(--white);
    margin-left: 10px;
    margin-right: 40px;
}

li {
    margin-bottom: 5px;
}

main > img {
    display: block;
    height: 300px;
    width: auto;
    max-width: 90%;
    border-radius: 5px;
    margin: 0 auto;
}

h2 {
    margin: auto;
    padding-top: 20px;
    text-align: center;
    color: var(--white);
    text-shadow: 10px 10px 10px var(--black);

    font-size: 30px;
}

.donateInfo {
    justify-self: center;
    margin: auto;
}

.donateInfo > p {
    color: var(--light-blue);
    text-align: center;
    margin: auto;
    font-weight: bold;
}

.donateInfo > button {
    display: block;
    background-color: var(--light-blue);
    justify-self: center;
    margin: auto;
    border-radius: 10px;
    height: 30px;
    font-weight: bold;
    color: var(--black);
    text-shadow: 5px 5px 40px var(--white);
    border-color: var(--white);
}

.donateBar {
    justify-self: center;
    margin: auto;
    background-color: var(--light-blue);
    width: 80%;
    border-radius: 13px;
    padding: 2px;
}

.donateBar > div {
    background-color: rgba(8, 8, 8, 0.651);
    width: 43%;
    height: 10px;
    border-radius: 10px;
}

.donateSpan {
    color: white;
    font-weight: normal;
}

table {
    display: block;
    border: 2px solid var(--white);
    border-radius: 5px;
    border-collapse: collapse;
    width: 90%;
    height: 400px;
    justify-self: center;
    margin: auto;
    overflow-y: scroll;
}

th, td {
    border: 1px solid var(--white);
    color: var(--white);
    word-wrap: break-word;
    padding: 8px;
}

td:nth-child(1), th:nth-child(1) {
    width: 30%;
    text-align: center;
}

td:nth-child(2), th:nth-child(2) {
    width: 15%;
    text-align: center;
}

td:nth-child(3) {
    font-style: italic;
    color: var(--light-blue);
    text-shadow: 0px 0px 1px var(--white);
}

tr:nth-child(2n) {
    background-color: rgba(255, 255, 255, 0.24);
}

#galleryHover::before {
    content: "(Hover over a photo to make it bigger.)";
}

.gallery {
    justify-self: center;
    flex-wrap: wrap;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 90%;
    /*border: red dashed 1px;*/
    margin-bottom: 100px;
}

.gallery > img {
    flex-basis: 40%;
    height: 300px;
    border-radius: 5px;
    border: 1px solid var(--white);
    margin: auto;
    margin-bottom: 20px;
    transition: 0.4s ease;
}

.gallery > img:hover {
    transform: scale(2.0);
    box-shadow: 0px 0px 1000px 500px rgba(0, 0, 0, 0.753);
    border: 1px solid var(--black);
    z-index: 100;
}

.contactForm {
    /*border: 1px dashed red;*/
    width: 90%;
    margin: auto;
    margin-bottom: 50px;
    justify-self: center;

    display: flex;
    flex-direction: column;
}

.contactForm > label {
    color: var(--white);
    margin-bottom: 5px;
    margin-left: 10px;
}

.contactForm > input {
    margin-bottom: 20px;
    background-color: var(--darker-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 10px;
}

.contactForm > textarea {
    margin-bottom: 20px;
    height: 200px;
    background-color: var(--darker-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 10px;
}

.contactForm > button {
    justify-self: center;
    margin: auto;
    border: 2px solid var(--white);
    border-radius: 5px;
    padding: 10px;
    background-color: var(--darker-blue);
    color: var(--white);
}

.dialogError {
    display: block;
    justify-self: center;
    text-align: center;
    margin: auto;
    margin-top: 1%;
    font-size: 15px;
    /*border: 1px dashed red;*/
}

.map {
    display: block;
    justify-self: center;
    margin: auto;
    margin-bottom: 40px;
    width: 60%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

footer {
    display: flex;
    justify-content: space-evenly;
    position: relative;
    align-self: flex-end;
    width: 100%;
    height: 40px;
    font-size: 15px;
    bottom: 0;
    left: 0;
    color: var(--white);
    text-shadow: 5px 5px 20px var(--black);
    background-color: rgb(0,0,0,0.8);

    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.footerSpan {
    font-weight: bold;
    font-style: italic;
    color: red;
}

.date::before {
    content: var(--last-update);
}

.contactLabel::before {
    content: var(--contact-info);
}

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

    html, body {
        overflow-x: hidden;
    }

    body {        
        background-image: none;
        background-color: rgb(7, 54, 82);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    
    }

    .headerDiv{
        height: auto;
        margin-bottom: 15px;
    }

    .mainDiv {
        display: flex;
        flex-direction: column;
        width: auto;
        height: auto;
        justify-self: center;
        padding-left: 0;
    }

    nav {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        position: relative;
        border-radius: 5px;
        justify-self: center;
        justify-content: center;
        margin: auto;
        margin-bottom: 4%;
    }

    nav > a {
        flex-basis: 40%;
        margin: 1%;
    }

    main {
        background-color: var(--black);
        width: 90%;
        margin: auto;
        margin-top: 10px;
        margin-bottom: 50px;
        height: auto;
        border-radius: 10px;
        justify-self: center;
    }

    main > p {
        color: var(--white);
        margin-left: 5%;
        margin-right: 5%;
    }

    h2 {
        margin: auto;
        margin-right: 5%;
        margin-left: 5%;
        padding-top: 20px;
        text-align: center;
        color: var(--white);
        text-shadow: 10px 10px 10px var(--black);
        font-size: 30px;
    }

    main > h3 {
        color: var(--white);
        margin-left: 5%;
        margin-right: 5%;
    }

    main > img {
        display: block;
        height: auto;
        width: 90%;
        border-radius: 5px;
        margin: 0 auto;
    }

    .donateInfo {
        justify-self: center;
        margin-left: 5%;
        margin-right: 5%;
    }

    ul, li {
        margin-left: 0;
        margin-right: 5%;
    }

    .gallery {
        justify-self: center;
        flex-wrap: wrap;
        margin: auto;
        display: flex;
        flex-direction: column;
    }

    #galleryHover::before {
        content: "(Tap on a photo to make it bigger.)";
    }

    .gallery > img:hover {
        transform: scale(1.6);
    }
    
    .gallery > img {
        width: 80%;
        height: auto;
        margin: auto;
        margin-bottom: 4%;
    }

    .map {
        display: block;
        justify-self: center;
        margin: auto;
        margin-bottom: 40px;
        width: 90%;
        height: 300px;
        border: none;
        border-radius: 10px;
    }

    footer {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        position: relative;
        width: 100%;
        height: auto;
        font-size: 10px;
        bottom: 0;
        left: 0;
        color: var(--white);
        text-shadow: 5px 5px 20px var(--black);
        align-items: center;
    }

    footer > * {
        flex-basis: 100%;
    }

}

@media screen and (min-width: 901px) and (max-width: 1699px) {
    .mainDiv {
        display: flex;
        flex-direction: column;
        width: auto;
        height: auto;
        justify-self: center;
        padding-left: 0;
    }

    nav {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        position: relative;
        border-radius: 5px;
        justify-self: center;
        justify-content: center;
        margin: auto;
        margin-bottom: 4%;
    }

    nav > a {
        flex-basis: 40%;
        margin: 1%;
        text-align: center;
        justify-self: center;
        justify-content: center;
    }

    main {
        background-color: var(--black);
        width: 90%;
        margin: auto;
        margin-top: 10px;
        margin-bottom: 50px;
        height: auto;
        border-radius: 10px;
        justify-self: center;
    }

}