@font-face {
    font-family: 'CustomFont';
    src: url('/assets/font/coldfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: "CustomFont", "Courier New", Courier, monospace;
    font-size: 14px;
    background: url('/assets/images/back.png') no-repeat center center;
    background-color: #101215 !important;
    background-size: cover;
    color: #c0c0c0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: url('/assets/images/back.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

.terminal-loader {
    border: 0.1em solid #444; 
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    color: #c0c0c0;
    font-family: "CustomFont", "Courier New", Courier, monospace;
    padding: 1.5em;
    width: 35em;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    position: relative;
    box-sizing: border-box;
    overflow: auto;
    margin: auto;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.terminal-header {
    position: relative;
    height: 2em;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1em;
    margin-bottom: 20px;
}

.terminal-controls {
    display: flex;
    gap: 0.5em;
}

.control {
    width: 0.8em;
    height: 0.8em;
    border-radius: 50%;
    background-color: #666;
}

.control.close {
    background-color: #ff5f56;
}

.control.minimize {
    background-color: #ffbd2e;
}

.control.maximize {
    background-color: #27c93f;
}

.terminal-title {
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
}

.text-origin {
    color: #c0c0c0;
    margin-top: 1em;
}

@keyframes blink {
    0%, 50% {
        visibility: visible;
    }
    51%, 100% {
        visibility: hidden;
    }
}

.links, .about-link {
    background: linear-gradient(270deg, #522258, #8C3061, #C63C51, #D95F59);
    background-size: 400% 400%;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientAnimation 4s ease infinite;
    text-decoration: none;
}

.links a:hover {
    color: #fff;
    text-decoration: underline;
}

.links, .about-link {
    margin-top: 20px;
    color: #ccc;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (min-width: 768px) {
    .terminal-loader {
        width: 390px;
        padding: 2em;
    }
    .cmd {
        font-size: 14px;
        display: inline;
    }
}

@media (max-width: 768px) {
    .terminal-loader {
        width: 95%;
        padding: 1.5em;
    }
}

@media (max-width: 480px) {
    .terminal-loader {
        width: 95%;
        padding: 1em;
        font-size: 0.85em;
    }
}

.text-origin {
    background: linear-gradient(270deg, #494949, #7700ff, #686868, #ff4c43, #494949);
    background-size: 400% 400%;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientAnimation 2s ease infinite;
    font-size: 14px;
    white-space: nowrap;
}

.cursor {
    display: inline-block;
    animation: blink 0.75s step-end infinite;
    color: #c0c0c0;
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(16, 18, 21, 0.95);
    padding: 15px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.5);
    color: #c0c0c0;
    z-index: 10;
}

.footer-text {
    background: linear-gradient(270deg, #522258, #8C3061, #C63C51, #D95F59);
    background-size: 400% 400%;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientAnimation 3s ease infinite;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    margin: 0;
}

footer i {
    margin: 0 5px;
    color: #D95F59;
}

.blur-text {
    filter: blur(4px);
    color: rgba(255, 255, 255, 0.7);
    transition: filter 0.3s ease;
}

.blur-text:hover {
    filter: none;
}

.centered-list {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    text-align: center;
}

h2 {
    text-align: center;
}

a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

a:active {
    color: red;
}

.footer-icon {
    width: 44px;
    height: 44px;
}

/* Fade transition */
body {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

body.fade-out {
    opacity: 0;
}