@font-face {
    font-family: 'SplatoonNavFont';
    src: url('../font/NinSplatoonSdodrNumber-Reg.ttf') format('truetype');
}
@font-face {
    font-family: 'SplatoonHobbyFont';
    src: url('../font/FOT-RowdyStd-EB.otf') format('opentype');
}
html,body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}
body {
    transition: background-color 0.8s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: black;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s;
    font-family: 'SplatoonNavFont', sans-serif;
}
.top-nav a {
    text-decoration: none;
    color: #888; /* Default gray */
    font-weight: 500;
    transition: color 0.3s;
}
.top-nav a:hover {
    color: white !important; /* White on hover */
}
.top-nav ul {
    list-style: none;
    text-align: center;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100%;
}
.top-nav ul li {
    display: inline-block;
    padding: 0 20px;
}

.white-bg{
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* cursor option box */
.option-box{
    width: max-content;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 12px;
    position: fixed;
    z-index: 2000;
    display: none;
    padding: 10px;
    font-family: 'SplatoonNavFont', sans-serif;
}
.option-box-visible {
    display: block;
}

/* About modal */
.about-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s ease;
}
.about-modal.about-modal-open {
    visibility: visible;
    opacity: 1;
}
.about-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}
.about-modal-content {
    position: relative;
    max-width: 480px;
    width: 100%;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.about-modal-title {
    margin: 0 0 16px 0;
    font-size: 1.4em;
}
.about-modal-content p {
    margin: 0 0 12px 0;
    line-height: 1.5;
    color: #333;
}
.about-modal-content p:last-child {
    margin-bottom: 0;
}
.about-modal-content a {
    color: #5dade2;
    text-decoration: none;
}
.about-modal-content a:hover {
    text-decoration: underline;
}
.about-modal-content .about-github-logo,
.about-modal-content .about-link-icon {
    vertical-align: middle;
    margin-right: 2px;
}
.about-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.about-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* cursor effect */
.cursor-point {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}
.dynamic-svg {
    position: absolute;
    pointer-events: none;
    z-index: 9998;
}

/* bottom bar */
#bottom-bar {
    display: none;
}

#main-container {
    min-height: 100vh;
    background-color: white;
}

/* Hobby page specific font */
.hobby-page #main-container {
    font-family: 'SplatoonHobbyFont', sans-serif;
}
