:root {
    --main_border_radius: 10px;
}

* {
    transition-duration: 0.1s;
}

body {
    font-family: 'Lato', sans-serif;
    scroll-behavior: smooth;
}

.section-title {
    width: 100%;
    margin: 20px;
}

h3 {
    font-size: 3rem;
    font-weight: 700;
}

h4 {
    font-size: 2.5rem;
}

p {
    font-size: 1.5rem;

}

.bold {
    font-weight: 700;
}

.shade {
    box-shadow: 7px 7px 10px #444;
}

/*Navigation*/

nav {
    height: auto;
    background: white;
}

.flex-even {
    flex: 1 1 0;
}

.social_icon {
    width: 50px;
    height: 50px;
}

.social_icon:hover {
    transform: scale(1.2);
}

#toplogo {
    max-width: 350px;
}

.nav {
    transition: height 0.2s linear;
}

.nav-link {
    color: black;
    font-weight: bold;
    font-size: 1.3rem;
}

.nav-link:hover {
    color: black;
    transform: scale(1.2);
}

.nav-link:visited {
    color: black;
}

#mobileNavToggle {
    width: 40px;
    height: 40px;
}

.nav-toggle-wrapper {
    display: none;
}

.navbar-toggler {
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
}

#nav-toggle-button {
    z-index: 100;
}

.nav-toggle-icon {
    transform: rotate(180deg);
}

/*Sections*/

#home {
    min-height: 100vh;
    background-image: url(images/home_back.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 0 auto;
    position: relative;
}

#home:after {
    box-shadow: 0px 3px 20px #444;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    content: "";
}

#about {
    background-color: lightgray;
}

#me {
    width: 100%;
    height: auto;
}

#offer {
    background-color: white;
}

#contact {
    background-color: lightgray;
}

.contact-icon {
    max-height: 32px;
    vertical-align: top;
    margin: 0 0.5em;
}

#contact a {
    color: #4a69bb;
}

#contact a:hover {
    text-decoration: none;
    font-weight: bolder;

}

#contact label {
    margin: 0.5em 0 0 0;
}

.input {
    width: 80%;
    border: none;
    border-bottom: 1px solid #4a69bb;
    border-radius: var(--main_border_radius);
}

button {
    border-radius: var(--main_border_radius);
}

.contact-social-icon {
    width: 60px;
    height: 60px;
}

.map {
    border-radius: var(--main_border_radius);
    border: 0;
    min-height: 400px;
}

footer {
    min-height: 15vh;
    background-color: black;
}

#bottom_logo {
    max-width: 350px;
}

#authors {
    color: #222;
    font-size: 0.7rem;
}

#authors a {
    color: #333;
}

/*headers pop out*/
.come-in {
    transform: translate(0%, 0), scale(0, 0);
    animation: come-in 0.6s ease-out forwards;
    transform-origin: left center;
}

@keyframes come-in {
    70% {
        transform: scale(1.1, 1.1);
    }

    80% {
        transform: scale(0.9, 0.9);
    }

    90% {
        transform: scale(1.05, 1.05);
    }

    95% {
        transform: scale(0.95, 0.95);
    }

    100% {
        transform: scale(1, 1);
    }
}

/*Small screens setup*/
@media screen and (max-width: 768px) {

    h3 {
        font-weight: 600;
        font-size: 2.5rem;
    }

    h4 {
        font-size: 2rem;
    }

    p {
        font-size: 1.3rem;
    }

    .section-title {
        text-align: center;
        margin: 10px;
    }

    .come-in {
        transform-origin: center center;
    }

    /*    Top nav bar*/

    .d-flex {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .navbar-brand {
        order: -1;
        flex: 1 1 100%;
    }

    #toplogo {
        width: 100%;
    }

    .nav-toggle-wrapper {
        display: block;
    }

    #navi {
        background-color: white;
        opacity: 0.9;
        position: absolute;
        left: 0;
        z-index: 10;
        width: 100%;
        height: 30vh;
        text-align: center;
    }

    #navi a {
        width: 100%;
        margin: auto 0;
    }

    /*other*/

    .input {
        width: 100%;
    }

    .contact-text {
        font-size: 1.2em
    }
}
