:root {
  --cell: 75px;
  --gap: 7px;
}

* {
  margin: 0;
  padding: 0;
  outline: none;
  cursor: pointer;
}

html {
  font-family: 'Open Sans', sans-serif;
  color: white;
  background-color: #232528;
  overflow: hidden;
  width: 100%;
  height: 100%;
  line-height: normal;
  font-weight: normal;
  /*font-size: calc(10px + 0.6vw);*/
  font-size: calc(var(--cell) / 12);
}

#grid {  
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--cell), 1fr));
  grid-gap: var(--gap);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50% , -50%);
}

.cell, .btn {
  background-color: #2d3e50; 
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: var(--cell);
  height: calc(var(--cell) / 5);
}

.hide {
  display: none !important;
}



/* Окно с результатами или неподдержкой */
#unsupport, #result {
  position: fixed;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  color: white;
  background-color: black;
  flex-direction: column;
  text-align: center;
}

.app-name {
  padding-left: calc(var(--cell) / 5);
  display: block;
  position: absolute;
}

.cell-number, .cell-img, .V {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--cell) / 5);
  height: calc(var(--cell) / 5);
  background-color: #275680;
  color: white;
  text-align: center;
  line-height: calc(var(--cell) / 4);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: 2px 0 0 0 #232528;
  pointer-events: none;
}

.V {
  background-color: #4bbb71;
}

.V::before {
  content: "+";
  font-weight: bold;
  font-size: 1.5rem;
  color: black;
}

.cell:focus .cell-img,
.cell:hover .cell-img {
  z-index: 1000;
  transform: scale(1.7) translate(-0.06rem, -0.06rem);
  border-radius: 5px;
  border: solid 2px white;
}

.cell:focus .btn,
.cell:hover .btn {
  z-index: 0;
  color: black;
  background-color: white;
}

.text0, .text1{
  display: none;  
  padding-left: calc(var(--cell) / 4);
  color: black;
  /*font-weight: bold;*/
}

.cell:hover .app-name,
.cell:focus .app-name {
  display: none;
}

.cell:hover .text0,
.cell:hover .text1,
.cell:focus .text0,
.cell:focus .text1{
  display: block;
}  