.title {
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-weight: 700;
    font-size: max(13vw, 60px);
    text-align: center;
    width: 90%;
    height: fit-content;
    position: relative;
    left: 5%;
    cursor: pointer;
    transition: transform 0.2s;

    background-color: var(--blue);
    background-image: linear-gradient(to bottom, #fff, var(--white));
    background-size: 45%;
    background-repeat: repeat;
    background-position: center;
    letter-spacing: -2px;
    
    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
}

.title-blue {
    background-image: linear-gradient(to right, #008cff, #65c1eb);
    left: 0;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--blue);

    background-clip: unset;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
}

.text-box {
    color: white;
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
    padding: 10px;
    font-weight: 400;
    font-size: 17px;
    position: relative;
    width: 60%;
    left: calc(50% - 30% - 11px);
    top: calc(10% + 20px);
    height: fit-content;
    border-radius: 10px;
    border: 1px solid var(--light-grey);
}

.back-text {
    text-align: center;
    width: 120px;
    height: 24px;
    padding: 5px;
    position: relative;
    left: calc(50% - 60px - 6px);
    font-size: 14px;
    border-radius: 10px;
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
    color: var(--light-grey);
    cursor: pointer;
    transition: all 0.1s;
    top: -1.5vw;
    display: block;
    margin-bottom: 20px;
    background-color: var(--darkest-grey);
    line-height: 24px;
    text-decoration: none;
    box-shadow: 0 0 15px var(--blue);
}

    .back-text:hover {
        color: var(--white);
        transform: translateY(0px);
    }

.back-text-border {
    position: relative;
    display: block;
    border-radius: 10px;
    width: 134px;
    height: 38px;
    top: -31px;
    left: -7px;
    background: linear-gradient(var(--angle), #008cff 10%, #75e7e7 90%);
    --angle: 0deg;
    z-index: -1;

    animation: 2s border-gradient linear infinite;
    animation-play-state: paused;
}

    .back-text:hover .back-text-border {
        animation-play-state: running;
    }

.divider {
    width: 100%; 
    height: 18px;
    background-image: url("../files/Images/Triangle.svg");
    background-repeat: repeat-x;
    background-size: 80px 20px;
    background-position: 0 -2px;
    background-color: white;
    position: relative;
    animation: moving-divider infinite linear 3s, floating-divider infinite ease-in-out 2s;
    transform: translateY(-1px);
}

.section-container {
    width: 100%;
    height: fit-content;
    background-color: black;
    position: relative;
    left: 0;
    top: 0;
}

/* #region Coding Section */
.description {
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-weight: 300;
    font-size: calc(10px + 2vw);
    text-align: center;
    width: 90%;
    height: fit-content;
    left: 5%;
    transition: all 0.4s;
    text-shadow: none;
    position: relative;
}

.subtitle {
    position: relative; 
    top: 15px; 
    font-family: 'Jacquard 24'; 
    background: transparent; 
    color: var(--blue);
    font-size: calc(90px + 10vw);
    width: fit-content;
    margin: auto;
    left: 0;
    cursor: default;
    text-shadow: 5px 5px black;
    user-select: none;
    animation: floating 3s ease-in-out infinite;
}

.icon {
    position: absolute;
    width: calc(5vw + 20px);
    height: calc(5vw + 20px);
    padding: 1vw;
    left: calc(-5vw + 10px);
    top: -3vw;
    transition: all 0.2s;
    box-shadow: 0 0 2vw rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transform: translateZ(calc(10vw + 30px));
    animation: carousel-animation 5s ease-in-out infinite;
}

    .icon:hover {
        width: calc(5vw + 40px);
        height: calc(5vw + 40px);
        margin: -10px;
    }

.icon:nth-child(1) { rotate: y   0deg }
.icon:nth-child(2) { rotate: y  45deg }
.icon:nth-child(3) { rotate: y  90deg }
.icon:nth-child(4) { rotate: y 135deg }
.icon:nth-child(5) { rotate: y 180deg }
.icon:nth-child(6) { rotate: y 225deg }
.icon:nth-child(7) { rotate: y 270deg }
.icon:nth-child(8) { rotate: y 315deg }

.icon-grid {
    width: 0;
    height: 0;
    top: calc(4.2vw + 15px);
    left: 25%;
    position: absolute;
    perspective: 1000px;
}

.carousel {
    width: 0;
    height: 0;
    position: absolute;
    transform-style: preserve-3d;
}

.two-panel {
    width: 80%;
    height: 200px;
    top: 40px;
    left: 10%;
    position: relative;
    padding-bottom: 100px;
}

.side-description {
    width: calc(50% - 40px);
    height: calc(100% - 40px);
    left: 50%;
    position: absolute;
    padding: 20px;
    font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-weight: 700;
    font-size: calc(10px + 0.8vw);
    margin: auto;
    text-indent: 50px;
    color: #9e9e9e;
}

.image-banner {
    width: 100%;
    height: calc(100px + 0.2vw);
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 20px gray;
    top: 0;
    left: 0;
    position: relative;
    margin-bottom: 4vw;
    animation: background-offset 5s infinite linear;
}

@media (max-width: 700px) {
    .icon {
        width: calc(12vw + 20px);
        height: calc(12vw + 20px);
        left: calc(-6vw - 10px);
        transform: translateZ(calc(25vw + 30px)) !important;
    }

    .icon-grid {
        left: 50%;
        top: 4.2vw;
    }

    .side-description {
        width: calc(100% - 20px);
        left: 0;
        top: calc(70px + 15vw);
        padding: 10px;
        text-align: center;
        text-indent: 0;
    }

    .image-banner {
        margin-bottom: 0;
    }

    .two-panel {
        padding-bottom: 120px;
    }
}
/* #endregion */

/* #region Pixelart Section */
.subtitle.pixel-art {
    --angle: 0deg;
    font-family: 'Pixelify Sans', sans-serif; 
    font-size: calc(30px + 10vw); 
    color: var(--red);
    animation: angle-rotation 5s linear infinite;
    padding-bottom: 20px;
    font-weight: 600;
    text-shadow: calc(sin(var(--angle)) * 4px) 3px #ec526c,
        calc(sin(var(--angle) + 0.07turn) * 8px) 6px #d4396d,
        calc(sin(var(--angle) + 0.14turn) * 12px) 9px #c92979,
        calc(sin(var(--angle) + 0.21turn) * 16px) 12px #a01872;
}

@media (max-width: 500px) {
    .pixelart-image-grid {
        grid-template-columns: repeat(2, calc(40vw - 15px)) !important;
    }
}

@media (min-width: 900px) {
    .pixelart-image-grid {
        grid-template-columns: repeat(5, calc(16vw - 16px)) !important;
    }
}

@media (min-width: 1300px) {
    .pixelart-image-grid {
        grid-template-columns: repeat(7, calc(80vw / 7 - 120px / 7)) !important;
    }
}

.pixelart-image-grid {
    display: grid;
    grid-template-columns: repeat(4, calc(20vw - 15px));
    column-gap: 20px;
    row-gap: 20px;
    margin: 0 10%;
    width: 80%;
    padding-bottom: 40px;
}

.pixelart-caption {
    width: calc(100% - 30px);
    height: fit-content;
    color: grey;
    font-family: 'Pixelify Sans', sans-serif;
    font-size: calc(1vw + 10px);
    border: 1px solid black;
    padding: 15px;
    border-radius: 15px 15px 10px 15px;
    background-color: rgb(235, 235, 235);
    box-shadow: 0 5px 0 black;
    text-align: center;
    animation: angle-rotation 3s linear infinite;
}

.pixelart-caption:nth-child(1) { transform: translateY(calc(sin(var(--angle)) * 15px)); }
.pixelart-caption:nth-child(2) { transform: translateY(calc(sin(var(--angle) + 0.1turn) * 15px)); }
.pixelart-caption:nth-child(3) { transform: translateY(calc(sin(var(--angle) + 0.2turn) * 15px)); }
.pixelart-caption:nth-child(4) { transform: translateY(calc(sin(var(--angle) + 0.3turn) * 15px)); }
.pixelart-caption:nth-child(5) { transform: translateY(calc(sin(var(--angle) + 0.4turn) * 15px)); }
.pixelart-caption:nth-child(6) { transform: translateY(calc(sin(var(--angle) + 0.5turn) * 15px)); }
.pixelart-caption:nth-child(7) { transform: translateY(calc(sin(var(--angle) + 0.6turn) * 15px)); }

.pixelart-text {
    height: calc(2vw + 20px + 1vw);
    line-height: calc(10px + 1vw);
    overflow: hidden;
    vertical-align: middle;
    text-align: center;
    display: table-cell;
    width: 10%;
    text-shadow: 0 2px #c0c0c0;
    font-variant: small-caps;
}

.pixelart-image {
    width: calc(100% + 20px);
    left: -10px;
    position: relative;
    image-rendering: pixelated;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    margin-top: -10px;
    border-radius: 15px;
    transition: all 0.15s linear;
}

    .pixelart-image:hover {
        cursor: pointer;
        scale: 1.05;
    }

.pixelart-subtitle {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: calc(8px + 2vw);
    color: gray;
    font-weight: 400;
    width: 100%;
    text-align: center;
    margin-top: -2vw;
    text-shadow: 0 2px #c0c0c0;
    font-variant: small-caps;
}

.pixelart-link {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: calc(4px + 1vw);
    color: rgb(32, 154, 255);
    font-weight: 700;
    width: 100%;
    text-align: center;
    margin-bottom: calc(2vw + 10px);
    display: block;
}
/* #endregion */

/* #region Music Section */
.subtitle.music {
    font-family: 'Playwrite VN', cursive; 
    font-size: calc(20px + 5vw); 
    color: black;
    animation: music-title 3s ease-in-out infinite;
    padding-bottom: 20px;
    font-weight: 200;
    text-shadow: 10px 6px rgba(0, 0, 0, 0.3),
        5px 3px rgba(0, 0, 0, 0.5);
    transform: skewY(10deg);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.music-staff-container {
    position: absolute;
    width: 200px;
    
}
/* #endregion */

/* #region Animations */
@keyframes music-title {
    0% {
        transform: skewY(10deg);
    }
    50% {
        transform: skewY(10deg) scaleX(1.1);
    }
    100% {
        transform: skewY(10deg);
    }
}

@keyframes title-click {
    0% {
        transform: rotate(-4deg);
        scale: 110%;
    }
    50% {
        top: 8%;
        scale: 130%;
    }
    100% {
        scale: 100%;
        transform: rotate(360deg);
    }
}

@keyframes moving-divider {
    0% {
        background-position: 0 -2px;
    }
    100% {
        background-position: 80px -2px;
    }
}

@keyframes floating-divider {
    0% {
        transform: translateY(-1px);
    }
    50% {
        transform: translateY(-1px);
    }
    100% {
        transform: translateY(-1px);
    }
}

@keyframes floating {
    0% {
        transform: translateY(-8px) perspective(200px) rotateX(10deg);
        text-shadow: 5px 21px black;
    }
    50% {
        transform: translateY(8px) perspective(200px) rotateX(10deg);
        text-shadow: 5px 5px black;
    }
    100% {
        transform: translateY(-8px) perspective(200px) rotateX(10deg);
        text-shadow: 5px 21px black;
    }
}

@keyframes angle-rotation {
    0% {
        --angle: 0deg;
    }
    100% {
        --angle: 360deg;
    }
}

@keyframes background-offset {
    0% {
        object-position: 0 0;
    }
    100% {
        object-position: 0 100%;
    }
}

@keyframes border-gradient {
    to {
        --angle: 360deg;
    }
}

@keyframes carousel-animation {
    0% {
        transform: translateZ(calc(10vw + 40px));
    }
    50% {
        transform: translateZ(calc(10vw + 30px));
    }
    100% {
        transform: translateZ(calc(10vw + 40px));
    }
}
/* #endregion */

/* #region Properties */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-offset {
    syntax: '<percentage>';
    initial-value: 0%;
    inherits: false;
}

@property --columns {
    syntax: '<number>';
    initial-value: 0;
    inherits: false;
}
/* #endregion */