/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Computer, 'VT323', monospace;
    color: #000;
    background: #000 url('../images/background.jpg') fixed center/cover;
    height: 100vh;
    overflow-x: hidden;
    font-size: 32px;
    --scale-factor: 2;
    --text-scale-factor: 1;
}

.outer-wrapper {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

.container {
    width: 100%;
    position: relative;
}

.grid-container {
    width: calc(var(--scale-factor) * 375px);
    height: auto;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    max-width: 100vw;
    box-sizing: border-box;
}

/* Font Declaration */
@font-face {
    font-family: Computer;
    src: local('VT323'), local('VT323-Regular');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}


.bottom-back-arrow {
    z-index: 18;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-arrow a,
.bottom-back-arrow a {
    width: 100%;
    height: 100%;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.back-arrow-shape {
    width: clamp(40px, 6vw, 70px);
    height: clamp(40px, 6vw, 70px);
    aspect-ratio: 1 / 1;
    position: relative;
    margin: calc(var(--scale-factor) * 10px);
}

.back-arrow-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 121, 205, 1);
    background-origin: padding-box;
    clip-path: url(#clipPath-arrow);
}

.back-text, .bottom-back-text {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    text-decoration: none;
    width: 40%;
}

.back-text-content {
    width: 100%;
    text-align: left;
}

.back-text-content p {
    font-size: clamp(32px, 6vw, 48px);
    width: 100%;
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
}

.back-text a,
.bottom-back-text a,
.back-text a:visited,
.back-text a:active,
.back-text a:focus,
.bottom-back-text a:visited,
.bottom-back-text a:active,
.bottom-back-text a:focus,
.back-text a p,
.bottom-back-text a p {
    text-decoration: none !important;
    outline: none;
    box-shadow: none;
}

.back-text p,
.bottom-back-text p {
    letter-spacing: inherit;
    line-height: 1.2em;
    margin: 0;
    margin-left: 10px;
}

.back-row, .bottom-back-row {
    display: flex;
    padding: 10px;
    align-items: center;
}

.back-arrow, .back-text, .bottom-back-arrow, .bottom-back-text {
    margin-left: 0;
    align-self: center;
}

/* Navigation Layout */
.back-nav,
.bottom-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: calc(var(--scale-factor, 2) * 375px);
    margin: 0 auto;
    position: relative;
    gap: 20px;
}

.back-nav {
    margin-bottom: 20px;
}

.bottom-nav {
    margin: 20px auto 0 auto;
}

.back-nav .back-arrow,
.bottom-nav .bottom-back-arrow {
    grid-row: 1;
    grid-column: 1 / 2;
}

.back-nav .back-text,
.bottom-nav .bottom-back-text {
    grid-row: 1;
    grid-column: 2 / 4;
}


/* Responsive Media Queries */
@media (max-width: 768px) {
    body {
        --text-scale-factor: 1.5;
        --scale-factor: 1;
    }
    
    .grid-container {
        width: 100vw;
        max-width: 100vw;
        grid-template-rows: repeat(16, auto);
    }
    
    .back-nav, .bottom-nav {
        width: 100vw;
        max-width: 100vw;
        padding: 0 10px;
        gap: 10px;
    }
    
    .back-arrow, .bottom-back-arrow {
        padding: calc(var(--scale-factor) * 8px);
    }
}

@media (max-width: 480px) {
    body {
        --text-scale-factor: 1;
        --scale-factor: 0.8;
    }
    
    .grid-container {
        width: 100vw;
        max-width: 100vw;
        grid-template-rows: repeat(16, auto);
    }

}

a, a:link, a:visited, a:active, a:focus {
    color: #000;
    text-decoration: none;
}
a:hover {
    color: #000;
    text-decoration: none;
}