/* Stylesheet for the website */
body {
    /* background-color: #d1faff; */
    background-color: #6936F5;
    color: #212121;
    font-family: "Raleway", sans-serif;
    font-size: 1.2em;
    margin: 0;
    padding: 0;
}
*{
    box-sizing: border-box;
    /* outline: 1px solid red; */
}

/* topnav class for the top navigation bar using flexbox */
.topnav {
    background-color: #212121;
    color: #d1faff;
    display: flex;
    font-size: 1.2em;
    height: 50px;
    line-height: 50px;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

/* Topnav 
.topnav {
    background-color: #212121;
    color: #d1faff;
    font-size: 1.2em;
    height: 50px;
    line-height: 50px;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
} */

.topnav a {
    color: #d1faff;
    display: inline-block;
    padding: 0 20px;
    text-decoration: none;
}

.topnav a:hover {
    background-color: #6936F5;
    color: #d1faff;
}

.topnav a.active {
    background-color: #d1faff;
    color: #212121;
}

/* Hero section with a header class with a logo on the left portion and an h1 on the right portion */
.header {
    background-color: #212121;
    color: #d1faff;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
}

/* centralize the H1 within the header section using flexbox */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.services {
    display: flex;
    background-color: #d1faff;
    color: #212121;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-content: center;
}

h2 {
    text-align: center;
}

hr {
    border: 1px solid #212121;
    width: 50%;
}

/* Services section with three columns side by side using flexbox */ 
.s-column {
    background-color: #d1faff;
    color: #212121;
    justify-content: space-around;
    margin: 10px;
    padding: 50px 0;
    width: 100%;
    width: 30%;
    min-width: 150px;
    text-align: center;
}
@media (max-width: 1000px){
    .services{
        flex-direction: column;
    }
    .s-column{
        width: 90%;
    }
}
.features {
    background-color: #212121;
    color: #d1faff;
    margin: 0;
    padding: 2%;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-content: center;
}

.features-h {
    background-color: #212121;
    color: #d1faff;
    margin: 0;
    padding: 2%;
    width: 100%;
}

.f-column {
    background-color: #212121;
    color: #d1faff;
    justify-content: space-around;
    width: 100%;
    flex-basis: 20%;
    min-width: 150px;
    padding: 50px 0;
    text-align: center;
    border: 3px solid #d1faff;
    color: #fff;
    text-align: center;
    margin: 10px;
}

.f-column:hover {
    background-color: #6936F5;
    color: #d1faff;
}

.features-hr {
    background-color: #6936F5 !important;
}

.contact {
    background-color: #BB84E8;
    color: #212121;
    margin: 0;
    padding: 2%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-content: center;
}


.contact-c {
    justify-content: space-around;
    width: 100%;
    flex-basis: 20%;
    min-width: 150px;
    padding: 50px;
}

.contact-h {
    background-color: #BB84E8;
    color: #212121;
    margin: 0;
    padding: 2%;
    width: 100%;
}
.map{
    width: 100%;
    height: 600px;
}
.mapwrapper{
    width: 50%;
}
.formwrapper{
    width: 50%;
    max-width: 1000px;
}
.form {
    font-weight: bold;
    padding: 2rem 1rem 2rem 0;
}
.success_message{
    color: green;
    padding: 5px;
    background-color: white;
    border-radius: 5px;
    padding-left: .5rem;
    border: 2px solid #212121;
    display: none;   
}
.wrap {

    position: relative;
    font-size: 15px;
    width: 100%;
    border: 1px solid #212121;
    border-radius: 5px;
    display: flex;

}
.input::placeholder {
    opacity:0;
     visibility: hidden;
   }
.label{
    font-size: 1rem;
    left: 1rem;
    top: 10px;
    position: absolute;
    transition: font-size .3s;
    color: #212121;
    text-transform: uppercase;
}
.input:focus ~ .label, .input:not(:placeholder-shown) ~ .label{
    font-size: .7rem;
}
.input:focus , .input:not(:placeholder-shown){
    padding: calc(2rem + 6px) 0 1rem 1rem;
}
.input {
    width: 100%;
    border-radius: 5px;
    background: white;
    padding: 1.5rem 1rem;
    height: 100%;
    width: 100%;
    padding-right: 4rem;
    flex-grow: 1;
    position: relative;
    color: #212121;
}

.input:focus {
    outline: none;
    border: 1px solid #212121;
}
.button{
    background-color: #212121;
    text-transform: uppercase;
    color: white;
    min-height: 48px;
    font-size: 18px;
    font-weight: bold;
    width: 50%;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    cursor: pointer;
}
.button:hover{
    filter: brightness(110%);
}
@media (max-width: 1250px){
    .contact{
        flex-direction: column;
        align-items: center;
    }
    .contact-c{
        padding: 10px;
    }
    .map{
        max-width: 100%;
        
    }
    .mapwrapper{
        width: 80%;
    }
    .formwrapper{
        width: 80%;
    }
    .form{
        padding: 0;
    }
}
@media (max-width: 1000px){
    .formwrapper{
        width: 100%;
    }
    .mapwrapper{
        width: 100%;
    }
    
}
@media (max-width: 500px){
    .button{
        width: 100%;
    }
}
.footer {
    background-color: #212121;
    color: #d1faff;
    margin: 0;
    padding: 2%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-content: center;
    font-weight: 200;
    font-size: smaller;
}


/* For Mobile */
@media screen and (max-width: 540px) {
    .s-column {
        flex-direction: column;
    }
    .services {
        flex-wrap: wrap;
        flex-direction: column;
    }

    .header {
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
    }
    
    .logo {
        padding-top: 100px;
    }
    
    .slogan {
        justify-self: center;
    }

}
