@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:FILL@0&display=block');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
  font-family: 'Inter';
  outline: none;
  
  -webkit-user-select: none;
  user-select: none;
}

:root { font-size: 62.5% }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;

  background: #222222;

  padding: 1rem;
  gap: 1rem;
}

.panels {
  display: flex;
  height: 100%;
  gap: 1rem;
}

.panels > * {
  background: #181818;
  border-radius: 0.8rem;
  width: 100%;
}

/* -----[ MAIN PANEL ]----- */

.main-panel { overflow: hidden }

#screen {
  image-rendering: pixelated;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* -----[ SIDE PANEL ]----- */

.side-panel {
  min-width: 24rem;
  width: 24rem;

  padding: 0.5rem;

  display: grid;
  grid-template-rows: repeat(auto-fit, minmax(0, min-content));
  grid-template-columns: 1fr 1fr 1fr;
  gap: .4rem;
}

.side-panel input {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 5rem;

  appearance: none;
  
  border: none;
  border-radius: 0.3rem;

  font-size: 175%;

  transition-duration: 50ms;
  transition-property: filter, scale;

  color: #C0C0C0;
  background: #242424;
  box-shadow: 0 0.2rem 0.4rem #00000020;
  cursor: pointer;
}

.side-panel input * {
  height: 60%;
}

.side-panel input:hover {
  filter: brightness(1.2);
}

.side-panel input:checked {
  filter: brightness(1.4);
}

.side-panel input:active {
  filter: brightness(0.95);
  scale: 0.95;
  box-shadow: none;
}

.side-panel input[title]::after {
  content: attr(title);
}

/* -----[ SIDEBAR ]----- */

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: unset;
  width: min-content;
}

.sidebar > * {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar input {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  appearance: none;

  width: 3.5rem;
  height: 3.8rem;

  font-family: 'Material Symbols Rounded';
  font-size: 2.4rem;
  color: #A0A0A0;
  
  border: none;
  border-radius: 0.8rem;

  transition-duration: 50ms;
  transition-property: color, background, scale;

  background: transparent;
  cursor: pointer;
}

.sidebar input:hover {
  background: #303030;
  color: #F0F0F0;
}

.sidebar input:active {
  background: #141414;
  color: #808080;
}

.sidebar input:checked {
  background: #1D1D1D;
  border: 2px solid #303030;
}

.sidebar input[data-icon]::after {
  content: attr(data-icon);
}