html,
body {
    height: 100vh;
}
p {
    margin: 0;
    padding: 0;
}
a {
    color: black !important;
}
a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:active {
    text-decoration: none;
    color: red !important;
}

.noWrap {
	white-space: nowrap;
}

.LeftInfo {
    margin-top: 1em;
    max-height: 380px;
    overflow: auto;
}
.CarListing {
    width: 100%;
}
@media screen and (min-width:1200px) {
    .CarListing {
        width: 70%;
    }
}
@media screen and (min-width:1600px) {
    .CarListing {
        width: 50%;
    }
}
.Mainlogo {
    padding-top: 5%;
    padding-bottom: 5%;
}

.Logoswitch img {
    max-width: 100%;
    height: auto;
}

.Sticky {
    position: sticky;
}

.RightRepair {
    text-align: start;
    background-color: #eff0f0;
    border-radius: 1rem;
    margin-top: 2em;
    margin-bottom: 1em;
    padding: 40px;
}

.RightInfo {
    background-color: #f9fafa;
    border-radius: 1rem;
    padding: 40px;
    margin-bottom: 2em;
}

.nav-tabs .nav-link {
    width: 100%;
    border: 2px solid transparent;
}
.nav-link.active {
    color: black !important;
}


.Views {
    width: 100%;
}

.Viewbutton {
    font-size: 22px;
}

.tab-content {
    margin-top: 2em;
    margin-left: 1em;
}

.tab-content p {
    margin-bottom: 1em;
}

.tab-content form input, 
.tab-content form input[id="email"] {
    border: 1px solid #444;
    width: 20em;
    max-width: 100%;
    margin: 0;
    background-color: #fff;
}

.tab-content form input[type="submit"] {
    background-color: #f2f2f2;
    font-weight: 500;
}

.Header {
    height: 79px;
    background-color: #282830;
    width: 100%; /* Full width */
    align-items: unset;
}

.navbar-brand {
    display: inline-block;
}
.navbar-collapse{
    right: 0;
    background-color: #282830;
    width: 100%;
}

.navbar-toggler {
    border: none !important;
    font-size: 1.3rem;
    margin: 1rem;

}

.Navigationorder {
    padding-left: 2em;
    position: relative;
}

.Footer {
    background-color: #282830;
    height: 74px;
    padding-right: 5%;
    text-align: right;
    width: 100%;
}

.Content {
    margin-top: 3em;
    margin-bottom: 2em;
}

.Content h5 {
    font-size: 18px;
    margin-top: 1em;
}

#Huoltotiedot .getReceipt {
	display: inline-block;
	margin-left: 1em;
}

table.huoltokaynti {
    width: 100%;
    margin: 0.5em 0 1em 0;
}

table.huoltokaynti td, table.huoltokaynti th {
    text-align: right;
}

table.huoltokaynti td:first-child, table.huoltokaynti th:first-child {
    text-align: left;
}

table.huoltokaynti th {
    padding-top: 1em;
}

table.huoltokaynti td.nimike {
    padding-right: 0.5em;
}

table.huoltokaynti td.maara {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

table.huoltokaynti td.hinta {
    padding-left: 0.5em;
}

table.huoltokaynti tr {
    border-bottom: 1px solid #ddd;
}

.Media {
    background-color: #eff0f0;
}

.Media h3, .Videos h3 {
    margin: 1em;
}

.Selection {
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.Bigpic {
    background-position: center center;
    height: 300px;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
}

.Bigpic h3 {
    color: white;
    font-size: 46px;
    text-shadow: 3px 5px 5px rgb(0 0 0);
}

.RightRepair h6 {
    font-weight: bold;
}

.RightInfo h5 {
    font-size: 18px;
}

 /* uusi */
.Fixedheight {
    min-height: 675px;
}

.overlay_parent {
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    opacity: 0.45;
    z-index: 9;
}

.overlay_child {
    z-index: 99;
}

 .Fullimg {
    background-position: center center;
    height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
}
.Loginimage {
    margin: auto;
    width: 240px;
    text-align: center;
}
input {
    width: 200px;
    height: 50px;
    border-radius: 25px;
    display: block;
    border: none;
    padding-left: 20px;
}
input[name="tunnus"],
input[name="salasana"] {
    margin-left: auto;
    margin-right: auto;
}
input[id="email"] {
    background-color: #f2f2f2;
    margin-top: 20px;
    margin-bottom: 20px;
}
input[id="email"]::placeholder {
    content: "test";
}
input[value="Tilaa uusi salasana"] {
    padding-left: 0;
}

.Loginbutton {
    width: 160px;
    height: 40px;
    border-radius: 20px;
    background-color: red;
    color: white;
    border: none;
}
.Loginform {
    display: block;
}
.Spacing {
    margin-top: 2em;
}
.footerimg_parent {
    z-index: 9999;
}
.Footerimg {
    width: 100%;
    height: auto;
     
}


@media (max-width: 576px){
    .Viewbutton h4 {
        font-size: 70%;
    }
}
     
@media (max-width: 768px){
    .navbar-collapse {
        padding: 5%;
        height: 100vh;
        width: 100vw;
        z-index: 1;
        position: absolute;
        opacity: 95%;
        overflow: hidden;
    }
    .Textresize {
        font-size: calc(1.325rem + .9vw)!important;
    }

    .navbar-nav-scroll {
        max-height: var(--bs-scroll-height,100vh) !important;
    }
    .Collapsedspace {
        padding: 5%;
    }
    .Hidelist {
        padding: 5%;
    }
    .Textsizenav {
        font-size: 18px;
    }
}
@media (min-width: 768px) {
    .Hidelist {
        display: none;
    }
    .p {
        margin: 0;
        padding: 0;
    }
    .Textresize {
        display: inline-block;
    }
}
     
@media (max-width: 992px){
    .Hidden {
        display: none;
    }
    .Logoswitch {
        position: absolute;
        margin-top: 79px;
        left: 0;
    }
    .Logoswitch img {
        max-width: 60%;
        height: auto;
    }
    .Bigpic {
        height: 200px;
    }
    .navbar-brand {
        float: left;
        padding-top: 1em;
        margin: 0%;
        offset: 0;
        padding-left: 8px;
    }
    .Textfix {
        text-align: center;
    }
    .Maxedwidth {
        width: 90% !important;
    }
    .Mobilemargin {
        margin-top: 5%;
        overflow: hidden;
        min-height: 668px;
    }
    
}
     
@media only screen and (min-width: 992px){
    .RightRepair {
            /*width: 300px;*/}
    .RightInfo {
            /*width: 300px;*/}
    .Header {
        height: 79px;
    }
    .Selection {
        display: none;
    }
    .navbar-brand {
        margin-left: 7em;
    }

    /* uusi */
    .Logostick a img {
        position: absolute;
        right: 0;
    }
    .navbar-navLogin {
        position: absolute;
        right: 0;
    }
    .Textsizenav {
        font-size: 18px;
    }
    .navbar-brandlogin {
        margin-left: 2em;
    }
    .Hidelg {
        display: none;
    }
}

@media (max-width: 1100px) {
    .Viewbutton h4 {
        font-size: 90%;
    }
}

@media (max-width: 1200px) {
    .Maxedwidth1 {
        width: 90% !important;
    }
}

@media (min-width: 1200px) {
    .navbar-brand {
        margin-left: 10em;
    }

    /* uusi */
    .Fixed {
        margin-left: 5px;
    }
    .Right {
        align-items: flex-end;
    }
}

/* photoswipe */
.my-gallery {
    width: 100%;
    float: left;
}

.my-gallery img {
    width: 100%;
    height: auto;
}

.my-gallery figure {
    display: block;
    float: left;
    margin: 0 5px 5px 0;
    width: 150px;
}

.my-gallery figcaption {
    display: none;
}
/* END OF photoswipe */

video {
    max-width: 90%    !important;
    max-height: 90vh;
}