@font-face {
    font-family: 'Mikhak';
    src: url('https://github.com/aminabedi68/Mikhak/blob/master/fonts/ttf/Mikhak-Regular.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Reset + Font Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Mikhak', sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    height: 100vh;
    background-color: #0F0F15;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    color: #fff;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 9%;
    background: rgba(45, 44, 44, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease-in-out;
}

.logo {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.03);
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 500;
    color: #fff;
    margin-left: 4rem;
    transition: 0.3s ease-in-out;
}

.navbar input {
    width: 250px;
    height: 37px;
    padding-left: 20px;
    border-radius: 20px;
    border: 1px solid #fff;
    outline: none;
    background: transparent;
    color: #fff;
}

/* Layout */
.container {
    margin-top: 8rem;
    display: flex;
    align-items: end;
    gap: 4px;
    flex-wrap: nowrap;
}

.container2 {
    margin-top: 7px;
    margin-left: -9px;
}

.c1 { width: 60px; height: 420px; }
.c2 { width: 60px; height: 360px; }
.c3 { width: 60px; height: 240px; }
.c4 { width: 60px; height: 360px; }
.c5 { width: 60px; height: 420px; }

.c6 {
    width: 900px;
    height: 60px;
    display: flex;
    gap: 4px;
    margin-left: 137px;
}

/* Box */
.box {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: var(--text-color);
    border: 1px solid #000;
    border-radius: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    animation: hoverBounce 0.6s ease forwards, glowPulse 1.2s infinite alternate;
    z-index: 2;
}

/* Animations */
@keyframes hoverBounce {
    0%   { transform: translateY(0) scale(1); }
    25%  { transform: translateY(-10px) scale(1.05); }
    50%  { transform: translateY(0) scale(1.1); }
    75%  { transform: translateY(-5px) scale(1.08); }
    100% { transform: translateY(0) scale(1.1); }
}

@keyframes glowPulse {
    0%   { box-shadow: 0 0 0 rgba(255,255,255,0.3); }
    50%  { box-shadow: 0 0 15px rgba(255,255,255,0.7); }
    100% { box-shadow: 0 0 0 rgba(255,255,255,0.3); }
}

/* Box text */
.name {
    font-size: 2.3rem;
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
}

.tl {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.55vw;
}

.tr {
    display: none;
    position: absolute;
    top: 5px;
    right: 7px;
    font-size: 0.55vw;
}

.fn {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6vw;
}

.box:hover .tl,
.box:hover .tr {
    display: block;
    scale: 1.3;
}

.box:hover .fn {
    scale: 1.12;
}

/* Legend */
.legend {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.help {
    position: relative;
    color: #fff;
    margin-inline: 20px;
    margin-top: 7px;
    cursor: pointer;
    font-size: 1.4rem;
}

.help::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--clr-help);
    position: absolute;
    top: 50%;
    left: 107%;
    transform: translateY(-50%);
    border: 2px solid #fff;
}

/* Highlight */
.box.highlighted {
    outline: 3px solid #fff;
    outline-offset: -2px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 rgba(255,255,255,0.7); }
    50% { box-shadow: 0 0 15px rgba(255,255,255,1); }
    100% { box-shadow: 0 0 0 rgba(255,255,255,0.7); }
}
