body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
    font-family: Arial, sans-serif;
}

.main-container {
    width: 90%;
    max-width: 1200px;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.navigation-bar {
    background-color: #800000;
    /*Marooncolor*/
    width: 100%;
    padding: 12px 0;
    margin-bottom: 20px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-variant: small-caps;
}

.home-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.home-link:hover {
    color: #f0f0f0;
}

.nav-title {
    color: white;
    font-size: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-title i {
    font-size: 28px;
}

.content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.preview-box {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.animated-object {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: maroon;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: white;
}

.code-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-weight: bold;
    color: maroon;
}

.css-code {
    height: 250px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    padding: 10px;
    font-family: monospace;
    overflow-y: auto;
}

.copy-button {
    margin-top: 10px;
    padding: 8px;
    background-color: maroon;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.copy-button:hover {
    background-color: #480808;
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.control-item {
    display: flex;
    flex-direction: column;
}

.keyframes-section {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bolder;
    text-align: center;
    color: maroon;
    text-decoration: wavy underline;
}

.keyframe-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.add-keyframe {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
}

.keyframe-list {
    margin-top: 20px;
}

.keyframe-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.keyframe-item input,
.keyframe-item select {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.keyframe-item button {
    padding: 5px 10px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.keyframe-item button:hover {
    background-color: #cc0000;
}