* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Cambria;
    font-size: 20px;
    background-color: mistyrose;
}
header {
    height: 200px;
    position: fixed;
    top: 0;
    left: 0;
    background-image: url(obraz.png);
    background-repeat: repeat-x;
    background-position: 40px 0;
    width: 100%;
    color: white;
    padding-top: 70px;
    padding-left: 15%;
    font-size: 3em;
}
main {
    margin-top: 200px;
}
section {
    background-color: plum;
    height: 400px;
    margin: 5px;
    box-shadow: 4px 4px 10px dimgray;
    width: 22%;
    float: left;
    border-radius: 10px;
    padding: 15px;
}
section select {
    width: 60%;
    padding: 1px
}
section button {
    padding: 1px;
}
section:last-child {
    background-color: aqua;
}
section:last-child li {
    margin-bottom: 5px;
    border-bottom: 1px solid #505050;
}
section h2 {
    text-align: center;
}
section button:hover {
    background-color: #505050;
    color: white;
}
section ul button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: green;
    text-align: center;
    font-weight: bold;
    color: white;
}
section ul {
    list-style-type: none;
    overflow-y: auto;
    width: 100%;
    height: 300px; 
}
section h3 {
    font-size: 1em;
}
footer {
    height: 100px;
    background-color: #c900c9;
    color: white;
    padding-left: 50px;
    padding-top: 40px;
    clear:both;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}


@media only screen and (max-width: 800px) {
    header {
        height: 150px;
        padding-top: 45px;
        background-position: 40px;
        background-size: auto 200px;
    }
    section {
        width: calc(100% - 20px);
    }
    section:last-child {
        margin-bottom: 110px;
    }
}