/* change only numbers; nothing else */
:root {
    --smartphone-width: 370px;
    --smartphone-height: 810px;
}

/* **************************** */
/* not needed for demonstration */
html {
    background: rgb(232, 233, 237);
    background: radial-gradient(circle, rgba(232, 233, 237, 1) 0%, rgba(186, 191, 209, 1) 56%);
}

.device-container {
    display: flex;
    justify-content: space-around;
    align-content: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    flex-grow: 1;
    align-items: center;
    max-height: max-content;
}

.mySmartphone {
    position: relative;
    width: var(--smartphone-width);
    /* 360px */
    height: var(--smartphone-height);
    /* 640px */
    margin: auto;
    border: 16px #161616 solid;
    border-top-width: 30px;
    --border-top-width: 30px;
    border-bottom-width: 80px;
    border-radius: 40px;
    background-color: black;
    -webkit-border-radius: 40px;
    -moz-border-radius: 40px;
    -ms-border-radius: 40px;
    -o-border-radius: 40px;
}

/* Lautsprecher */
.mySmartphone::before {
    content: '';
    display: block;
    width: calc(var(--smartphone-height) / 3.5);
    height: 5px;
    position: absolute;
    top: calc((var(--border-top-width) / 2) * -1);
    left: 50%;
    transform: translate(-50%, -50%);
    background: #333;
    border-radius: 10px;
}

/* Button */
.mySmartphone::after {
    content: '';
    display: block;
    width: 58px;
    height: 38px;
    position: absolute;
    left: 50%;
    bottom: calc((var(--smartphone-height) - var(--smartphone-height) * 1.105));
    transform: translate(-50%, -50%);
    background: #333;
    border: 1px solid grey;
    border-radius: 20%;
    -webkit-border-radius: 20%;
    -moz-border-radius: 20%;
    -ms-border-radius: 20%;
    -o-border-radius: 20%;
}

/* Zurück */
.mySmartphone .arrow-left {
    width: 0;
    height: 0;
    position: absolute;
    left: 15%;
    bottom: calc((var(--smartphone-height) - var(--smartphone-height) * 1.075));
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid rgb(88, 88, 88);
    border-radius: 5px 5px 5px 5px;
}

.hamburger {
    position: absolute;
    left: 80%;
    bottom: calc((var(--smartphone-height) - var(--smartphone-height) * 1.065));
    width: 1.25em;
    height: 0.8em;
    margin-right: 0.3em;
    border-top: 0.2em solid #636262;
    border-bottom: 0.2em solid #696767;
}

.hamburger::before {
    content: "";
    position: absolute;
    top: 0.3em;
    left: 0px;
    width: 100%;
    border-top: 0.2em solid #696969;
}

/* Bildschirm */
.mySmartphone .content {
    width: var(--smartphone-width);
    height: var(--smartphone-height);
    background: white;
    border-radius: 40px;
    background-position: center center;
    background-size: cover;
    object-fit: cover;
    position: relative;
    -webkit-border-radius: 40px;
    -moz-border-radius: 40px;
    -ms-border-radius: 40px;
    -o-border-radius: 40px;
}

/* An/Aus Knopf */
.mySmartphone .myPower {
    background: #161616;
    height: 80px;
    position: absolute;
    right: -20px;
    top: calc(var(--smartphone-height) / 15);
    width: 15px;
    border-radius: 15%;
}

/* Lauter */
.mySmartphone .myPower::before {
    content: "";
    display: block;
    background: #161616;
    height: 60px;
    position: absolute;
    top: 130px;
    width: 15px;
    border-radius: 25%;
}

/* Leiser */
.mySmartphone .myPower::after {
    content: "";
    display: block;
    background: #161616;
    height: 60px;
    position: absolute;
    top: 199px;
    width: 15px;
    border-radius: 25%;
}

.mySmartphone .nook {
    /* TODO */

}