/* Shared site styles (from index.html) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    text-align: center;
    max-width: 600px;
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #dd6f2f;
    font-weight: bold;
    letter-spacing: 2px;
}

.formula {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #dd6f2f;
    margin: 20px 0;
    padding: 15px;
    background: rgba(221, 111, 47, 0.1);
    border-left: 4px solid #dd6f2f;
    border-radius: 4px;
}

h1 {
    font-size: 2.5rem;
    margin: 20px 0;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin: 15px 0 30px;
    line-height: 1.6;
}

.status {
    display: inline-block;
    padding: 10px 25px;
    background: #dd6f2f;
    color: white;
    border-radius: 25px;
    font-weight: 500;
    margin: 20px 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features {
    margin: 40px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(221, 111, 47, 0.3);
}

.features h3 {
    color: #dd6f2f;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-list {
    text-align: left;
    display: inline-block;
    line-height: 1.8;
}

.feature-list li {
    list-style: none;
    padding: 8px 0;
    color: #c0c0c0;
}

.feature-list li:before {
    content: "∑ ";
    color: #dd6f2f;
    margin-right: 10px;
    font-weight: bold;
}

/* Make feature list links match surrounding text */
.feature-list a {
    color: inherit;
    text-decoration: none;
}

.feature-list a:hover {
    color: #f39c42;
    text-decoration: underline;
}

.contact {
    margin-top: 40px;
    font-size: 0.95rem;
    color: #888;
}

.loading-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #dd6f2f, #f39c42);
    width: 65%;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {

    0%,
    100% {
        width: 65%;
    }

    50% {
        width: 80%;
    }
}

.math-symbols {
    opacity: 0.3;
    position: absolute;
    font-size: 3rem;
    pointer-events: none;
    font-family: 'Courier New', monospace;
}

.math-top-left {
    top: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.math-bottom-right {
    bottom: 10%;
    right: 5%;
    animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Rhombus-specific controls and canvas (adapted to site theme) */
.controls {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.controls h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 10px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cfcfcf;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-group label span {
    color: #f39c42;
    font-family: monospace;
    font-size: 1rem;
}

input[type="range"] {
    width: 100%;
    accent-color: #dd6f2f;
    cursor: pointer;
}

.color-pickers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.color-picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.color-picker-wrapper label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cfcfcf;
}

input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    background: none;
}

.canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

@media (max-width:850px) {
    body {
        flex-direction: column-reverse;
        padding: 10px;
        gap: 20px;
    }

    .controls {
        width: 90%;
        max-width: 400px;
    }
}
