@font-face {
    font-family: 'New Rodin';
    src: url('rodin.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; 
}

body {
    margin: 0;
    padding: 0;
    font-family: 'New Rodin', sans-serif;
    font-size: 13px;
    background-image: url(tetopaper.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
}

a {
    color: #f54263;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: #fff;
}

code, #more {
    display: none;
}

.announcement-overlay {
    position: fixed;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    pointer-events: none;
}

.popup-card {
    width: 450px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    animation: popupSlide 0.4s ease-out;
}

@keyframes popupSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.popup-exit {
    animation: popupClose 0.3s ease-in forwards;
    pointer-events: none;
}

@keyframes popupClose {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

.close-x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(180deg, #ff8097 0%, #f54263 50%, #8a1a2f 51%, #f54263 100%);
    border: 1px solid white;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.popup-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.0) 100%);
    padding: 10px 15px;
    font-weight: bold;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.popup-body {
    padding: 15px 20px;
    text-align: center;
}

.popup-body p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.glossy-bar {
    height: 6px;
    width: 80%;
    margin: 10px auto 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    border-radius: 10px;
}

.desktop-wrapper {
    width: 900px;
    height: 550px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    position: relative;
    z-index: 10;
    margin-top: 60px;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 25px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), inset 0 0 15px rgba(255,255,255,0.05);
}

.profile-box {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}

.avatar-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 15%;
    object-fit: cover;
    z-index: 1;
}

.avatar-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('frame.png') no-repeat center center;
    background-size: contain;
    z-index: 2;
    pointer-events: none;
}

.sidebar nav {
    width: 100%;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar nav li {
    width: 85%;
}

.sidebar nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    margin: 6px 0;
    border-radius: 5px;
    font-size: 0.85rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.2) 51%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.15s ease;
}

.sidebar nav a:hover, .sidebar nav a.active {
    background: linear-gradient(180deg, #ff8097 0%, #f54263 50%, #8a1a2f 51%, #f54263 100%);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(245, 66, 99, 0.6), inset 0 1px 0 rgba(255,255,255,0.4);
    transform: translateY(-1px);
}

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#home, #links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.glass-card {
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.25) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.status-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 6px 16px;
    background: linear-gradient(180deg, #f54263 0%, #8a1a2f 50%, #4a0d18 51%, #8a1a2f 100%);
    border-radius: 20px;
    font-size: 0.7rem;
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3), inset 0 1px 2px rgba(255,255,255,0.6);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    width: fit-content;
}

.floating-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    top: -200px;
    right: -100px;
    z-index: -1;
    pointer-events: none;
}

.floating-orb-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 66, 99, 0.1) 0%, rgba(255,255,255,0) 70%);
    bottom: -100px;
    left: -100px;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3 {
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

p {
    margin: 0 0 15px 0;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

#links, #guestbook {
    display: none;
}

#links .glass-card, #home .glass-card {
    opacity: 0;
    transform: scale(0);
}

#home .glass-card {
    opacity: 1;
    transform: scale(1);
}

#links-card {
    width: 100%;
    height: 555px; 
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 66, 99, 0.5) transparent;
}

#links-card::-webkit-scrollbar {
    width: 6px;
}

#links-card::-webkit-scrollbar-track {
    background: transparent;
}

#links-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

#links-card::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 66, 99, 0.5);
}