body {
    font-family: 'Inter', 'Noto Sans', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-align: center;
    background: #444;
    color: white;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    color: #cccccc;
    margin: 0 auto 2rem auto;
}

h2 p {
    margin: 0.5em 0;
}

.fullscreen { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: #f5f5f5;
    transition: opacity 0.4s ease-in-out, visibility 0.4s;
    padding: 2rem;
    box-sizing: border-box;
}

@keyframes fadein {
  0%   {opacity: 0.5;}
  100% {opacity: 1;}
}

a {
    color: white;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 36px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.2s ease;
    margin: 20px auto;
}

button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

button:disabled {
    background-color: #555;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.hidden {
    display: none !important;
}

ul {
    padding-left: 0;
}

li {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    list-style: none;
    border-left: 4px solid #33C433;
    text-align: left;
}

#controls {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

#controls button {
    margin: 0;
}

#graphs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.graph {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

#feeds {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

#feeds span {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

#feeds iframe {
    width: 100vw;
    max-width: 640px;
    height: 360px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1rem; }
    .fullscreen { padding: 1rem; }
    #feeds iframe { height: 240px; }
}

#mainapp {
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#log, #explanation {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#log ul {
    max-height: 200px;
    overflow-y: auto;
}

#log li {
    border-left: 4px solid #3498db;
    font-family: monospace;
    font-size: 0.9em;
}

#log h2, #explanation h2 {
    margin: 0 0 1rem 0;
    color: white;
    max-width: 100%;
}

#explanation ol {
    padding-left: 0;
    counter-reset: explanation-counter;
}

#explanation ol li {
    counter-increment: explanation-counter;
    position: relative;
    padding-left: 40px;
}

#explanation ol li::before {
    content: counter(explanation-counter) ".";
    position: absolute;
    left: 15px;
    font-weight: bold;
    color: #3498db;
}

select {
    padding: 10px;
    border-radius: 8px;
    background: #333;
    color: white;
    border: 1px solid #555;
    font-size: 1rem;
    margin: 10px;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #3498db;
}
