/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

    blockquote:before, blockquote:after,
    q:before, q:after {
        content: '';
        content: none;
    }

table {
    border-collapse: collapse;
    border-spacing: 0;
}
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
    position: relative;
    min-height: 100%;
    font-family: 'Open Sans', sans-serif;
}

body {
    background: #193342;
    color: #f2f2f2;
    line-height: 1.6rem;
}
header {
    background: rgb(13,127,195);
    display: flex;
    color: rgb(239, 239, 239);
    font-family: 'Poppins', sans-serif;
}
header > nav {
    display:flex;
    max-width: 1400px;
    width: 100%;
    margin:auto;
    height: 100px;
}
#logo {
    font-size: 2rem;
    margin-right: 2rem;
    margin: 1rem;
    height: 75px;
    width: 397px;
    background: url('/images/layout/logo.png') no-repeat;
}
.menulink {
    padding: 0 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    transition: all 0.1s ease-in-out;
    box-shadow: inset 0 0 0px rgb(3, 91, 154);
    flex: 1 1 auto;
    height: 100%;
    color: rgb(239, 239, 239);
    align-items:center;
    justify-content:center;
    position:relative;
    
}
.menulink:hover {
    box-shadow: inset 0 -100px 0px rgb(3, 91, 154);
}
    .menulink:hover > div {
        visibility: visible;
        transition: all 0.1s ease-in-out;
    }
    .menulink a {
        color: rgb(239, 239, 239);
        text-decoration: none;
        height: 100%;
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .menulink > div {
        visibility: hidden;
        position: absolute;
        background: rgb(3, 91, 154);
        width: 100%;
        display:flex;
        flex-direction:column;
        top: 100%;
    }
.menu_submenu {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(3, 91, 154);
    transition: all 0.1s ease-in-out;
    padding: 0.5rem 0;
    border-top:1px solid rgba(255, 255, 255,0.1);
}
    .menu_submenu:hover {
        background: rgb(0, 148, 255);
    }
.button_booking {
    padding: 0.5rem 3rem;
    color: #193342;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    background: #f4ed2f;
    display: inline-flex;
    font-weight: bold;
    border: 2px solid rgb(13,127,195);
    border-radius: 5px;
    box-shadow: inset 0 0 rgb(13,127,195),inset 0 0 rgb(13,127,195);
    transition: all ease-in-out 0.2s;
    justify-content:center;
    cursor: pointer;
}
    .button_booking:hover {
        /*box-shadow: inset -30px 0 rgb(13,127,195),inset 30px 0 rgb(13,127,195);*/
        box-shadow: inset 0px -60px rgb(13,127,195);
        border: 2px solid #193342;
        color:#f4ed2f;
    }
#hero {
    border-top: 5px solid #f4ed2f;
    border-bottom: 5px solid #f4ed2f;
    width: 100%;
    min-height: 350px;
    display:flex;
    place-content:center;
}
.hero_garage {
    background: url('/images/layout/garage.jpg') no-repeat;
    background-size: cover;
    background-position:center;
}
.hero_text{
    text-align:center;
    flex: 0 1 auto;
    place-self:center;
    font-size: 2rem;
    line-height: 2.5rem;
    padding: 2rem;
    background: rgba(0,0,0,0.6);
    display:flex;
    flex-direction:column;
    gap: 1rem;
}
.hero_text{

}
.main_container {
    margin: 2rem 0;
}
.page_title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    margin: 3rem;
    line-height: 3rem
}
.page_info {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}
.page_subinfo{
}
.page_subinfo p{
    margin:1rem 0;
}
.right_info{

}
.right_header {
    background: #f4ed2f;
    color: #193342;
}

.secondary_container{
    width: 100%;
    background: #f2f2f2;
    min-height: 200px;
    margin: 2rem 0;
    padding: 0.2rem;
    color:#193342;
    padding-bottom: 3rem;
}
.service{
    height: 340px;
    background: #193342;
    overflow: hidden;
    transition: 0.2s ease-in-out all;
}
.service:hover > .service_details{
    margin-top: 0px;
}
.service_header {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    padding: 0.5rem;
    background: #f4ed2f;
    display:flex;
    width: 100%;
    height: 40px;
    justify-content:center;
    align-content:center;
}
.service_details {
    display: flex;
    width: 100%;
    min-height: 300px;
    justify-content: center;
    align-content: center;
    background: rgba(0,0,0,0.8);
    padding: 1.5rem;
    color: #f2f2f2;
    font-size: 0.9rem;
    line-height: 1.4rem;
    text-align: center;
    flex-direction: column;
    margin-top: 100%;
    transition: 0.3s ease-in-out all;
}
.service_details p{
    flex: 1 1 auto;
}
    .service_details a {
        flex: 0 0 auto;
    }
.service_mot {
    background: url('/images/layout/services_mot.jpg') center center;
    background-size: cover;
}
.service_service {
    background: url('/images/layout/services_engine.jpg') center center;
    background-size: cover;
}
.service_brakes {
    background: url('/images/layout/services_brakes.jpg') center center;
    background-size: cover;
}
.service_suspension {
    background: url('/images/layout/services_suspension.jpg') center center;
    background-size: cover;
}
.service_clutch{
    background: url('/images/layout/services_clutch.jpg') center center;
    background-size: cover;
}
.service_timingbelt {
    background: url('/images/layout/services_timingbelt.jpg') center center;
    background-size: cover;
}
.garage_info{
    display:flex;
    flex-direction:column;
    gap: 1rem;
}
.tertiary_container {
    padding-bottom: 3rem;
}
.tertiary_container p{
    flex: 1 1 auto;
}
.garage_image{
    width: 100%;
}
.opening_container {
    background: url('/images/layout/garage_front.jpg') center center;
    background-size: cover;
    position: relative;
    color: #193342;
    padding-top:1rem;
    padding-bottom: 3rem;
}
.opening_container::before{
    position:absolute;
    content:"";
    top: 0px;
    height: 100%;
    width: 100%;
    background:rgba(255,255,255,0.9);
    z-index:0

}
    .openingz,
    .opening_container h3 {
        z-index: 5;
        position: relative;
    }
.hours {
    margin: auto;
    display:flex;
    flex-direction:column;
    gap:2px;
}
    .hours h5 {
        font-weight: bold;
        text-align: center;
        padding: 0.2rem;
        text-align: center;
        font-size: 150%;
        font-weight: bold;
        padding-bottom: .5rem;
        margin-bottom: 0.5rem;
        border-bottom: 2px solid black;
    }
    .hours div {
        display: flex;
        background: rgba(255,255,255,0.5);
        padding: 5px;
    }
.hours span{
    flex: 1 0 50%;
    text-align:center;
}
.bottom_call{
    text-align:center;
    font-size: 150%;
    font-weight:bold;
}
.callus{
    padding-bottom:.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid black;
    
}
footer{
    padding-bottom: 1rem;
}
footer a{
    color: #f2f2f2;
    text-decoration: none;
    font-weight: bold;
    display:inline-block;
}
    footer a:hover {
        color: #f4ed2f;
    }

.iframe_wrap {
    width: 100%;
    max-width: 600px;
    border: 2rem rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.9);
    max-height: 100vh;
    overflow: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    padding: 1rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}
#darkbg {
    z-index: 1000;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    position: fixed;
    background: rgba(0,0,0,0.9);
}
.mobile_menu{
    display: none;
}

@media (max-width: 720px) {
    .page_info{
        text-align:center;
    }
    .button_booking {
        margin: 1rem auto;
        display: flex;
    }
    .service_details{
        margin-top: 0;
    }
    .page_subinfo{
        text-align:center;
    }
    .menulink{
        display:none;
    }
    #logo {
        background-size: contain;
        flex: 0 0 250px;
        height: auto;
    }
    header > nav {
        flex: 1 1 auto;
        height: 70px;
    }
    .mobile_menu {
        display: flex;
        flex: 1 1 auto;
    }
    .mobile_menu_list {
        display: none;
        position: fixed;
        height: 100vh;
        margin-top: 70px;
        width: 100%;
        left: 0;
        top: 0;
        z-index: 1000;
        flex-direction: column;
        background: rgb(3, 91, 154);
    }
    .mobile_menu_list li{
        display:flex;

    }
    
    .mobile_menu_top:hover > ul {
        display: flex;
    }
    .mobile_menu_top {
        display: flex;
        flex: 1 1 auto;
        font-size: 1.2rem;
        font-weight: 500;
    }
    .mobile_menu_toplink {
        color: rgb(239, 239, 239);
        text-decoration: none;
        height: 100%;
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        position: relative;
        font-size: 2rem;
    }
    .mobilemenu_submenu {
        flex: 1 1 auto;
        color: rgb(239, 239, 239);
        text-decoration: none;
        height: 100%;
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        position: relative;
        font-size: 2rem;
        font-weight: 500;
        padding: 1.6rem;
    }
        .mobilemenu_submenu:hover {
            box-shadow: inset 0 -100px 0px rgb(9, 109, 181);
            color: rgb(239, 239, 239);
        }
}
