/*styles.css*/
* {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-image: url('images/aco_tausta2.jpg');
    background-repeat: repeat;
    background-size: 100%;
    background-color: silver;
    text-decoration: none;
}

.overlay {
    height: 55%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 3px;
    left: 0;
    background-color: rgb(51,152,255);
    background-color: rgba(51,152,255, 0.95);
    overflow-x: hidden;
    transition: 0.5s;
    border-radius: 7px;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 0px;
}

.overlay a {
    padding: 6px;
    text-decoration: none;
    font-size: 20px;
    color: black;
    display: block;
    transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

.overlay .closebtn {
    position: absolute;
    right: 45px;
    font-size: 60px;
}


header{
    display: flex;
    background-color: white;
    border-radius: 7px;
    padding-left: 7px;
    border: 1px solid #4da6ff;
    margin-bottom: 15px;
}

navigation{
    float: left;
    font-size:40px;
    cursor:pointer;
    color:black;
    margin-top: 13px;
}

/* Create two columns/boxes that floats next to each other */
section{
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    max-width: 1000px;
    margin-top: 15px;
    margin: auto;
}

article{
    padding: 10px;
    width: 1000px;
    /*background-color: #f1f1f1;*/
    background-color: rgb(241,241,241);
    background-color: rgba(241,241,241, 0.95);
    height: 100%; /* only for demonstration, should be removed */
    border-radius: 7px;
}

activity {
    /*width: 150px;*/
    margin-left: 10px;
    text-align: center;
    height: 360px; /* only for demonstration, should be removed */
    background: #ccc;
    padding: 10px;
    border-radius: 7px;
}

sectionform{
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    max-width: 900px;
    margin-top: 15px;
    margin: auto;
}

contact{
    float: left;
    /*border: 2px solid #4da6ff;*/
    width: 47%;
    padding: 10px;
    /*border-radius: 7px;*/
    color: #4da6ff;
    background-color: rgb(241,241,241);
}

info{
    float: left;
    width: 53%;
    padding: 10px;
    background: #0089FF; /* fancy blue */
    font-size: 15px;
    color: white;
}

/* class */
.sendbutton{
    color: white;
    height: 30px;
    background: #0089FF; /* fancy blue */
    border-radius: 4px;
    border: 1px solid #4da6ff;
}

p2 {
    font-size: 25px;
    color: black;
}

h1 {
    font-size: 32px;
    color: #4da6ff;
}

h2 {
    font-size: 20px;
    color: #0000cd;
}

h3 {
    font-size: 15px;
    color: #0000cd;
    line-height: 1.2;
}

h4 {
    font-size: 12px;
    color: #0000cd;
    line-height: 2.0;
}

@media screen and (max-height: 450px) {
    .overlay {
        height: 85%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 3px;
        left: 0;
        background-color: rgb(51,152,255);
        background-color: rgba(51,152,255, 0.95);
        overflow-x: hidden;
        transition: 0.5s;
        border-radius: 7px;
    }

    .overlay a {
        font-size: 20px;
    }

    .overlay .closebtn {
        font-size: 40px;
        top: -5px;
        right: 35px;
    }
}

@media screen and (max-width:600px) {
/* Disable activity box */
    article {
        float: left;
        padding: 10px;
        width: 100%;
        /*background-color: #f1f1f1; rgb(241,241,241)*/
        background-color: rgb(241,241,241);
        background-color: rgba(241,241,241, 0.95);
        height: 100%; /* only for demonstration, should be removed */
        border-radius: 7px;
    }

    activity{
        display:none;
        height:0;
    }

    sectionform{
        display: inline-block;
        float: left;
        width: 100%;
        justify-content: space-around;
        align-items: stretch;
    }

    contact{
        width: 100%;
        padding: 10px;
        color: #4da6ff;
        background-color: rgb(241,241,241);
    }

    info{
        width: 100%;
        padding: 10px;
        background: #0089FF; /* fancy blue */
        font-size: 15px;
        color: white;
    }
}

@media screen and (max-width:320px){
/* Disable activity box */
    article {
        float: left;
        padding: 10px;
        width: 100%;
        /*background-color: #f1f1f1; rgb(241,241,241)*/
        background-color: rgb(241,241,241);
        background-color: rgba(241,241,241, 0.95);
        height: 100%; /* only for demonstration, should be removed */
        border-radius: 7px;
    }

    activity{
        display:none;
        height:0;
    }

/* set middlename to top of firmname*/
    middlename{
        float: right;
        font-size:16px;
        color: black;
        margin-top: 3px;
        width: 1px;
    }

/* set firmname underneat middlename*/
    firmname{
        float: right;
        font-size: 30px;
        color: #4da6ff;
        text-shadow: 1px 2px 1px silver;
        font-weight: bold;
        margin-top: 25px;
    }

    sectionform{
        display: inline-block;
        float: left;
        width: 100%;
        justify-content: space-around;
        align-items: stretch;
        margin-top: 15px;
    }

    contact{
        width: 100%;
        padding: 10px;
        color: #4da6ff;
        background-color: rgb(241,241,241);
    }

    info{
        width: 100%;
        padding: 10px;
        background: #0089FF; /* fancy blue */
        font-size: 15px;
        color: white;
    }

    .overlay .closebtn {
        font-size: 40px;
        top: -5px;
        right: 35px;
    }
}
