@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: #0f0f0f; /* Very dark grey, almost black */
color: #e0e0e0; /* Off-white for text */
margin: 0;
padding: 0;
text-align: center;
font-size: 18px; /* Increased base font size */
line-height: 1.6; /* Better readability */
}
header {
padding: 1.5rem 1rem;
background: linear-gradient(180deg, #1a1a1a, #0f0f0f); /* Subtle gradient */
border-bottom: 1px solid #2a2a2a;
position: relative; /* For absolute positioning of github link */
}
.github-link {
position: absolute;
top: 2.5rem;
right: 3rem;
color: #a0a0a0;
transition: color 0.3s ease, transform 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.github-link:hover {
color: #ffffff;
transform: scale(1.1);
}
h1 {
font-size: 3.5rem; /* Increased font size */
margin-bottom: 0.5rem;
color: #ffffff;
animation: fadeInDown 1s ease-in-out;
font-weight: 700;
letter-spacing: -0.02em;
}
p.animate{
font-size: 1.3rem; /* Increased font size */
color: #a0a0a0; /* Medium grey */
animation: fadeInUp 1s ease-in-out;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
main {
padding: 1rem 2rem;
}
section {
margin-bottom: 5rem; /* Increased spacing between sections */
}
h2 {
font-size: 2rem; /* Increased font size */
margin-bottom: 2rem;
color: #ffffff;
position: relative;
display: inline-block;
font-weight: 600;
}
h2::after {
content: '';
position: absolute;
width: 60%;
height: 3px;
background-color: #ffffff; /* White accent */
bottom: -10px;
left: 20%;
transform: scaleX(0);
transition: transform 0.5s ease-in-out;
}
section:hover h2::after {
transform: scaleX(1);
}
.tabs {
max-width: 900px; /* Slightly wider to accommodate larger text */
margin: 0 auto;
background: #1a1a1a; /* Dark grey container */
border-radius: 12px;
padding: 2rem; /* Increased padding */
border: 1px solid #333;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.tab-nav {
display: flex;
justify-content: center;
border-bottom: 1px solid #333;
margin-bottom: 2rem;
}
.tab-link {
background: none;
border: none;
color: #888;
padding: 1rem 1.5rem;
cursor: pointer;
font-size: 1.1rem; /* Increased font size */
font-weight: 500;
border-bottom: 2px solid transparent;
transition: color 0.2s ease;
}
.tab-link:hover {
color: #ccc;
}
.tab-link.active {
color: #ffffff;
border-bottom: 2px solid #ffffff;
}
.tab-content {
display: none;
padding: 0.5rem;
text-align: left;
}
.tab-content.active {
display: block;
}
.tab-content h3 {
font-size: 1.5rem;
margin-top: 0;
margin-bottom: 1rem;
color: #fff;
}
.tab-content p {
font-size: 1.1rem;
margin-bottom: 1rem;
}
pre {
background: #000000;
border: 1px solid #333;
border-radius: 8px;
padding: 1.5rem;
overflow-x: auto;
white-space: pre-wrap;
word-wrap: break-word;
margin-top: 1rem;
}
code {
font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
color: #e2e8f0;
background-color: #333333;
padding: 0.2em 0.4em;
border-radius: 6px;
font-size: 0.95em;
border: 1px solid #444;
}
pre code {
background-color: transparent;
padding: 0;
border: none;
border-radius: 0;
color: #d4d4d4;
font-size: 1rem;
}
#demo iframe {
display: block;
margin: 0 auto;
width: 100%;
max-width: 900px; /* Match tabs width */
height: 506px; /* Aspect ratio adjustment */
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
border: 1px solid #333;
}
#demo iframe:hover {
transform: scale(1.02);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}
@keyframes fadeInDown {
from { opacity: 0; transform: translateY(-20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}