:root {
    --white: #FFF;
    --dark: #464646;
    --darkblue: #001F60;
    --lightblue: #03297A;
}


html {
    scroll-behavior: smooth;
}

* {
    font-family: 'Merriweather', serif;
    padding: 0;
    margin: 0;
    color: var(--dark);
    list-style-type: none;
}

p {
    line-height: 1.8rem;
    padding-bottom: 2rem;
}

.bg_image {
    background-image: url(/img/house_img.svg);
    background-repeat: no-repeat;
    background-position: 10% top;
}

.content {
    max-width: 450px;
}

.txt_dark_blue {
    color: var(--darkblue);
    display: block;
}
.txt_light_blue {
    color: var(--lightblue);
}

.large_title_right {
    font-size: 4rem;
}


.btn {
    text-transform: uppercase;
    transition: color 0.3s;
}
.btn:hover {
    color: var(--lightblue);
}

body {
    font-size: 16px;
}

.light_blue {
    background-color: var(--lightblue);
}

.dark_blue {
    background-color: var(--darkblue);
}

.px-4 {
    padding: 2rem;
}

.py-10 {
    padding: 4rem;
}

.py-8 {
    padding: 3rem;
}
.pb-2 {
    padding-bottom: 1rem;
}

.py-2 {
    padding-top: 1rem;
}


.s_all_center {
    display: flex; align-content: center; justify-content: center;
}
.top {
    position: fixed;
    right: 10%;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: var(--darkblue);
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.top:after {
    content: '';
    width: 15px;
    height: 15px;
    border-left: 4px var(--white) solid;
    border-top: 4px var(--white) solid;
    transform: rotate(45deg);
    margin-top: 5px;
}

.logo {
    max-width: 150px;
    width: 100%;
}
.logo img {
    width: 100%;
}
.light_text {
    color: var(--white);
}
.navigation li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
}
.navigation li.active a {
    font-style: italic;
}

.layer {
    display: flex;
    flex-direction: column;
}

.slider {
    width: 100%;
    overflow: hidden;
    flex: 0 0 100%;
    position: relative;
    height: 220px;
}

.slider img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    position: absolute;
    left: 0; text-outline: 0;
}

.nav {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
}

.nav li {
    width: 10px; height: 10px;
    background: var(--white);
    border-radius:  100%;
    margin: 1rem 0; 
    transition: all 0.3s;
    cursor: pointer;
}

.nav li.current {
    width: 15px; height: 15px;

}

.slider img {
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
}

.slider img.current {
    z-index: 10;
    opacity: 1;
}

nav.navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    display: none;
}
label.mobile_nav {
    display: flex;
    position: absolute;
    right: 0;
    top: 0;
    padding: 3rem;
    width: 50px;
    cursor: pointer;
    flex-direction: column;
    z-index: 1000;
}
input#toggle {
    position: absolute; 
    left: -100px;
    top: -100px;
    opacity: 0;
}
label.mobile_nav span {
    height: 3px;
    background: var(--white);
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
}

input#toggle:checked ~ nav.navigation {
    display: block;
}

@media all and (min-width: 780px) {
    .logo {
        max-width: 250px;
    }
    .layer {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .cl_large {
        position: relative;
    }
    label.mobile_nav {
        display: none;
    }

    nav.navigation {
        position: static;
        display: flex;
    }

    .cl_large:after {
        padding-bottom: 40px;
        position: absolute;
        left: 0; bottom: -40px; right: 0;
        content: '';
        
    }
    .light_blue.cl_large:after {
        background-color: var(--lightblue);
    }
    .s_all_center {
        align-items: center;
    }
    .slider  {
        height: 420px;
    }
    .slider img {
        height: 420px;
    }
    .l_all_right {
        justify-content: flex-end;
    }
    .l_all_left {
        justify-content: left;
    }
    .large_title_right {
        font-size: 3rem;
        text-align: right;
    }

    .px-4 {
        padding: 4rem;
    }
    .py-10 {
        padding: 10rem;
    }
    
    .py-8 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
    .pb-2 {
        padding-bottom: 2rem;
    }
    
    .py-2 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .ml_auto {
        margin-left: auto;
    }
}