* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#picbox {
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
}

#boxcard {
    z-index: 1;
    margin: 10px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#boxcard div {
    width: 150px;
    height: 150px;
    margin: 5px;
    padding: 5px;
    border: 1px solid #EE872A;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .5);
    background: #ffeed4;
    z-index: 2;
}

#boxcard div img {
    display: none;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    z-index: 3;
}

#boxbuttons {
    text-align: center;
    margin: 20px;
    display: block;
}

#boxbuttons .button {
    text-transform: uppercase;
    background: #EE872A;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 10px;
    cursor: pointer;
}

#boxbuttons .button:hover {
    background: #999;
}

/* Media Queries für verschiedene Bildschirmgrößen */

/* Tablets und kleine Bildschirme */
@media only screen and (max-width: 768px) {
    #boxcard div {
        width: 120px;
        height: 120px;
    }
}

/* Kleine Mobilgeräte (iPhone 5/SE und ähnliche) */
@media only screen and (max-width: 320px) {
    #boxcard div {
        width: 80px;
        height: 80px;
    }
}

/* Mittlere Mobilgeräte (iPhone 6/7/8, X/XS, XR, 11, SE 2nd Gen) */
@media only screen and (max-width: 375px) {
    #boxcard div {
        width: 100px;
        height: 100px;
    }
}

/* Große Mobilgeräte (iPhone 6/7/8 Plus, XS Max, 11 Pro Max) */
@media only screen and (max-width: 414px) {
    #boxcard div {
        width: 110px;
        height: 110px;
    }
}
