html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #363b48;
    font-family: "Montserrat", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.metro {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 750px;
    padding: 12px;
}

.metro li {
    --tile-size: 120px;
    width: var(--tile-size);
    height: var(--tile-size);
    color: #ffffff;
    position: relative;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease;
    transform-origin: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition:
        transform 0.15s ease,
        box-shadow 0.1s ease;
}

.metro li:hover {
    box-shadow: inset 0 0 0 2px rgb(255, 255, 255, 0.85);
}

.metro li.wide {
    width: calc(var(--tile-size) * 2 + 12px);
}

.tile-icon {
    display: inline-block;
    font-size: 48px;
    margin: 0;
    line-height: 1;
}

.tile-icon img {
    display: block;
}

.metro li span.tile-label {
    color: rgba(255, 255, 255);
    text-transform: uppercase;
    font-size: 14px;
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 4px;
}

.metro li:nth-child(1) {
    background: #00b6de;
}

.metro li:nth-child(2) {
    background: #56dea7;
}

.metro li:nth-child(3) {
    background: #ff7659;
}

.metro li:nth-child(4) {
    background: #f8cd36;
}

.metro li:nth-child(5) {
    background: #f26175;
}

.metro li:nth-child(6) {
    background: #5ca7df;
}

.metro li:nth-child(7) {
    background: #9e7ac2;
}

.metro li:active {
    transform: scale(0.96);
}

.box {
    display: table;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0);
    z-index: -1;
    visibility: hidden;
    opacity: 0;
    transform: perspective(1200px) rotateY(180deg) scale(0.1);
    transition: 1s all;
}

.box.open {
    visibility: visible;
    opacity: 1;
    z-index: 999;
    transform: perspective(1200px) rotateY(0deg) scale(1);
}

.box .content {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    color: white;
    font-size: 24px;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.3s 0.2s;
}

.box.open .content {
    opacity: 1;
}

.box .content h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.box .content button {
    background: #00b6de;
    color: white;
    border: none;
    min-width: 100px;
    min-height: 48px;
    height: auto;
    padding: 0 20px;
    margin: 8px;
    border-radius: 6px;
    font-size: 18px;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.box .content button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.box .content button:hover,
.box .content button:active {
    background: #0099ba;
}

.box .close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s 0.2s;
}

.box.open .close {
    opacity: 1;
}

.box .close::before,
.box .close::after {
    content: "";
    position: absolute;
    background: white;
}

.box .close::before {
    width: 60%;
    height: 4%;
    left: 20%;
    top: 48%;
}

.box .close::after {
    width: 4%;
    height: 60%;
    left: 48%;
    top: 20%;
}

.box .content .popup-button {
    display: inline-block;
    background: #00b6de;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    margin: 8px;
    border-radius: 6px;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.box .content .popup-button:hover {
    background: #0099ba;
}

.metro li {
    overflow: hidden;
    position: relative;
}

.highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

@media (max-width: 480px) {
    .metro {
        padding: 0 6px;
    }

    .metro li {
        --tile-size: 100px;
    }

    .metro li.wide {
        width: calc(var(--tile-size) * 2 + 12px);
    }

    .tile-icon {
        font-size: 40px;
    }

    .tile-label {
        font-size: 13px;
    }
}