:root {
    --bar-color: #000000;
    --main-color: #167885;
    --main-color-trans: rgba(18, 148, 165,0.7);
    --secondary-color:#0d5d68;
    --text-color: #2dbacd;
    --card-border: solid white 1px;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-image: url('./images/vanne.jpeg');
    background-size: cover;
    background-attachment: fixed;
    backdrop-filter: blur(5px);
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
html {
    height: 100%;
    box-sizing: border-box;
    /* font-family: century-gothic, sans-serif; */
    /* font-weight: 400; */
    font-style: normal;
    /* scroll-behavior: smooth; */
    
}
*, *:before, *:after {
    box-sizing: inherit;
}

/* Navbar */
.nav-bar {
    display: flex;
    flex-direction: row;
    background-color: var(--bar-color);
    padding-right: 1.5em;
    justify-content: space-between;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 2;
}
/* Animations */
@keyframes dropdown {
    from {transform: translateY(-200px);}
    to {background-color: var(--bar-color);}
}
@keyframes navitems {
    from {opacity: 0;}
    to {opacity: 1;}
}
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); } 
}
@keyframes swoop {
    from {
      transform: translateY(300px);
    }
}
@keyframes swoopDown {
    from {
        transform: translateY(-100px);
        transform: translateZ(0);
    }
}

.blue-button {
  padding: 20px;
  font-size: large;
  background: var(--main-color);
  border: white solid 1px;
  border-radius: 5px;
  color: white;
  margin: auto;
}

.nav-items {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: 1.5em;
    margin-right: 2em;
    justify-content: flex-end;
    color: white;
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    font-size: 20px;
    flex-wrap: nowrap;
}
.responsive {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    justify-content: center;
    padding-right: 2em;
    color: var(--text-color);
    list-style: none;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    flex-wrap: nowrap;
    background-color: black;
    position: fixed;
    right: 0;
    top: 90px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    /* max-height: 50vh; */
    padding-bottom: 0.2em;
    animation-name: dropdown;
    animation-duration: 0.5s;
    z-index: 5;
}
.icon {
    display: none;
}
.navbar-image {
    width: 100px;
    margin-left: 1em;
}
.navbar-text {
    background: -webkit-linear-gradient(#2dbacd, #1294a5, #0d5d68);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px
}
.nav-link:hover {
    background-color: var(--secondary-color);
    border: solid white 1px;
}
.active {
    background-color: var(--main-color) ;
    border-radius: 5px;
    color: white;
}
a {
    color: white;
    text-decoration: none;
}
.nav-link {
    color: white;
    text-decoration: none;
    padding: 1em;
    border-radius: 5px;
    cursor: pointer;
    border: solid black 1px;
}
.icon {
    margin: auto;
    margin-right: 100px;
}
.image-container {
    width: fit-content;
    margin: 20px auto;
    text-align: center;
}
#directions-img {
    width: 50%;
}
.nav-container {
    display: flex;
    flex-direction: row;
    gap: 1em;
    align-items: center;
    color: white;
    font-size: 25px;
}
/* AutoJerry */
.review-container {
    width: 60%;
    /* margin: 10em auto auto auto; */
    text-align: center;
    border-radius: 25px;
}
.fb-container {
    width: 60%;
    /* margin: 10em auto auto auto; */
    text-align: center;
    background-color: var(--main-color);
    padding: 1em;
    border-radius: 25px;
    border: var(--card-border);
}
.reviews {
    height: 500px;
    width: 100%;
    background-color: transparent;
    overflow: hidden;
}
/* Misc */
.privacy-policy {
    background-color: var(--bar-color);
    z-index: 4;
    color: white;
    position: sticky;
    top: 150px;
    width: fit-content;
    border: solid 1px var(--main-color);
    padding: 2em;
    margin: auto;
    left: 0;
    right: 0;
    /* bottom: 0; */
    text-align: center;
    height: fit-content;
}

.close-btn {
    padding: 1em;
    margin: auto;
    text-align: center;
    border: var(--card-border);
    width: fit-content;
    border-radius: 10px;
    background-color: var(--bar-color);
    color: white;
}

.small-icon {
    width: 25%;
    filter: invert(92%) sepia(100%) saturate(34%) hue-rotate(199deg) brightness(107%) contrast(99%);
    margin: auto;
    max-height: 135px;
}
.list-link {
    text-decoration: underline;
}
.top-bar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: var(--bar-color);
    z-index: 1;
    text-align: center;
    display: none;
    width: 100%;
    display: flex;
    flex-direction: row;
}
.top-btn {
    background-color: var(--main-color);
    padding: 0.6em;
    z-index: 1;
    text-align: center;
    display: none;
    width: fit-content;
    right: 0;
    margin-inline-start: auto;
}
.top-bar-text {
    display: none;
    font-size: 1em;
    margin: 0;
    background: -webkit-linear-gradient(#2dbacd, #1294a5, #0d5d68);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    align-self: center;
    margin-left: 0.3em;
}
.top-bar-logo {
    width: 37px;
    margin-right: 0.5em;
    display: none;
}

.fp-image {
    animation: swoop 0.5s;
    width: 100%;
}
.img-container {
    max-width: 27.18em;
    width: 50%;
}
.header-big {
    background: -webkit-linear-gradient(#2dbacd, #1294a5, #0d5d68);
    -webkit-background-clip: text;
    color: transparent;
    background-clip: text;
    font-size: 4em;
    text-align: center;
    -webkit-text-stroke: 2px black;
    margin-bottom: 0;
    animation: swoopDown 0.5s;

}
.fb-and-aj {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 13em;
    width: 100%;
    margin-top: 5em;
    padding: 1em;
}
.map-container {
    display: flex;
    flex-direction: column;
}
.map-iframe {
    width: 450px;
    height: 350px;
}
.header-background {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    padding: 0.5em;
    background-color: var(--main-color);
    display: none;
    /* background-image: url('./images/vanne.jpeg');
    background-size: cover;
    background-position-y: -28em;
    background-repeat: no-repeat; */
}
.header-text {
    font-size: 3em;
    color: white;
    border-radius: 5px;
    padding: 0.5em;
    display: none;
}
.content {
    /* margin-top: 5em; */
    margin-bottom: 5em;
}
#gmap-canvas {
    width: 700px;
    margin: auto;
    height: 500px;
} 
.fb-card {
    padding: 2em;
}
/* Card */

.card-sidebyside {
    display: flex;
    flex-direction: row-reverse;
    border-radius: 25px;
    padding: 1em;
    align-items: center;
    /* justify-content: center; */
    animation: swoop 0.5s;
    flex-wrap: wrap;
    border: solid white 1px;
    background-color: var(--main-color);
}
.card-sidebyside-fp{
    display: flex;
    flex-direction: row-reverse;
    border-radius: 25px;
    padding: 1em;
    align-items: center;
    justify-content: center;
    gap: 5em;
    width: 100%;
    flex-wrap: nowrap;
    animation: none;
}
.welcome-card {
    color: white;
    width: 50%;
    font-size: 2.5em;
    animation: swoop 0.5s
}

.card-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: auto;
    margin-top: 0;
    margin-bottom: 15px;
    padding: 3em;
    gap: 7em;
}
.card-subtitle {
    font-weight: bold;
    font-size: 1.4em;
    margin-bottom: 0;
    color: white;
    font-size: 1.875em;
}
.image-card {
    width: 80%;
    border-radius: 25px;
    /*background-image: url('./images/sisältä.jpg');*/
    background-repeat: no-repeat;
    background-size: cover;
    padding: 5em;
    animation: swoop 0.5s;
    /* box-shadow: 0 3px 7px -2px #000; */
}
.card-bold {
    font-weight: bold;
}
.social-img-card {
    margin-top: 0;
    vertical-align: middle;
    width: 10em;
}
.card-title {
    text-align: center;
    font-size: 2em;
    color: white;  
}
.card-list {
    font-size: 1.25em;
}
.yheksänb {
    align-self: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0;
}
.card-list-item {
    margin:0.5em
}
.card-text {
    font-size: 1.25em;
}
.fp-card-text {
    font-size: 1.25em;
    margin: auto;
    margin-top: 0.7em;
}
.card-text-desktop {
    font-size: 1.25em;
}
.card-text-mobile {
    display: none;

}
.card-text-line {
    text-decoration: underline;
    font-size: 1.25em
}
.list-card {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    text-align: left;
    max-height: 100%;
    word-wrap: break-word;
    padding: 0.2em;
    border-radius: 25px; 
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: fit-content;
    background-color: var(--main-color);
    border: var(--card-border);
    box-shadow: 0 3px 7px -2px #000;
}
.card {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    text-align: left;
    max-height: 100%;
    padding: 1em;
    border-radius: 25px; 
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background-color: var(--main-color);
    border: var(--card-border);
    animation: swoop 0.5s;
    box-shadow: 0 3px 7px -2px #000;
}
.card-thanks {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    text-align: left;
    max-height: 100%;
    padding: 1em;
    border-radius: 25px; 
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background-color: var(--main-color);
    border: var(--card-border);
    margin-top: 4em;
}

.card-small{
    height: 16em;
    width: 50%;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    text-align: left;
    max-height: 100%;
    word-break: break-word;
    padding: 1em;
    border-radius: 25px; 
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background-color: var(--main-color);
    border: var(--card-border);
    animation: swoop 0.5s;
    box-shadow: 0 3px 7px -2px #000;
}
.form-subtitle {
    font-weight: bold;
    font-size: 1.4em;
    margin-bottom: 0;
    color: white;
    font-size: 1.875em;
}
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1em;
	flex-wrap: wrap;
	margin: auto;
    width: 75%;
}
.contact-form input {
    height: 2em;
}
.contact-form label {
    text-align: left;
    font-size: 20px;
}
.contact-form textarea {
    height: 7em;
    font-size: 17px
}
.contact-form select {
    height: 2em;
}
.form-span {
    font-size: 13px;
}
.form-btn {
    border: solid black 1px;
    border-radius: 5px;
    cursor: pointer;
    height: 3em;
    width: 50%;
    margin: auto;
    background-color: black;
    color: white;
}
.card-btn {
    margin: auto;
    padding: 1em;
    background-color: var(--bar-color);
    border: none;
    color: white;
    font-size: 1.25em;
    border-radius: 15px;
    border: var(--card-border);
}
.form-card {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
	text-align: center;
    max-height: 100%;
    word-wrap: break-word;
    padding: 1em;
    border-radius: 25px; 
    color: white;
    display: flex;
    flex-direction: column;
	flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    background-color: var(--main-color);
    border: var(--card-border);
	width: 600px;
}

.service-package-background {
    padding: 2em;
    border-radius: 25px;
} 
.card-contact {
    border: solid black 1px;
    text-align: center;
    padding: 2em;
    margin: auto;
    border-radius: 25px;
    width: 350px;
    padding-top: 0.1em;
    background-color: var(--main-color);
    color: white;
    border: var(--card-border);
    animation: swoop 0.5s;
    box-shadow: 0 3px 7px -2px #000;
}
.card-contact-static {
    text-align: center;
    padding: 2em;
    margin: auto;
    width: 350px;
    padding-top: 0.1em;
    color: white;
}
/* Footer */

.footer {
    background-color: var(--bar-color);
    padding: 0.5em;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    margin-top: 1em;
}
.footer-image {
    width: 5em;
    height: 5em;
}
.footer-open {
    list-style: none;
    color: rgb(219, 215, 215);
}
.footer-address {
    list-style: none;
    color: rgb(219, 215, 215);
}
.footer-open-hide {
    list-style: none;
    color: rgb(219, 215, 215);
}
.footer-address-hide {
    list-style: none;
    color: rgb(219, 215, 215);
}
.social-img {
    margin-top: 1em;
    width: 10em;
}
.social-img-hide {
    margin-top: 1em;
    width: 10em;
}
.footer-li {
    margin-bottom: 0.5em;
}
.footer-li-open {
    margin-bottom: 0.5em;
    font-weight: bold;
    font-size: 18px;
}
.mobile-li, .mobile-li-open {
    display: none;
    margin-bottom: 0.5em;
}


/* Media queries */
@media screen and (max-width: 1360px) {
    .navbar-text {
        font-size: 25px;
    }
    .nav-link {
        font-size: 17px
    }
}
@media screen and (max-width: 1250px) {
    .nav-bar {
        position: static;
        max-height: 100px;
    }
    .nav-items{
        display: none;
    }
    .icon {
        float: right;
        display: block;
        margin-right: 0.5em;
    }
    .nav-link{
        width: 100%;
        text-align: center;
        animation: navitems;
        animation-duration: 0.5s; 
    }
    .image-card {
        background-position-x: -20em;
    }
    
}
@media screen  and (max-width: 820px) {
    .card-container {
        flex-direction: column;
    }
    .image-card {
        background-position-x: -40em;
    }
    .card-sidebyside-fp {
        flex-direction: column-reverse;
        gap: 1em;
    }
    .card-welcome {
        width: 100%;
        margin: auto;
        border: none;
    }
}
@media screen and (max-width: 680px) {
    .card-sidebyside {
        animation: none;
        width: 90%;
        flex-direction: column-reverse;
        margin-top: 2em;
    }
    .card-sidebyside-fp {
        animation: none;
    }
    .card-text-mobile {
        display: block;
        text-align: left;
        visibility: visible;
    }
    .card-thanks {
        width: 80%;
    }
    #directions-img {
        width: 70%;
    }
    .welcome-card {
        animation: none;
        font-size: 2em;
        text-align: center; 
        width: 80%;
    }
    .card-text-desktop {
        display: none;
    }
    .card-contact-static {
        width: 100%;
    }
    .header-text {
        font-size: 1.5em;
        display: initial;
    }
    .header-background {
        display: flex;
    }
    .review-container {
        width: 85%;
        border-radius: 0;
        padding-bottom: 2em;
        background-color: transparent;
        border: none;
    }
    .fb-container {
        width: 90%;
        border-radius: 0;
        padding-bottom: 2em;
        background-color: transparent;
        border: none;
    }
    .reviews {
        width: 100%;
    }
    .card-container {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    .service-package-background {
        width: 100%;
    }
    .image-card {
        width: 100%;
        border-radius: 0;
        background-position-x: center;
        padding: 2em;
        animation: none;
    }
    .header-big {
        display: none;
    }
    .card {
        width: 100%;
        margin: auto;
        border: none;
        animation: none;
    }
    .list-card {
        margin: auto;
        border: none;
    }
    .footer {
        flex-direction: column-reverse;
    }
    .footer-address {
        text-align: center;
        padding: 0;
    }
    .card-subtitle {
        margin: 0;
    }
    .card-contact {
        margin: 0;
        width: 100%;
        border: 0;
        border-radius: 0;
        animation: none;
    }
    .service-package-background {
        border-radius:0;
        background-image: url('./images/vanne.jpeg');
        background-size: cover;
    }
    .social-img-hide {
        display: none;
    }
    .content {
        margin-bottom: 0;
	width: 100vw;
    }
    .footer {
        margin-top: 0;
    }
    .mobile-li {
        display: list-item;
    }
    .mobile-li-open {
        display: list-item;
        font-weight: bold;
    }
    .footer-open {
        display: none;
    }
    .fb-and-aj {
        gap: 0em;
        padding: 0;
        padding-bottom: 2em;

    }
    .card-title {
        text-align: center;
        font-size: 1.5em;
        color: white;
        background-color: var(--main-color);
        width: fit-content;
        margin: auto;
        padding: 0.5em;
        border-radius: 25px;
        margin-bottom: 1em;
    }
    .footer-address-hide {
        display: none;
    }
    .footer-open-hide {
        display: none;
    }
    .contact-form {
        background-color: var(--main-color);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        border: solid 1px;
        padding: 2em;
        border-radius: 25px;
        text-align: left;
        width: 100%;
    }
    .form-card {
        width: 100%;
        border: none;
        border-radius: 0;
        background-color: transparent;
        background-image: url('./images/vanne.jpeg');
        background-size: cover;
        background-position-x: -15em;
    }
    input {
        height: 1.9em;
    }
    select {
        height: 2em;
    }
    .card-sidebyside {
        width: 90%;
        flex-direction: column-reverse;
    }
    .map-iframe {
        width: 100%;
    }
    .responsive .nav-link.active {
        display: none;
    }
    .responsive {
        animation: none;
    }
    .fp-image {
        animation: none;
    }
    .card-small{
        width: 80%;
        height: fit-content;
        margin-bottom: 1em;
        animation: none;
        text-align: center;
    }
}

@media screen and (max-width: 500px) {
    .card-subtitle {
        font-size:1em ;
    }
    .responsive {
        position: absolute;
    }
    .fa {
        font-size: 13px;
    }
    .navbar-text {
        font-size: 20px
    }
    .nav-container {
        gap: 0.5em
    }
}
@media screen 
    and (orientation:landscape)
    and (max-width: 500px) {
    .responsive {
        max-height: -webkit-fill-available;
    }
 }

@media screen and (max-width: 440px) {
    .card-text {
        font-size: 1em;
    }
    .card-list {
        font-size: 1em;
    }
    .card-bold {
        font-size: 1em;
    }
    .card-container {
        gap: 0;
    }
    .card-contact {
        margin: 0;
        width: 100%;
        border: 0;
    }
    .header-text {
        font-size: 1.5em;
        display: initial;
    }
    .header-background {
        display: flex;
    }
    /* .card-title {
        font-size: initial;
    } */
    .contact-form textarea {
        font-size: 14px;
    }
    .nav-link {
        font-size: 0.9em;
    }
    .yheksänb {
        font-size: 15px;
    }
}

@media screen and (max-width: 356px) {
    * {
        font-size: 10px;
    }
    .fa.fa-bars {
        font-size: 13px;
    }
    .navbar-image {
        width: 80px;
    }
    .footer {
        padding: 0.2em;
        max-width: 100%;
    }
    .footer-image {
        width: 3em; 
        height: 3em;
    }
    .footer-open,
    .footer-address {
        font-size: 8px; 
    }
    .social-img {
        width: 8em; 
    }   
    .navbar-text {
        font-size: 0.7em;
    }
    .nav-link {
        font-size: 0.9em;
        width: initial;
    }
    .responsive {
        width: 100%;
        top: 80px
    }
}
