* {
    box-sizing: border-box;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}
html {
    scroll-behavior: smooth;
}

body {
    width: 100vw;
    background: linear-gradient(#E5E9E8, #c5c6c6);
}

#wrapper {
    max-width: 1000px;
    background: white;
    margin: auto;
    margin-top: 100vh;
    overflow: hidden;
}

.column { float: left; }
.column.full { width: 100%; }
.column.three-fourths { width: 75%; }
.column.two-thirds { width: 66.6%; }
.column.half { width: 50%; }
.column.third { width: 33.3%; }
.column.fourth { width: 25%; }


#main-head {
    position: absolute;
    right:0;
    top:0;
    min-height: 100vh;
    left:0;
    background: url(images/red-wall-mops.jpg) no-repeat;/* image from unsplash: pan-xiaozhen */
    background-size: 100% 100%;
}

.top-nav {
    width: 100vw;
    position: relative;
    height: 150px;
    background: #FA1B39;
    color: white;
    box-shadow: 0 5px 5px black;
}
.logo-text {
    font-size: 36px;
    position: absolute;
    top: calc(50% - (36px / 2));
    padding-left: 20px;
}
.logo-text a {
    color: white;
    text-decoration: none;
    display: inline-block;
    height: 100%;
}

#toggle-mobile-nav {
    display: none;
}
.hamburger {
    display: none;
}

.links {
    position: absolute;
    right: 0;
    top: calc(50% - (28px / 2));
    padding-right: 100px;
}
.links a {
    font-size: 28px;
    display: inline-block;
    color: white;
    text-decoration: none;
    margin-left: 50px;
    transition: all .25s;
}
.links a:hover {
    border-bottom: solid white 5px;
    padding-bottom: 5px;
}
.head-section {
    position: absolute;
    top: 30%;
    right: 5%;
    text-align: right;
}
.head-section h1 {
    font-size: 2.5em;
    color: white;
    margin-bottom: 4rem;
}

.head-section p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 2em;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.head-section button {
    margin-top: 2rem;
    background: transparent;
    border: solid 5px white;
    color: white;
    font-size: 2em;
    padding: 4% 6% 4% 6%;
    cursor: pointer;
    transition: all .25s;
}

.head-section button:hover {
    background: white;
    color: #FA1B39;
}

main {
    overflow: hidden;
}

section {
    padding: 30px;
    border: solid 5px #FA1B39;
    background: white;
    color: #585b64;
    font-size: 1.5em;
}

section > :first-child {
    text-align: center;
    border-bottom: solid black 2px;
    margin-bottom: 5px;
    padding-bottom: 5px;
}

#about {
    min-height: 30vh;
}
#service {
    height: 590px;
}
.inline-link {
    color: inherit;
    padding: 5px;
}

.sec-list {
    list-style: none;
    padding-left: 20px;
}
.sec-list li {
    margin-bottom: 10px;
}
.sec-list li span {
    display: block;
    font-size: .8em;
    color: grey;
}
strong::after {
    content: '\a';
    white-space: pre;
}
.error {
    background-color: rgba(255, 151, 151, 0.746);
}

/*----Modal Form Design---*/
#contact {
    margin: auto;
    transform: translateY(-100vh);
    transition: all .5s;
    padding: 0;
    height: 0;
}
#contact.open {
    position: fixed;
    display: grid;
    place-items: center;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    height: auto;
    background-color: rgba(0, 0, 0, 0.8);
}


.form-box {
    position: relative;
    padding: 20px;
    border-radius:10px;
    background: white;
    width: 40vw;
}

.form-box h2 {
    margin: -20px;
    padding-bottom: 5px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 10px;
    text-align: center;
    background: #FA1B39;
    color: white;
}
#contact-form input[type='text'], #contact-form input[type='phone'], #contact-form input[type='email'] {
    display: block;
    width: 100%;
    font-size: 24px;
    padding-top: 5px;
    padding-bottom: 5px;
    border: solid #FA1B39 1px;
    border-radius: 5px;
}
#contact-form textarea {
    font-size: 24px;
    padding-top: 5px;
    padding-bottom: 5px;
    width: 100%;
    border: solid #FA1B39 1px;
    border-radius: 5px;
}

#contact-form .column {
    padding-right: 10px;
}

#contact-form div {
    margin-top: 20px;
}
#contact-form div h3 {
    margin:-20px;
    margin-top: 0;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
    background: #FA1B39
}
.pref {
    margin-bottom: 20px;
}
.pref span {
    margin-left: 3px;
}
.msg label {
    display: block;
}
.msg textarea {
    width: 100%
}

#submit {
    color: white;
    background: #FA1B39;
    border: none;
    font-size: 2em;
    float: right;
    padding: 10px;
}

.for-submit {
    opacity: 0;
    height: 10px;
    overflow: hidden;
}
#close-modal {
    position: absolute;
    right: 5px;
    top: 5px;
    color: white;
    background: #fb1a39;
    border: none;
}
#close-modal:hover {
    color: grey;
}

.sec-list {
    text-align: center;
    margin-top: 5vh;
}
.sec-list a {
    color: #fb1a39;
    text-decoration: none;
}

#gallery {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-gap: 10px;
}
.gal-img {
    height: 100%;
    width: 100%;
    cursor: pointer;
    border: solid 5px #fb1a39;
    box-shadow: 0 0 5px;
    transition: all .5s;
}

.gal-img:hover {
    box-shadow: 0 0 0;
    transform: scale(1.05);
}

#gal-img-focus {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: grid;
    place-items: center;
}

#gal-img-focus img {
    height: 80vh;
    width: 40vw;
}

#gal-img-focus button {
    position: absolute;
    top: 10%;
    right: 5%;
    background: transparent;
    color: white;
    text-shadow: 0 0 1px black;
    border: none;
    font-size: 32px;
    height: 50px;
    width: 50px;
}

@media only screen and (max-width: 768px) {
    .top-nav {
        height: 10vh;
        padding-top: 10px;
    }
    .logo-text {
        font-size: 1em;
        margin-top: 10px;
    }
    
    #toggle-mobile-nav {
        position: absolute;
        display: inline-block;
        height: 50px;
        width: 50px;
        right: 10px;
        top: 0;
        opacity: 0;
        z-index: 50;
    }
    .hamburger {
        position: absolute;
        display: inline-block;
        height: 10px;
        width: 35px;
        right: 1vw;
        top: 0;
        border-radius: 5px;
        margin-top: 20px;
        background: white;
        transition: all .5s;
        z-index: 30;
    }
    .hamburger::before {
        content: '';
        position: absolute;
        display: inline-block;
        height: 10px;
        width: 50px;
        right: 0;
        top: -20px;
        border-radius: 5px;
        background: white;
        transition: all .5s;
    }
    .hamburger::after {
        content: '';
        position: absolute;
        display: inline-block;
        height: 10px;
        width: 20px;
        right: 0;
        top: 20px;
        border-radius: 5px;
        background: white;
        transition: all .5s;
    }
    .links {
        position: absolute;
        width: 100vw;
        height: 100vh;
        background-color: #FA1B39;
        z-index: 10;
        transform: translateY(-100vh);
        transition: all .5s;
        padding-top: 50px;
        text-align: center;
    }
    .links a {
        margin-top: 10vh;
        display: block;
    }
    #toggle-mobile-nav:checked ~ .links {
        transform: translateY(0);
    }
    #toggle-mobile-nav:checked ~ .hamburger {
        background: transparent;
    }
    #toggle-mobile-nav:checked ~ .hamburger::before {
        transform: rotate(-45deg);
        transform-origin: right;
        width: 55px;
    }
    #toggle-mobile-nav:checked ~ .hamburger::after {
        transform: rotate(45deg);
        transform-origin: right;
        width: 55px;
    }

    .head-section {
        top: 15vh;
    }
    .head-section h1 {
        font-size: 2em;
        margin-bottom: 0;
        border-bottom: solid 2px white;
    }
    .head-section p {
        font-size: 1em;
        margin-top: 5px;
    }
    .head-section button {
        margin-top: 0;
        font-size: 1.5em;
        margin-left: 5vw;
        color: #fb1a39;
        background: white;
    }
    .column.full, .column.three-fourths, .column.two-thirds, 
    .column.half, .column.third,  .column.fourth {
        width: 100%;
    }
    #contact {
        width: 100%;
    }
    #contact .form-box {
        width: 100%;
    }

    #gal-img-focus img {
        height: 100vh;
        width: 100vw;
    }
    #gal-img-focus button {
        top: 0;
        right: 0;
    }
}
