/* Add any global styles here */

/* Global font settings */
:root {
    --main-font: 'Arial', sans-serif;
    --font-size-normal: 16px;
    --font-size-title: 24px;
    --font-size-header: 32px;
    --font-size-category: 42px;    /* New size for main categories */
    --font-size-section: 36px;     /* New size for section titles */
}

/* General Styles */
body {
    font-family: var(--main-font);
    font-size: 20px;
    line-height: 1.5;
    color: #ffffff;
    background-color: #1a1a1a;
    margin: 0;
    padding: 0;
}

/* Header Styles */
header {
    text-align: center;
    background: linear-gradient(to right, #000046, #1cb5e0);
    color: white;
    padding: 20px 0;
}

header h1 {
    margin: 0;
    font-size: var(--font-size-header);
    font-weight: bold;
}

header p {
    font-size: 1.2em;
    margin-top: 10px;
}

/* Main Content Styles */
main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    gap: 20px; /* Add gap between boxes */
}

.animation-box {
    background: #1e1e1e;
    border: 2px solid #1cb5e0;
    border-radius: 10px;
    margin: 15px;
    padding: 20px;
    width: calc(33.333% - 30px); /* Adjust width to fit 3 boxes per row */
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 300px;
    margin: 0;
}

/* Common styles for all animations */
[class*='-right'],
[class*='-left'],
.typewriter {
    font-family: var(--main-font);
    font-size: var(--font-size-normal);
    line-height: 1.5;
    text-align: center;
}

.animation {
    font-family: var(--main-font);
    font-size: var(--font-size-normal);
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #ffffff;
    word-wrap: break-word; /* Ensure text wraps within the box */
    overflow-wrap: break-word;
    white-space: normal;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 60px;
}

.animation-label {
    margin-top: 10px;
    font-size: 1em;
    color: #1cb5e0;
    text-align: left;
    width: 100%;
    padding-left: 20px;
}

.controls {
    font-family: var(--main-font);
    font-size: var(--font-size-normal);
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
}

.controls button {
    margin: 5px;
    padding: 10px 15px;
    font-size: 0.9em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #1cb5e0;
    color: white;
    transition: background-color 0.3s ease;
}

.controls button:hover {
    background-color: #000046;
}

/* Remove the .controls a styles since we're not using anchor tags anymore */

button, a.button {
    font-family: var(--main-font);
    font-size: var(--font-size-normal);
    background-color: #6200ea;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

button:hover {
    background-color: #3700b3;
}

pre {
    background-color: #2e2e2e;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    width: 100%;
    color: #ffffff;
}

pre code {
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-normal);
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Animation Category Styles */
.animation-category {
    margin-bottom: 40px;
    width: 100%;
}

.animation-category h2 {
    font-size: var(--font-size-category);
    font-weight: bold;
    text-align: center;
    color: #1cb5e0;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.animation-category .category-title {
    font-size: var(--font-size-category);
    text-align: left;
    color: #1cb5e0;
    margin-bottom: 20px;
    padding-left: 0; /* Align all the way to the left */
}

.animation-row {
    margin-bottom: 30px;
    width: 100%;
}

.animation-row-title {
    font-size: var(--font-size-section);
    font-weight: bold;
    color: #1cb5e0;
    margin: 30px 0 20px 0;
    padding-left: 15px;
    letter-spacing: 0.5px;
}

.animation-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.animation-subrow-title {
    font-size: 1.2em;
    color: #1cb5e0;
    margin: 30px 0 15px 30px;
    opacity: 0.9;
    font-weight: normal;
}

/* Blank Space Styles */
.blank-space {
    height: 20px; /* Adjust the height as needed */
}
