.top,
.bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 20px 0;
    align-items: center;
}


.canvas {
    border: 2px solid black;
    border-radius: 2%;
}

.block,
input,
select,
button {
    width: 80%;
}


.main {
    margin-top: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.top>.block {
    margin: 10px;
}

.bottom>button {
    margin: 10px;
}

.block>p {

    margin: 10px auto;
    width: 50%;
}

nav>a {
    width: 100%;
    text-align: center;
}

nav {
    background-color: #563D7C;
}


@media (max-width: 767px) {

    .top,
    .bottom {
        flex-direction: column;
        align-items: stretch;
        margin: 10px 0;
    }

    .canvas {
        width: 100%;
        border-width: 1px;
    }

    .block,
    input,
    select,
    button {
        width: 100%;
        box-sizing: border-box;
    }

    .main {
        position: static;
        margin: 20px;
        transform: none;
    }

    .top>.block {
        margin: 5px;
    }

    .bottom>button {
        margin: 5px;
    }

    .block>p {
        width: 100%;
        margin: 10px 0;
    }

    nav>a {
        font-size: 16px;
    }

    nav {
        background-color: #563D7C;
        padding: 10px 0;
    }
}
