body {
    font-family: Lato, sans-serif;
    color: #132964;
    background-color: white;
    font-size: 16px;
    margin: 200px 0 0;
    line-height: 2.5;
}
main {display: block; margin: 25px 150px 25px;}
h1 {font-family: monospace; color: #fd3030; text-shadow: 0 2px #ffc905;}

/* ~~ header, footer ~~ */
header, footer {
    background-color: #BDF3FF;
    overflow: hidden;
    transition: 0.3s;
    text-align: center;
    width: 100%;
}

header { position: fixed; top: 0; z-index: 3; line-height: normal; border-color: #ffc905; border-width: 5px; border-style: none none double none; }
footer { padding: 20px 0; border-color: #ffc905; border-width: 5px; border-style: double none none none; }

header ul { display: block; margin: 0; padding: 0; text-align: right; }
@media screen and (max-width: 768px) {
    header ul { text-align: center; }
    header li { margin: 0 10px; }
}
header li { display: inline-block; font-weight: bold; font-size: 18px; margin: 0 25px; padding: 0 5px; }
header a {display: block; padding: 7px; color: #132964; transition: .25s; text-decoration: none; }
header a:hover { background-color: #ffe278; color: #fd3030; text-decoration: underline dotted 2px; }
#bigIcon { display: block; padding: 10px 0; }
#smallIcon { display: none; position: absolute; left: 0; }
#smallIcon a { height: 100%; }
#smallIcon img { width: 22px; height: auto; }

/* ~~ slides ~~ */
.scroll { position: relative; margin: 210px auto 20px; width: 75vw; height: 35vw; }
.scroll section { position: absolute; width: inherit; height: inherit; overflow: hidden; }

.slider {
    position: absolute;
    text-align: center;
    height: 100%;
    font-size: 25px;
    background-color: black;
    color: white;
    opacity: 0.5;
    z-index: 2;
    transition: 0.1s linear;
}

.slider:hover { opacity: 0.7; }
.slider svg { max-width: 40px; max-height: 40px; width: 10vw; height: 10vw; }
.left-slider { left: 0; }
.right-slider { right: 0; }

#slides {
    position: absolute;
    height: inherit;
    margin: 0;
    display: flex;
    transition: 0.75s ease-out;
}

#slides img, #slides video { display: inline-block; width: 75vw; object-fit: cover; }

/* ~~ before and after section ~~ */
.b4aT { text-align: center; }
.before { display: inline-block; position: relative; }
.before img { display: block; height: 20vw; width: auto; }

.after {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 100%;
    overflow: hidden;
    height: 100%;
    width: 0;
    transition: 0.5s ease-out;
}

.before:hover .after { width: 100%; right: 0; }

.before-after {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
    width: 100%;
}

.before-after div { flex: 1 1 35%; margin: 10px; text-align: center; }
.before-after img, .before-after video { max-width: 100%; height: auto; }
.before-after .caption { margin-top: 10px; }

/* ~~ service, price boxes ~~ */
.serviceBox { line-height: normal; position: relative; }
.serviceBox img { width: 100%; height: 200px; object-fit: cover; border-radius: 25px; opacity: 0.7; transition: 0.15s linear; }
.serviceBox img:hover { opacity: 1; }

.serviceBox div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.serviceBox h1, .serviceBox h3 {
    font-family: monospace;
    color: black;
    text-shadow: none;
    background-color: white;
    padding: 0 25px;
    border-radius: 10px;
}

/* ~~ viewport ~~ */
@media screen and (max-width: 668px) {
    body { margin: 230px 0 0; }
    main { margin: 25px 20px; }
}
@media screen and (max-width: 393px) {
    body { margin: 300px 0 0; }
    main { margin: 25px 10px; }
    header li { display: block; }
    .left-slider { left: -5.5vh; }
    .right-slider { right: -5.5vh; }
}