/* fullscreen flex container */ body, html { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; margin: 0; height: 100%; overflow: hidden; /* disable scrollbar */ background: black; color: rgb(166, 166, 166); /* text color */ } .container { padding: 10px; display: flex; justify-content: center; align-items: center; height: 100%; font-family: sans-serif; color: white; } /* sidebar with categories */ .sidebar { display: flex; flex-direction: column; gap: 15px; margin-left: 15px; height: 100vh; /* take up entire vertical height */ background: rgb(19, 19, 19); overflow-y: auto; /* make it scrollable */ width: 12%; /* fixed width */ } .sidebar::-webkit-scrollbar { display: none; } /* Map layout */ .map-wrapper { width: 100vw; height: 100vh; overflow: hidden; border: 0px solid white; /* disbale map border */ position: relative; margin: 0; /* margins for map (disbaled) */ } #map { position: absolute; top: 0; left: 0; cursor: grab; will-change: transform; } .map { display: table; margin-right: 30px; } .map-row { display: table-row; } .map-row > .square, .map-row > .empty { display: table-cell; width: 100px; height: 100px; vertical-align: top; } /* what the squares look like */ .square { position: relative; border: 1px dashed white; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; transition: border-color 0.5s ease, box-shadow 0.5s ease } .square.highlight { border: 1px solid purple; /* highlight color when hovered over in sidebar */ } .square.highlight-update { border: 1px solid purple; box-shadow: 0 0 10px 2px purple; } /* the x button to clear that square (temp, make it look better later) */ .clear-btn { position: absolute; top: 2px; right: 2px; background: red; border: none; color: white; border-radius: 50%; width: 20px; height: 20px; display: none; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; padding: 0; } .square:hover .clear-btn { display: flex; } /* empty for when it's null */ .empty { border: none; } /* for the categories */ .categories { /* make sidebar wider */ padding: 10px; border: 1px solid white; /* sidebar border color */ border-radius: 4px; } .fruit { cursor: grab; margin-bottom: 10px; padding: 5px 10px; border: 1px solid white; /* cells inside sidebar border color */ border-radius: 4px; user-select: none; color: white; } .fruit:active { opacity: 0.6; } /* what the titles of the categories */ .categories h4 { text-align: center; margin-top: 5px; /* change this to make the titles closer to the top of the cell */ margin-bottom: 10px; padding: 0; color: white; } /* "cuberoo" logo and text at top */ .header { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; z-index: 10; } .logo { display: flex; align-items: center; } .logo img { width: 50px; height: 50px; margin-right: 6px; } .logo span { font-size: 1.5rem; font-weight: bold; color: rgb(191, 93, 245); /* color of logo text */ } #zoomControls { position: absolute; bottom: 20px; right: 0px; display: flex; flex-direction: column; gap: 0px; z-index: 100; /* this makes it appear on top of the map*/ } #zoomControls button { width: 40px; height: 40px; font-size: 1.5rem; background: rgb(0, 0, 0); color: white; border: none; border-radius: 4px; cursor: pointer; } #zoomControls button:hover { background: rgb(0, 0, 0); } .dropped-fruit { display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; height: 100%; } .category-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .category-header h4 { margin: 0; padding: 0; flex: 1; text-align: left; } .category-toggle { margin-left: 10px; background: none; border: none; color: white; font-size: 1.1em; cursor: pointer; padding: 0 6px; height: 28px; align-items: center; display: flex; }