Flexible-Menu 1.0

by velo_ninja

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        body {
            margin: 0;
            padding: 0;
            overflow: hidden;
        }

        #mainDiv {
            width: 100%;
            height: 20vh;
            min-Height: 10vh;
            Height: 50px;
            background-color: grey;
            position: fixed;
            top: 1px;
            left: 0;
            display: flex;
            justify-content: space-around;
            align-items: center;
            z-index: 2;
        }

        .section {
            flex: 1;
            height: 80%;
            min-Height: 40%;
            box-sizing: border-box;
            margin: 0.5%;
            padding: 0.5%;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: row;
            position: relative;
        }

        .button-container {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            height: 100%;
        }

        .button {
            width: 80%;
            height: 80%;
            border: none;
            border-radius: 20%;
            padding: 7px;
            cursor: pointer;
            font-size: 1.5rem;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .menu {
            position: fixed;
            top:40vh;
            left: 50%;
            transform: translateX(-50%);
            width: 53.33%;
            height: 150px;
            transition: top 0.5s ease, background-color 0.5s ease;
            z-index: 1;
            display: none;
        }

      ...