@import url('https://fonts.googleapis.com/css2?family=Kings&display=swap');

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ------------------------ BODY STYLING ------------------------ */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 50%, #2a1a2a 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

/* ------------------------ HEADER SECTION ------------------------ */
.header {
    background: linear-gradient(90deg, #1a0d1a 0%, #2d1b3d 50%, #1a0d1a 100%);
    border-bottom: 3px solid #6a4c93;
}

/* banner */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    min-height: 100px;
    position: relative;
}

/* Site logo styling */
.logo {
    font-family: "Kings", cursive;
    font-size: 2.5rem;
    font-weight: bold;
    color: #b19cd9;
    letter-spacing: 3px;
}

/* Main page title */
.illusion-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f0e6ff;
    text-align: center;
    text-decoration: underline;
    position: absolute;      
    left: 50%;               
    transform: translateX(-50%);
}

/* Homepage navigation link */
.homepage-link {
    color: #b19cd9;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

/* Hover effect for homepage link */
.homepage-link:hover {
    color: #f0e6ff;
    background: rgba(106, 76, 147, 0.2);
}

/* ------------------------ NAVIGATION BAR ------------------------ */
.navigation {
    background: rgba(45, 27, 61, 0.8);
    padding: 1.2rem 2rem;
    border-top: 1px solid rgba(106, 76, 147, 0.3);
}

/* Navigation menu */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 3rem; 
    list-style: none;
}

/* Navigation links */
.nav-item a {
    color: #c8b5db;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
}

/* Link animation */
.nav-item a:hover,
.nav-item a.active {
    color: #f0e6ff;
    background: linear-gradient(45deg, #6a4c93, #8e6bb8);
}

/* ------------------------ MAIN CONTENT LAYOUT ------------------------ */
.main-container {
    display: flex; 
    min-height: calc(100vh - 170px); /* Full height minus header */
    background: rgba(10, 10, 10, 0.8);
    min-width: 800px; 
}

/* ------------------------ LEFT CONTENT SECTION ------------------------ */
.content-section {
    flex: 1.2;
    max-width: 37%; /* Adjusted size for content still gives rule of thirds */
    padding: 2rem;
    background: linear-gradient(180deg, rgba(26, 10, 26, 0.9) 0%, rgba(42, 26, 42, 0.9) 100%);
    border-right: 3px solid #6a4c93;
}

/* Content section headings */
.content-section h2 {
    color: #d4c5f9;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Content section paragraphs */
.content-section p {
    line-height: 1.6; 
    margin-bottom: 1rem;
    color: #c8b5db;
    font-size: 1.1rem;
}

/* Content section lists */
.content-section ul {
    margin-left: 1.5rem;
    color: #c8b5db;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Tighter spacing for controls section */
.content-section p.controls-info {
    margin-bottom: 0.3rem;
}

/* ------------------------ RIGHT ILLUSION SECTION ------------------------ */
.illusion-section {
    flex: 1.8; 
    max-width: 63%;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(15, 5, 15, 0.9) 0%, rgba(25, 15, 25, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ------------------------ ANIMATION CONTAINER ------------------------ */
.illusion-container {
    width: 100%;
    max-width: 700px;
    height: 580px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #6a4c93;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

/* Canvas styling */
.illusion-canvas {
    border-radius: 15px;
}

/* ------------------------ CONTROL BUTTONS ------------------------ */
.controls {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem; 
    flex-wrap: wrap; 
}

/* button styling */
.control-btn {
    background: linear-gradient(45deg, #6a4c93, #8e6bb8);
    color: #f0e6ff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
}

.control-btn:hover {
    background: linear-gradient(45deg, #8e6bb8, #b19cd9);
}

/* Status display */
.status-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(42, 26, 42, 0.6);
    border: 1px solid #6a4c93;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
}

.status-info p {
    color: #d4c5f9;
    font-size: 1.1rem;
    margin: 0;
}

/* ------------------------ FOOTER ------------------------ */
.footer {
    text-align: center;
    padding: 1rem;
    background: rgba(26, 10, 26, 0.8);
    color: #8e6bb8;
    font-size: 0.9rem;
    border-top: 1px solid rgba(106, 76, 147, 0.3);
}