@font-face {
    font-family: 'Thaleah';
    src: url('../fonts/ThaleahFat.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #4c3c63;
    color: #866399;
    font-family: 'Thaleah', monospace;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: all 0.5s ease-in-out;
}

.cool-mode {
    background-color: #000;
    color: #00ff00;
}

.cool-mode #star-field {
    display: none;
}

.cool-mode .site-title,
.cool-mode .social-links a,
.cool-mode .webring a,
.cool-mode .terminal,
.cool-mode #terminal-input,
.cool-mode .terminal .output p,
.cool-mode .flavor-text,
.cool-mode .info-links a,
.cool-mode .friend-card {
    color: #00ff00 !important;
    text-shadow: 2px 2px #006400 !important;
    border-color: #006400 !important;
}

.cool-mode .info-links {
    background-color: #000 !important;
    border-color: #006400 !important;
    box-shadow: 4px 4px #003300 !important;
}

.cool-mode #terminal-input::placeholder {
    color: #00ff00 !important;
    opacity: 0.6 !important;
}

.cool-mode h2,
.cool-mode .text-block h2 {
    color: #00ff00 !important;
    text-shadow: 2px 2px #006400 !important;
    border-color: #006400 !important;
}

.cool-mode .divider {
    background-color: #006400 !important;
}

.cool-mode .terminal {
    background-color: black !important;
    box-shadow: 4px 4px #003300 !important;
}

#matrix-canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in;
}

.cool-mode #matrix-canvas {
    opacity: 1;
}

.main-content {
    background-color: transparent;
    width: 90vw;
    padding: 20px;
    z-index: 2;
    position: relative;
    box-sizing: border-box;
}

.divider {
    width: 100%;
    height: 2px;
    background-color: #866399;
    margin-top: 20px;
    margin-bottom: 20px;
}

.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.site-title {
    font-family: 'Thaleah', monospace;
    font-size: clamp(3rem, 10vw, 8rem);
    color: #b898cd;
    margin: 0;
    text-shadow: 6px 6px 0 #866399,
                 10px 10px 0 #654f7f,
                 14px 14px 0 #4c3c63;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    margin-bottom: -20px; 
}

.flavor-text {
    font-family: 'Thaleah', monospace;
    font-size: clamp(1rem, 3vw, 2.5rem);
    color: #f1c40f;
    text-shadow: 2px 2px 0 #866399;
    margin: 0;
    text-align: center;
    animation: bounce 2s ease-in-out infinite alternate;
}

#konami-message {
    font-family: 'Thaleah', monospace;
    color: #00ff00;
    text-shadow: 2px 2px 0 #006400;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
    border: 2px solid #006400;
    box-shadow: 4px 4px #003300;
    background-color: black;
    border-radius: 5px;
}

.konami-title {
    font-size: clamp(1.5rem, 5vw, 4rem);
    margin: 0;
}

.konami-subtitle {
    font-size: clamp(0.7rem, 2vw, 1.5rem);
    margin: 0;
}

.hidden-message {
    display: none;
}


@keyframes bounce {
    0% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

.social-links {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
}

.social-links a {
    color: #b898cd;
    text-decoration: none;
    margin: 0 20px;
    font-size: clamp(1rem, 3vw, 1.5rem);
    transition: color 0.2s ease-in-out;
    text-shadow: 2px 2px #4c3c63;
}

.social-links a:hover {
    color: #866399;
}

.info-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
    border: 2px solid #866399;
    box-shadow: 4px 4px #4c3c63;
    background-color: #3b2f4c;
    border-radius: 5px;
    text-align: center;
    width: fit-content;
    margin: 20px auto;
    box-sizing: border-box;
}

.info-links a {
    color: #b898cd;
    text-decoration: none;
    font-size: clamp(1rem, 3vw, 1.5rem);
    transition: color 0.2s ease-in-out;
    text-shadow: 2px 2px #4c3c63;
}

.info-links a:hover {
    color: #866399;
}


.terminal-container {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

.terminal {
    background-color: black;
    border: 2px solid #866399;
    box-shadow: 4px 4px #4c3c63;
    color: #866399;
    padding: 10px;
    font-family: 'Thaleah', monospace;
    width: 100%;
    box-sizing: border-box;
    min-height: 60px;
    height: auto;
    overflow-y: hidden;
    resize: none;
    border-radius: 5px;
}

#terminal-input::placeholder {
    color: #866399;
    opacity: 0.6;
}

.terminal .output {
    min-height: 0;
    max-height: 300px;
    overflow-y: auto;
}

.terminal .output p {
    margin: 0 0 5px 0;
}

.terminal .input-line {
    display: flex;
    align-items: baseline;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

#terminal-input {
    background: none;
    font-family: 'Thaleah', monospace;
    border: none;
    color: #866399;
    width: 100%;
    outline: none;
    font-size: 1em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

#star-field {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 1px;
    height: 1px;
    background-color: transparent;
    box-shadow: 0 0 0 1px #fff;
    border-radius: 0;
    filter: drop-shadow(0 0 1px #fff);
    opacity: 0;
    pointer-events: none;
    animation: twinkle 3s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.webring {
    text-align: center;
    margin-top: 0;
    width: 100%;
}

.webring a {
    color: #866399;
    text-decoration: none;
    margin: 0 15px;
    font-size: clamp(1rem, 3vw, 1.5rem);
    transition: color 0.2s ease-in-out;
    text-shadow: 2px 2px #4c3c63;
}

.webring a:hover {
    color: #b898cd;
}

.content-section {
    margin-top: 40px;
    text-align: center;
}

.content-section .section-title {
    font-family: 'Thaleah', monospace;
    font-size: clamp(2rem, 8vw, 6rem);
    color: #b898cd;
    text-shadow: 3px 3px 0 #866399,
                 6px 6px 0 #654f7f,
                 9px 9px 0 #4c3c63;
    margin: 20px 0;
}


.fursona-content .main-image-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    display: inline-block;
}

.fursona-content .main-fursona-image {
    max-width: clamp(300px, 70vw, 700px);
    width: 100%;
    height: auto;
    border: 2px solid #866399;
    box-shadow: 4px 4px #4c3c63;
    border-radius: 5px;
    flex-shrink: 0;
}

.fursona-content .gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.fursona-content .gallery-thumbnails img {
    max-width: clamp(80px, 15vw, 150px);
    height: auto;
    cursor: pointer;
    border: 2px solid #866399;
    box-shadow: 2px 2px #4c3c63;
    border-radius: 3px;
    transition: transform 0.2s ease-in-out;
    flex-shrink: 0;
}

.fursona-content .gallery-thumbnails img:hover {
    transform: scale(1.05);
}

.image-container::after {
    content: attr(data-artist);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    border: 1px solid #866399;
    padding: 5px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 10;
}

.image-container:hover::after {
    opacity: 1;
    visibility: visible;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border: 2px solid #866399;
    box-shadow: 4px 4px #4c3c63;
    animation: zoomIn 0.3s;
}

.modal-artist {
    margin: 10px auto;
    display: block;
    text-align: center;
    color: #866399;
    font-size: 1.2rem;
    padding-bottom: 20px;
    max-width: 90%;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #b898cd;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #866399;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.fursona-content .image-gallery {
    display: none;
}

.friends-content .content-section {
    margin-top: 40px;
    text-align: center;
}

.friends-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.friend-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease-in-out;
    padding: 10px;
    border: 2px solid #866399;
    box-shadow: 4px 4px #4c3c63;
    background-color: #3b2f4c;
    border-radius: 5px;
}

.friend-card:hover {
    transform: scale(1.05);
}

.friend-card img {
    width: clamp(80px, 15vw, 120px);
    height: auto;
    border: 2px solid #866399;
    box-shadow: 4px 4px #4c3c63;
    border-radius: 0;
}

.friend-card .friend-details {
    margin-top: 10px;
}

.friend-card .friend-name {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    text-shadow: 2px 2px #4c3c63;
}

.friend-card .friend-website {
    margin: 0;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: #b898cd;
    text-shadow: 1px 1px #4c3c63;
}