* {
    box-sizing: border-box;
    flex-basis: auto;
}

body {
    margin: 0px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

header a {
    text-decoration: none;
}

h1 {
    text-align: center;
    font-size: 50px;
    color: white;
}

header {
    padding: 40px;
    background-color: rgb(17, 124, 143);
}

nav {
    display: flex;
    background-color: #333;
    overflow: hidden;
    position: sticky;
    top: 0px;
    left: 0px;
    right: 0px;
}

nav a {
    text-decoration: none;
    padding: 20px;
    text-align: center;
    float: left;
    color: white;
}

nav a:hover{
    background-color: #ddd;
    color: black;
}

nav a:active{
    background-color: #2196F3;
    color: white;
}

nav input[type=text] {
    float: right;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 8px;
    margin-right: 16px;
    border: 1px solid #ccc;
    font-size: 17px;
    border-radius: 10px;
}

.search {
    margin-left: auto;
    margin-right: auto;
}

main {
    background-color: white;
    text-align: center;
}

h2 {
    padding: 20px;
    font-size: 35px;
}

.sq_img {
    width: 100%;
    border-radius: 10px;
}

.png_img {
    width: 65%;
}

p {
    line-height: 2;
    margin-left: 20%;
    margin-right: 20%;
}

.email {
    text-decoration: none;
}

section:nth-child(even) {
    background-color: rgb(241, 241, 241);
}

section {
    padding: 40px;
}

div {
    max-width: 500px;
    flex-basis: 500px;
    padding: 10px;
    border: 5px solid gray;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
}

p input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 10px;
}

select:hover {
    cursor: pointer;
}

input[type="submit"] {
    background-color: #a5bbed;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    width: 75%;
    height: 40px;
    cursor: pointer;
    transition: 0.25s;
}

input[type="submit"]:hover {
    background-color: #0fd82dac;
    width: 100%;
    height: 50px;
    font-size: larger;
}

.social_contact {
    text-decoration: none;
    
}

footer {
    display: flex;
    background-color: #333;
    overflow: hidden;
}

footer a {
    text-decoration: none;
    padding: 20px;
    text-align: center;
    float: left;
    color: white;
}

footer a:hover{
    background-color: #ddd;
    color: black;
}

.copyright {
    margin-left: auto;
}

@media screen and (max-width: 700px) {
    nav {
        flex-direction: column;
        position: unset;
    }

    .search {
        margin-left: 16px;
    }
}