section {
    height: 100vh;
}

button {
    border: none;
    outline: none;
    padding: 1rem;
    background: #0182EB;
    color: #ddd;
    text-transform: uppercase;
    transition: .3s ease-in;
    border-radius: .25rem;
}

button:hover {
    cursor: pointer;
    box-shadow: .25rem .25rem .5rem .05rem #222;
    transition: .3s ease-in;
}

#description {
    position: relative;
        background: repeating-linear-gradient(
            45deg,
            rgba(225, 225, 225, 0.8),
            rgba(225, 225, 225, 0.8) .25rem,
            rgba(225, 225, 225, 0.85) .25rem,
            rgba(225, 225, 225, 0.85) .5rem),
            url('../assets/description-bg4.jpg') no-repeat fixed center;
    height: 110vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

#description header {
    padding: 2rem 0;
    position: relative;
    text-align: center;
}

#description h1 {
    font-family: "Roboto","Helvetica","Arial",sans-serif;
    color: #222;
    text-shadow: 1px 1px #ddd;
    font-weight: 100;
    font-size: 4rem;
    text-align: center;
    background-size: cover;
}

#description h2 {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    text-align: center;
    text-shadow: 1px 1px #ddd;
    font-size: 1.3rem;
}

#offer {    
    display: flex;
    flex-flow: wrap;
    justify-content: space-around;
    height: auto;
    background: #0182EB;
}

.card {
    position: relative;
    top: -1.5rem;
    width: 40%;
    min-width: 32rem;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: .25rem;
    font-family: "Roboto","Helvetica","Arial",sans-serif;
    box-shadow: .25rem .25rem .5rem .05rem #222;
    transition: .3s ease-in;
}

@media screen and (max-width: 720px) {
    .card {
        min-width: 0;
        width: 90%;
    }

    .card ul {
        font-size: .85rem;
    }
}

.card:hover {
    top: -3rem;
    transition: .3s ease-in;
    box-shadow: .25rem .25rem 1rem .05rem #222;
}

.card > h2 {
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    padding: 2rem 0;
    font-weight: 100;
    color: #222;
    border-bottom: 1px solid #ddd;
}

.card span {
    display: block;
    margin: 2rem 2rem 0 2rem;
}

.card > ul {
    list-style-type: circle;
    padding: 2rem 4rem;
    margin: 0;
}

.card li, .card span {
    position: relative;
    text-transform: capitalize;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    color: #222;
    padding: .5rem;
    cursor: default;
}

.card li:after {
    content: "";
    position: absolute;
    left: 0;
    top: 80%;
    width: 0;
    border-bottom: .25rem solid #0182EB;
    transition: .3s ease-in;
}

.card li:hover:after {
    width: 100%;
    transition: .3s ease-in;
}

@media screen and (max-width:1124px) {
    .card {
        width: 80%;
        margin-bottom: 4rem;
    }
}

#photovoltaics {
    background: #222;
    color: #ddd;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: auto;
    min-height: 100vh;
}

#photovoltaics>h1 {
    font-family: "Roboto","Helvetica","Arial",sans-serif;
    margin: 0;
    padding: 3rem 0;
    text-overflow: ellipsis;    
    overflow: hidden;
    white-space: nowrap;
    font-size: 3rem;
    font-weight: 100;
    text-transform: uppercase;
    text-align: center;
}

@media screen and (max-width:380px) {
    #photovoltaics>h1 {
        font-size: 2rem;
    }
}

.cards-container {
    display: flex;
    justify-content: space-around;
}

.card2 {
    width: 30%;
    box-sizing: border-box;
    padding: 2rem;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: .25rem;
    transition: .3s ease-in;
    margin-bottom: 4rem;
}

.card2:hover {
    transform: scale(1.1);
    cursor: default;
    border: 1px solid #0182EB;
    color: #0182EB;
    transition: .3s ease-in;
}

@media screen and (max-width:1170px) {
    .cards-container {
        flex-flow: wrap;
    }

    .card2 {
        width: 80%;
    }
}

#gallery {
    background: repeating-linear-gradient(
            45deg,
            rgba(225, 225, 225, 0.8),
            rgba(225, 225, 225, 0.8) .25rem,
            rgba(225, 225, 225, 0.85) .25rem,
            rgba(225, 225, 225, 0.85) .5rem),
            url('../assets/gallery-bg1.jpg') no-repeat fixed center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: auto;
    min-height: 100vh;
}

#gallery>h1 {
    font-family: "Roboto","Helvetica","Arial",sans-serif;
    margin: 0;
    padding: 3rem 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 3rem;
    font-weight: 100;
    text-transform: uppercase;
    text-align: center;
}

@media screen and (max-width:380px) {
    #gallery>h1 {
        font-size: 2rem;
    }
}

#gallery ul {
    list-style-type: none;
    display: flex;
    flex-flow: wrap;
    justify-content: space-around;
    background-color: rgba(2, 2, 2, 0.9);
    padding: 2rem 0;
    align-items: center;
    margin: 0;
}

#gallery ul li {
    width: 25%;
    text-align: center;
    padding: 2rem 0;
}

@media screen and (max-width:1400px) {
    #gallery ul li {
        width: 50%;
    }
}

@media screen and (max-width:730px) {
    #gallery ul li {
        width: 100%;
        text-align: center;
    }
}

#gallery ul li img {
    height: 20rem;
    width: 20rem;
}

#gallery ul li img:hover { 
    transform: scale(1.05);
}

#gallery .previev {
    position: fixed;
    z-index: 999;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;    
    background-color: rgba(2, 2, 2, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

#previev.active {
    display: flex;
}

#previev button {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

#previev img {
    max-height: 90%;
    max-width: 90%;
}

#contact {
    position: relative;
    background: #0182EB;
    color: #ddd;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: auto;
    min-height: 100vh;
}

#contact>h1 {
    font-family: "Roboto","Helvetica","Arial",sans-serif;
    margin: 0;
    padding: 3rem 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 3rem;
    font-weight: 100;
    text-transform: uppercase;
    text-align: center;
}

@media screen and (max-width:380px) {
    #contact>h1 {
        font-size: 1.5rem;
    }
}

#contact .contact-container {
    display: flex;
    /* flex-flow: wrap; */
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 3rem;    
    background: repeating-linear-gradient(
        45deg,
        rgba(2, 2, 2, 0.25),
        rgba(2, 2, 2, 0.25) .25rem,
        rgba(2, 2, 2, 0.3) .25rem,
        rgba(2, 2, 2, 0.3) .5rem);
}

#contact .contact-container .item {
    width: 100%;
}

#contact .contact-container .item.fb {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.contact-container .item.fb a {
    color: #ddd;
    text-decoration: none;
    font-size: 2rem;
}

.contact-container .item.fb a:visited {
    color: #ddd;
    text-decoration: none;
}

#contact .contact-container .item.map {
    margin: 1rem 0;
}

#contact .info-container {
    display: flex;
    flex-direction: column;
    margin-left: 3rem;
}

#contact .info-container .info-line {
    font-family: "Roboto","Helvetica","Arial",sans-serif;
    font-weight: 100;
    font-size: 1.2rem;
    margin: 1rem;
    display: flex;
    align-items: center;
}

#contact .info-container .info-line i {
    margin: 0 1rem;
}

@media screen and (max-width:1080px) {
    #contact .info-container {
        margin: 3rem 0;
    }
}

footer {
    background: #222;
    color: #eee;
    font-size: .75rem;
    padding: .25rem 0;
    text-align: center;

    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

footer a {
    color: #eee;
    text-decoration: none;
}
