/* Custom Fonts */
@font-face {
    font-family: 'KHMenu';
    src: url('../fonts/KHMenu.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'KHMenu';
    src: url('../fonts/KHMenu-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'KHMenu';
    src: url('../fonts/KHMenu-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'KHMenu';
    src: url('../fonts/KHMenu-BoldItalic.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
}

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

/* CSS Variables for Colors */
:root {
    --background-color: #000000; /* Page background */
    --header-background-color: #00003c;
    --footer-background-color: #00003c;
    --menu-background-color: #000080;
    --menu-edge-color: #0000e2;
    --button-highlight: grey;
    --button-selected-border: #ff0000; /* Selected border */
    --gradient-color: #420000; /* Gradient color */
    --character-border-color: #000000; /* Character border */
    --character-background-color: #000000; /* Character background */
    --text-color: white; /* Text color */
}

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

body {
    font-family: 'KHMenu', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--header-background-color);
    padding: 10px 20px;
    border-bottom: 3px solid #0000f3;
}

/* Menu Styles */
nav {
    position: relative;
}

.menu {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 10px;
    background-color: var(--menu-background-color);
    border-radius: 25px;
    border: 2px solid var(--menu-edge-color);
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
}

nav ul li a:hover {
    color: white; /* Retain hover color */
}

/* Main Content Styles */
main {
    padding-top: 160px;
}

/* Character Model Container */
.character-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    background-color: var(--character-background-color);
    margin: 0;
    position: relative;
}

/* Character Image Styles */
.character-image {
    width: 35%;
    height: 400px;
    border: 2px solid var(--character-border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--character-background-color);
    position: relative;
    margin-right: 20px;
}

.character-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid white;
    border-radius: 5px;
    z-index: -1;
}

.character-image img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Character Info Styles */
.character-info {
    width: 40%;
    padding: 0 20px;
    text-align: center;
}

/* Character List Styles */
.character-list {
    display: flex;
    flex-direction: column;
    width: 25%;
    gap: 10px;
    z-index: 10;
}

/* Character Option Button Styles */
.character-option {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: black;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 25px 0 25px 0;
    opacity: 0.8;
    position: relative;
    overflow: hidden;
}

.character-option:hover {
    opacity: 1;
}

.character-option.selected {
    border: 3px solid var(--button-selected-border);
    opacity: 1;
    transform: translateX(10px);
    background: linear-gradient(to top, var(--gradient-color) 0%, black 50%);
}

/* Highlight Effect */
.character-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    border-top: 3px solid var(--button-highlight);
    border-left: 3px solid var(--button-highlight);
    border-radius: 25px 0 0 0;
    z-index: 0;
    pointer-events: none;
}

.character-option.selected::before {
    display: none;
}

/* Icon Styles */
.icon {
    width: 50px;
    height: 50px;
    background-color: gray;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

/* Character Name Styles */
.name {
    font-size: 18px;
    z-index: 1;
}

/* Footer Styles */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--footer-background-color);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'KHGummi', sans-serif;
    color: #1ae4fa;
    border-top: 3px solid #0000f3;
}

#footer-time {
    font-family: 'KHGummi', sans-serif;
    font-size: 16px;
}
