#tetris { 
    margin: 1em auto; 
    padding: 1em; 
    border: 4px solid black; 
    border-radius: 16px; 
    background-color: #F8F8F8; 
}

#stats { 
    display: none; /*inline-block;*/ 
    vertical-align: top; 
}

#canvas { 
    display: inline-block; 
    vertical-align: top; 
    background: url("../images/greengridbg.jpg"); 
    box-shadow: 10px 10px 10px #999; 
    border: 2px solid #333; 
}

#menu { 
    display: inline-block; 
    vertical-align: top; 
    position: relative; 
}

#menu p { 
    margin: 0.5em 0; 
    text-align: center; 
}

#menu p a { 
    text-decoration: none; 
    color: black; 
}

#upcoming { 
    display: block; 
    margin: 0 auto; 
    background-color: #E0E0E0; 
}

#score { 
    color: red; 
    font-weight: bold; 
    vertical-align: middle; 
}

#rows { 
    color: blue; 
    font-weight: bold; 
    vertical-align: middle; 
}

#stats { 
    position: absolute; bottom: 0em; right: 1em; }

@media screen and (min-width: 0px) and (min-height: 0px) { 
    #tetris { 
        font-size: 0.5em; 
        width: 150px; 
    } 
    #menu { 
        width: 75px; 
        height: 150px; 
    }
    #upcoming { 
        width: 40px; 
        height: 40px; 
    } 
    #canvas { 
        width: 75px; 
        height: 150px; 
    } 
}

@media screen and (min-width: 400px) and (min-height: 400px) { 
    #tetris { 
        font-size: 0.8em; 
        width: 310px; 
    } 
    #menu { 
        width: 115px; 
        height: 225px; 
    }
    #upcoming { 
        width: 60px; 
        height: 60px; 
    } 
    #canvas { 
        width: 115px; 
        height: 225px; 
    } 
}

@media screen and (min-width: 500px) and (min-height: 500px) { 
    #tetris { 
        font-size: 1.0em; 
        width: 400px; 
    } 
    #menu { 
        width: 150px; 
        height: 300px; 
    }
    #upcoming { 
        width: 75px; 
        height: 75px; 
    } 
    #canvas { 
        width: 150px; 
        height: 300px; 
    } 
}

@media screen and (min-width: 600px) and (min-height: 600px) { 
    #tetris { 
        font-size: 1.2em; 
        width: 485px; 
    } 
    #menu { 
        width: 190px; 
        height: 375px; 
    } 
    #upcoming { 
        width: 95px; 
        height: 95px; 
    } 
    #canvas { 
        width: 190px; 
        height: 375px; 
    } 
}

@media screen and (min-width: 700px) and (min-height: 700px) { 
    #tetris { 
        font-size: 1.5em; 
        width: 570px; 
    } 
    #menu { 
        width: 225px; 
        height: 450px; 
    } 
    #upcoming { 
        width: 113px; 
        height: 113px; 
    } 
    #canvas { 
        width: 225px; 
        height: 450px; 
    } 
}

@media screen and (min-width: 800px) and (min-height: 800px) { 
    #tetris { 
        font-size: 1.20em; 
        width: 660px; 
    } 
    #menu { 
        width: 265px; 
        height: 525px; 
    } 
    #upcoming { 
        width: 135px; 
        height: 135px; 
    } 
    #canvas { 
        width: 265px; 
        height: 525px; 
    } 
}

@media screen and (min-width: 900px) and (min-height: 900px) { 
    #tetris { 
        font-size: 1.5em; 
        width: 750px; 
    }
    #menu { 
        width: 300px; 
        height: 600px; 
    }
    #upcoming { 
        width: 150px; 
        height: 150px; 
    }
    #canvas { 
        width: 300px; 
        height: 600px; 
    }
}

/* Copyright */
.action {
    width: 160px; 
    height: 50px; 
    background: #000; 
    border-radius: 50%; 
    cursor: pointer; 
}

.action span {
    position: relative; 
    width: 100%; 
    height: 100%; 
    display: flex; 
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 13px; 
    transition: 0.3s ease-in-out; 
}

.action:active span {
    transform: rotate(135deg);
}

.action ul {
    position: relative; 
    bottom: 25px; 
    background: #000; 
    min-width: 320px; 
    padding: 10px; 
    border-radius: 10px;
    opacity: 0; 
    visibility: hidden;
    transition: 0.3s; 
}

.action.active ul {
    bottom: 65px; 
    opacity: 1; 
    visibility: visible;
    transition: 0.3s; 
}

.action ul li {
    list-style: none;
    display: flex; 
    color: white; 
    font-size: 12px; 
    justify-content: flex-start;
    align-items: center;
    padding: 10px 0;
    transition: 0.3s; 
}
