* {
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}

body {
    background-color: #fae2e3;
    /* background-color: rgb(2, 2, 37); */
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#container {
    width: 1400px;
    height: 900px;
    border: 2px solid #444;
    margin: 20px auto;
    background-color: #fff;
    background-image: url(../images/phoneframes.png);
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

#go-back-home-button {
    position: absolute; top: 0px; left: -92px;
    width: 90px; height: 90px;
    border: 4px solid rgb(4, 33, 53);
    cursor: pointer;
    text-align: center;
    padding: 22px 8px;
    background-color:#50FF00;
    border-radius: 50%;
}

#go-back-home-button > a {
    text-decoration: none;
    color:rgb(4, 33, 53);
    font-weight: bold;
}

#mainbutton {
    position: absolute; top: 0px; right: -92px;
    width: 90px; height: 90px;
    border: 4px solid rgb(4, 33, 53);
    cursor: pointer;
    text-align: center;
    padding: 22px 8px;
    background-color:#50FF00;
    border-radius: 50%;
}


#phone-frame1, #phone-frame2, #phone-frame3 {
    position: absolute;
    overflow: hidden; /* to adjsut the height of the menu containers and simulate the menu items going down the screen */
}

header {
    background-color:rgb(4, 33, 53);
    height: 60px;
    position: relative;
    z-index: 10;
}

header button {
    position: absolute; top: 5px; right: 12px;
    width: 56px; height: 50px;
    background-color: #50FF00;
    border: 4px outset #50FF00;
    cursor: pointer;
    font-weight: bold;
}

nav.mobilemenu li {
    outline: 1px solid #666;
    list-style-type: none;
    height: 56px;
}

nav.mobilemenu a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: #333;
    /* padding: 8px; */
    font-size: 35px;
    line-height: 54px;
    text-indent: .5em;
}

/* --------------------- styles for phone frame 1 --------------------*/
#phone-frame1 {
    top: 73px; left: 71px;
    width: 379px; height: 790px;
    border-bottom-left-radius: 42px;
    border-bottom-right-radius: 38px;
}

/* container for the menu items */
#phone-frame1 nav.mobilemenu {
    background-color: cadetblue;
    /*height: calc(100% - 100px); */ /* use calc to better estimate the height of the menu, taking in consideration the height of the button */
    position: relative;
    width: 100%;
    transition: left 1s ease-in-out;
}

#phone-frame1 nav.mmclosed {
    position: absolute; top: 60px; left: -600px;
}

#phone-frame1 nav.mmopen {
    position: absolute; top: 60px; left: 0px;
}

/* icon image of the menu - open and close */
#button1 {
    background-image: url(../images/phone-menu-icon.png);
    background-size: 140px;
    background-position: -10px -16px;
    border: 4px outset #50FF00;
}

/* -------------------- styles for phone frame 2 -------------------*/
#phone-frame2 {
    top: 115px; left: 619px;
    width: 314px; height: 557px;
}

#phone-frame2 .mobilemenu {
    background-color: lightsteelblue;
    /* position: relative; */
    transition: top .8s ease-in-out;
}

#phone-frame2 .mmopen {
    position: absolute; top: 60px; left: 0px;
    width: 100%;
}

#phone-frame2 .mmclosed {
    position: absolute; top: -600px; left: 0px;
    width: 100%;
}

#phone-frame2 nav a span {
    display: none;
}

/* --------------------- styles for phone frame 3 -----------------*/
#phone-frame3 {
    top: 115px; right: 72px;
    width: 227px; height: 395px;
}

#phone-frame3 nav a span {
    display: none;
}

#phone-frame3 .mobilemenu {
    background-color: turquoise;
    transition: top .7s ease-in-out;
}

#phone-frame3 .mmopen {
    position: absolute; top: 60px; left: 0px;
    width: 100%;
}

#phone-frame3 li {
    transition: transform .9s ease-in-out .5s;
}

#phone-frame3 .mmopen li {
    transform: translateX(0px); /* controls the movement of elements in the horizontal/ X axis */
}

#phone-frame3 .mmclosed {
    position: absolute; top: -600px; left: 0px;
    width: 100%;
}

#phone-frame3 .mmclosed li {
    transform: translateX(-500px);
}

