.chessboard {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    rotate: 15deg;
}

.smiley {
    font-family: InterSamiBold, sans-serif !important;
    color: #6f6f6f;
    text-align: center;
    padding: 0.7rem;
    border-radius: 3px;
}

.blinking-smiley::before {
    content: "о_О";
    animation: blink 4s infinite;
}

.static-smiley::before { content: "о_О"; }

@keyframes blink {
    0%, 20% { content: "О_о"; }
    25%, 45% { content: "о_О"; }
    50%, 70% { content: "О_о"; }
    75%, 95% { content: "о_О"; }
    5%, 30%, 55%, 80% { content: "-_-"; }
    100% { content: "О_о"; }
}

.education {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.education .viewport {
    position: absolute;
    border-radius: 10px;
    background: transparent;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.8);
    transition: all 0.5s ease-out;
    z-index: 1;
}

.education .mouse {
    position: absolute;
    width: 20px;
    height: 20px;
    background-size: cover;
    background-image: url("/img/mouse.svg");
    z-index: 2;
    transition: all 0.5s ease-out;
    pointer-events: none;
}

.education .description {
    position: fixed;
    z-index: 3;
    background: var(--color-block-baground);
    padding: 12px;
    border-radius: 8px;
    max-width: 300px;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.4;
}

.education .mouse {
    position: absolute;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("/img/mouse.svg");
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    transform-origin: center;
}

.app {
    width: 90%;
    z-index: 1;
    margin: auto;
    max-width: 80rem;
    min-height: 100vh;
    position: relative;
    animation: scaleUp 1s ease-out;
    animation-fill-mode: forwards;
}

.app .block:hover {
    transform: scale(1.03);
}

.app .block {
    padding: 4%;
    display: grid;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    color: var(--color-paragraphs);
    box-shadow: var(--color-block-shadow);
    background-color: var(--color-block-baground);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app .block .block-bg-pattern-0_0 {
    z-index: 0;
    margin-left: 49%;
    margin-top: -43%;
    position: absolute;
    background-repeat: no-repeat;
    background-position: top right;
}

.app .block .block-bg-pattern-square {
    z-index: 0;
    width: 456px;
    height: 296px;
    margin-left: 28%;
    margin-top: -37%;
    position: absolute;
    transform: rotate(151.34rad);
    background-repeat: no-repeat;
    background-position: top right;
    background-image: url(/img/patern-square.svg);
}

.app .block .pre-header {
    gap: 0.7rem;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.app .block .pre-header .icon {
    z-index: 2 !important;
    width: 20px !important;
    height: 12px !important;
    min-width: 20px !important;
    min-height: 12px !important;
    background-size: cover !important;
    background-image: url("/img/icons/pre-header.svg") !important;
}

.app .block .pre-header .text {
    font-size: 80%;
    color: var(--color-pre-headers);
    font-family: InterRegular, sans-serif !important;
}

.app .block .header {
    display: flex;
    margin-bottom: 1rem;
    color: var(--color-headers);
    font-family: InterSamiBold, sans-serif !important;
}

.app .block .paragraph {
    font-size: 95%;
}

.app .buttons {
    gap: 1rem;
    align-self: end !important;
    margin-bottom: 0 !important;
}

.app .tags,
.app .buttons {
    z-index: 1;
    display: flex;
    align-self: start;
    position: relative;
    flex-flow: row wrap;
    margin-bottom: 1rem;
}

.app .tags .tag,
.app .tags .button,
.app .buttons .tag,
.app .buttons .button {
    gap: 0.5rem;
    padding: 2%;
    display: flex;
    flex: 1 0 auto;
    font-size: 74%;
    align-items: center;
    border-radius: 12px;
    margin: 1.5% 3% 1.5% 0;
    max-width: max-content;
    justify-content: center;
    background-color: #171717;
    box-shadow: var(--color-block-shadow);
}

.app .tags .tag .name,
.app .tags .button .name,
.app .buttons .tag .name,
.app .buttons .button .name {
    top: 0.05em;
    position: relative;
}

.app .tags .tag .icon,
.app .tags .button .icon,
.app .buttons .tag .icon,
.app .buttons .button .icon {
    width: var(--icon-width);
    height: var(--icon-height);
    background-size: cover;
    filter: brightness(0) saturate(100%) invert(94%) sepia(0%) saturate(207%) hue-rotate(166deg) brightness(95%) contrast(86%);
}

.app .tags .button,
.app .buttons .button {
    cursor: pointer;
}

.app .content {
    gap: 2rem;
    height: 85%;
    display: grid;
    padding: 3% 0;
    justify-content: space-between;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transition: margin-top 0.3s ease, margin-bottom 0.3s ease;
}

.app .content .left {
    gap: 2rem;
    display: grid;
}

.app .content .left .block {
    grid-column: span 3 / span 3;
}

.app .content .left .top {
    width: 100%;
    display: flex;
    grid-column: span 3 / span 3;
    justify-content: space-between;
}

.app .content .left .top .block {
    display: grid;
    max-width: 21.5%;
}

.app .content .left .top .paragraph {
    font-size: 88%;
    height: fit-content;
}

.app .content .left .middle .header {
    gap: 0.5rem;
    font-size: 130%;
    width: fit-content;
}

.app .content .left .middle .rgb {
    --bg-size: 400%;
    color: transparent;
    animation: move 8s linear infinite;
    background: linear-gradient(90deg, var(--color-rgb-one), var(--color-rgb-two), var(--color-rgb-one)) 0 0/var(--bg-size) 100%;
    -webkit-background-clip: text;
    background-clip: text;
}

.app .content .left .middle .button {
    margin: 1.5% 0 0 0;
}

.app .content .left .bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app .content .left .bottom .left {
    width: 36%;
    display: unset;
}

.app .content .left .bottom .left .header {
    line-height: 2;
    margin-bottom: 0;
}

.app .content .left .bottom .right {
    gap: 1rem;
    display: flex;
}

.app .content .left .bottom .right .block {
    width: 5rem;
    display: grid;
    text-align: center;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.app .content .right {
    gap: 2rem;
    display: grid;
}

.app .content .right .top .block {
    width: 55%;
    padding: 2.5%;
    cursor: pointer;
}

.app .content .right .top .block .head {
    gap: 0.7rem;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.app .content .right .top .block .head .icon {
    width: var(--icon-width);
    height: var(--icon-height);
    background-size: cover;
}

.app .content .right .top .block .head .name {
    font-size: 85%;
    line-height: 0;
}

.app .content .right .top .block .text {
    font-size: 80%;
}

.app .content .right .bottom .container:nth-child(5) .tags {
    margin-bottom: 0;
}

.app .projects {
    display: block;
}

.app .projects .top:hover {
    transform: scale(1.03) translateX(1%);
}

.app .projects .top {
    gap: 0.5rem;
    display: flex;
    padding: 1.5rem 0;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app .projects .top .icon {
    width: 2.5vh;
    height: 2.5vh;
    background-size: cover;
}

.app .projects .block {
    padding: 2%;
}

.app .projects .block .top:hover {
    transform: unset !important;
}

.app .projects .block .top {
    padding: unset;
    /* margin-bottom: 1rem; */
    transform: unset !important;
    justify-content: space-between;
}

.app .projects .block .top .left {
    gap: unset;
}

.app .projects .filter-bar {
    gap: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    margin: 0.2rem 0 1rem;
}

.app .projects .filter-button {
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-family: InterSamiBold, sans-serif !important;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--color-block-shadow);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app .projects .filter-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

.app .projects .filter-button.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.app .projects .block .top .right {
    font-size: 160%;
    text-align: end;
}

.app .projects .block .bottom .grid {
    gap: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.app .projects .block .bottom .grid .block {
    padding: 4%;
}

.app .projects .block .bottom .grid .block .tags {
    margin-bottom: 1rem;
}

.app .projects .block .bottom .grid .block .header {
    font-size: 130%;
}

.app .projects .block .bottom .grid .block .paragraph {
    font-size: 95%;
}

.app .projects .block .bottom .grid .block .category-pill {
    width: fit-content;
    margin-bottom: 0.75rem;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    font-size: 80%;
    letter-spacing: 0.2px;
    color: var(--color-headers);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--color-block-shadow);
}

.app .projects .block .bottom .grid .block .params {
    font-size: 95%;
    margin-bottom: 1rem;
    color: var(--color-pre-headers);
    font-family: InterRegular, sans-serif !important;
}

.app .footer {
    color: var(--color-footer);
    animation-fill-mode: forwards;
    animation: scaleUp 1s ease-out;
}

.app .footer .line {
    width: 100%;
    height: 2px;
    margin: 0 0 2% 0;
    background-color: var(--color-footer);
}

.app .footer .copyright {
    font-size: 83%;
    padding-bottom: 2%;
    font-family: RelewaySamiBold, sans-serif !important;
}

/* More than normal */
/* More than normal */
/* Normal */
@media screen and (max-width: 1300px) {
    .app {
        width: 80%;
        margin: auto;
    }
    .app .content .buttons {
        margin-top: 1.2rem;
    }
    .app .content .buttons .button {
        padding: 2.8% !important;
    }
    .app .content .block .pre-header {
        line-height: 0;
        margin-bottom: 0.5rem;
    }
    .app .content .block .pre-header .icon {
        width: 16px;
        height: 8px;
        min-width: 16px;
        min-height: 9px;
    }
    .app .content .block .header {
        margin-bottom: 0.5rem;
    }
    .app .content .left .top .block .pre-header .text {
        z-index: 1;
        display: flex;
        position: relative;
        visibility: hidden;
        align-items: center;
        justify-content: start;
    }
    .app .content .left .top .block .pre-header .text:after {
        left: 0;
        position: absolute;
        visibility: visible;
    }
    .app .content .left .top .block:nth-of-type(1) .text:after {
        content: "func w() {";
    }
    .app .content .left .top .block:nth-of-type(2) .text:after {
        content: "func y() {";
    }
    .app .content .left .top .block:nth-of-type(3) .text:after {
        content: "func s() {";
    }
    .app .content .left .middle .paragraph {
        font-size: 88%;
    }
    .app .content .left .bottom .left .header {
        font-size: 85%;
        line-height: unset;
    }
    .app .content .left .bottom .left .pre-header {
        gap: 0.5rem;
    }
    .app .content .left .bottom .left .pre-header .text {
        z-index: 1;
        display: flex;
        position: relative;
        visibility: hidden;
        align-items: center;
        justify-content: start;
    }
    .app .content .left .bottom .left .pre-header .text:after {
        position: absolute;
        visibility: visible;
    }
    .app .content .left .bottom .left:nth-of-type(1) .text:after {
        content: "func __after() {";
    }
    .app .content .block-bg-pattern-0_0 {
        margin-left: 48% !important;
        margin-top: -55% !important;
    }
    .app .content .block-bg-pattern-square {
        margin-left: 17% !important;
        margin-top: -55% !important;
    }
    .app .projects .block .top .left {
        gap: 1rem;
    }
    .app .projects .block .top .right {
        font-size: 150%;
    }
    .app .projects .block .bottom .grid .block .header {
        font-size: 120%;
    }
    .app .projects .block .bottom .grid .block .params {
        font-size: 85%;
    }
    .app .projects .block .bottom .grid .block .paragraph {
        font-size: 90%;
    }
}

/* Small than normal */
@media screen and (max-width: 1100px) {
    .app {
        width: 90%;
    }
}

/* More small than normal */
@media screen and (max-width: 999px) {
    .app .content {
        width: 60vw;
        margin: auto;
        height: auto;
        display: block;
    }
    .app .content .left .bottom .left:nth-of-type(1) .text:after {
        content: "func __afterMyWork() {";
    }
    .app .content .block .header {
        margin: 2% 0 4%;
    }
    .app .content .left .bottom {
        margin-bottom: 2rem;
    }
    .app .content .right {
        margin-bottom: 0.1rem;
        grid-template-rows: unset;
    }
    .app .projects {
        width: 90vw !important;
    }
    .app .projects .block {
        padding: 1.2rem;
    }
}

/* Smallest */
@media screen and (max-width: 800px) {
    .app .content .block:hover {
        transform: unset;
    }
    .app .content .left .bottom {
        display: block;
    }
    .app .content .left .bottom .right {
        gap: unset;
        height: 5rem;
        margin: 1rem auto auto;
        justify-content: space-between;
    }
    .app .content .left .bottom .right .block {
        width: unset;
        aspect-ratio: 1 / 0.65;
    }
}

/* More smallest */
@media screen and (max-width: 710px) {
    .app .content {
        width: 75vw;
    }
    .app .projects .block .top .right {
        font-size: 150%;
    }
    .app .projects .block .bottom .grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .app .projects .block .bottom .grid .block .header {
        margin: 0 0 2%;
        font-size: 120%;
    }
    .app .projects .block .bottom .grid .block .tags {
        margin-bottom: 0.5rem;
    }
    .app .projects .block .bottom .grid .block .params {
        margin-bottom: 0.7rem;
    }
}

/* Absolute small */
@media screen and (max-width: 600px) {
    .app .content .left .top {
        gap: 1.5rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .app .content .left .top .block {
        padding: 8%;
        max-width: unset;
        grid-column: unset;
    }
    .app .content .left .top .block:nth-child(3) {
        padding: 4%;
        grid-column: span 2;
    }
    .app .content .left .top .block:nth-child(3) .header {
        margin: 0 0 2%;
    }
    .app .content .left .middle .buttons {
        width: unset;
        margin-top: 1rem;
    }
    .app .content .left .middle .buttons .button {
        margin: 1.5% 0 1.5% 0;
    }
    .app .content .right .top .block {
        width: unset;
        padding: 3.5%;
    }
    .app .projects .block .top .right {
        font-size: 130%;
    }
    .app .content .left .top .block:nth-of-type(3) .text {
        width: 100%;
    }
    .app .content .left .top .block:nth-of-type(3) .text:after {
        content: "func _getMyLearnedSkills() {";
    }
}

/* Mega Absolute small */
@media screen and (max-width: 520px) {
    .app .content .left .bottom .right .block {
        aspect-ratio: 1 / 0.8;
    }
    .app .projects .block .top .right {
        font-size: 130%;
    }
    .app .footer {
        width: 90%;
        margin: auto auto 3%;
    }
}

/* iPad Air */
/* iPad Mini */
/* iPad Pro */
@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (orientation: portrait) {
    .app .content {
        margin-top: 25%;
        margin-bottom: 25%;
        position: relative;
    }
    .app .projects {
        margin-top: unset;
        margin-bottom: unset;
    }
}

/* Phone */
@media screen and (max-width: 430px) {
    .app {
        width: unset;
    }
    .app .content {
        width: 90vw;
        padding: 6% 0;
    }
    .app .content .tags .tag, .app .content .tags .button,
    .app .content .buttons .tag,
    .app .content .buttons .button {
        font-size: 81%;
    }
    .app .content .left {
        display: block;
        margin-bottom: 1.5rem;
    }
    .app .content .left .top, .app .content .left .middle {
        margin-bottom: 1.5rem;
    }
    .app .content .right {
        gap: 1.5rem;
        grid-template-rows: unset;
        margin-bottom: unset;
    }
    .app .projects .block .top .left {
        margin-bottom: unset;
    }
    .app .projects .block .top .left .pre-header .text {
        z-index: 1;
        display: flex;
        position: relative;
        visibility: hidden;
    }
    .app .projects .block .top .left .pre-header .text:after {
        position: absolute;
        visibility: visible;
    }
    .app .projects .block .top .left:nth-of-type(1) .text:after {
        content: "func __getP() {";
    }
    .app .projects .block .top .right {
        font-size: 120%;
    }
}

/* Small phone */
@media screen and (max-width: 310px) {
    .app .content .left .bottom .right {
        height: 4rem;
    }
    .app .content .right .bottom .container:nth-child(4) .tag:last-child {
        max-width: 63%;
    }
    .app .content .right .bottom .container:nth-child(4) .tag:last-child .name {
        z-index: 1;
        display: flex;
        overflow: hidden;
        visibility: hidden;
        position: relative;
        white-space: nowrap;
        pointer-events: none;
    }
    .app .content .right .bottom .container:nth-child(4) .tag:last-child .name:after {
        position: absolute;
        visibility: visible;
        content: "VPS/VDS, Web Hosting";
    }
    .app .content .right .bottom .container:nth-child(4) .tag:last-child .icon {
        min-width: var(--icon-width);
        min-height: var(--icon-height);
    }
}

@keyframes move {
    to {
        background-position: var(--bg-size) 0;
    }
}

@keyframes scaleUp {
    0% {
        transform: scale(0.85);
    }
    100% {
        transform: scale(1);
    }
}
