/*  @media only screen and (max-width: 620px)*/
#regels {
    float: right;
}

header {
    margin: auto;
    width: 90%;
    border-radius: 15px;
    border: 10px solid black;
    padding: 25px;
    background-color: gray;
    height: 90px;
}

main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    align-content: flex-start;
    width: 90%;
    margin: auto;
}

h1,
h2,
h3,
h4 {
    font-size: 20px;
    margin: 10px;
    border-radius: 5px;
    padding: 5px;
    border: 5px solid black;
}

h1 {
    background-color: rgb(128, 128, 255);
}

h2 {
    background-color: rgb(255, 128, 128);
}

h3 {
    background-color: gray;
}

h4 {
    background-color: gold;
}

h5 {
    font-size: 20px;
    margin: 0;
}

#title {
    font-size: 50px;
    margin: 0;
}

.regels_div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: stretch;
    align-content: stretch;
    width: 100%;
}

#regels_even {
    background-color: rgb(128, 128, 255);
    width: 40%;
    border-radius: 15px;
    border: 10px solid black;
    height: 350px;
    margin-top: 50px;
    text-align: center;
}

#regels_odd {
    background-color: rgb(255, 128, 128);
    width: 40%;
    border-radius: 15px;
    border: 10px solid black;
    height: 350px;
    margin-top: 50px;
    text-align: center;
}

h6 {
    font-size: 100px;
    margin: 0;
}

#regels_even p,
#regels_odd p {
    font-size: 75px;
}

#regels_uitleg {
    border-radius: 15px;
    border: 10px solid black;
    background-color: gray;
    width: 90%;
    margin: auto;
    margin-top: 25px;
    font-size: 20px;
    padding: 10px;
}

#info p {
    font-size: 20px;
    margin: 5px;
}

#content_auto p {
    font-size: 15px;
    margin: 2px;
}

.menu {
    position: fixed;
    width: 200px;
    height: 200px;
    top: 25px;
    right: 25px;
    background-color: gray;
    border-radius: 15px;
    border: 10px solid black;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    align-content: stretch;

    p {
        width: 50%;
        margin: auto;
        text-align: center;
    }

    input[type="checkbox"] {
        width: 50%;
        margin: auto;
    }

    #on {
        display: None;
        width: 100px;
        margin: auto 50px auto 50px;
    }

    #off {
        display: block;
        width: 100px;
        margin: auto 50px auto 50px;
    }

    #save,
    #load {
        width: 75px;
        margin: auto;
    }
}

#content_auto {
    position: fixed;
    top: 25px;
    left: 25px;
    background-color: gray;
    border-radius: 15px;
    border: 10px solid black;
    height: 200px;
    width: 80%;
}

#storage {
    height: 0px;
    font-size: 0px;
}

#loadWindow {
    position: absolute;
    display: none;
    top: 20%;
    left: 20%;
    width: 50%;
    height: 50%;
    border: 10px solid black;
    border-radius: 15px;
    background-color: gray;
    padding: 50px;

    p {
        overflow-y: scroll;
        height: 80%;
        background-color: white;
        border: 2px solid black;
    }
}

#upload {
    display: none;
}

@media only screen and (max-width: 620px) {
    *{
        margin: 0;
    }
    html{
        width: 100vw;
    }
    body{
        width: 100%;
    }
    header{
        border: 0;
        width: calc(100% - 50px);
        border-radius: 0;
        margin: 0;
        height: 75px;
        border-bottom: 5px solid black;
        form{
            display: flex;
            align-items: baseline;
            justify-content: space-between;

            input[type=number]{
                width: calc(100% - 30px - 75px);
            }

            input[type=submit]{
                width: 75px;
                margin-bottom: 20px;
            }
        }


    }
    h1,
    h2,
    h3,
    h4{
        font-size: 15px;
        margin: 5px;
    }

    #content_auto{
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        top: auto;
        border: 0;
        border-top: 5px solid black;
        border-radius: 0;
        width: 100%;
        height: 150px;
    }

    .menu{
        top: 0;
        left: 0;
        right: 0;
        border: 0;
        border-bottom: 5px solid black;
        border-radius: 0;
        width: 100%;
        height: 100px;
    }
    #load,
    #save{
        display: none;
    }

    #title{
        width: 100%;
    }
    .regels_div{
        display: none;
    }
    #regels_uitleg{
        font-size: 17px;
        margin-bottom: 25px;
    }
}