body {
    line-height: 1.6;
    margin: 0;
    background-color: #FAFAFA;
    padding: 20px;
}

h1 {
    color: #2C3E50;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    color: #2C3E50;
    border-bottom: 2px solid #FAFAFA;
    padding-bottom: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
}

h3 {
    color: #2C3E50;
    margin-top: 15px;
    margin-bottom: 10px;
}

section {
    background-color: #FFFFFF;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

ul {
    padding-left: 25px;
}

li {
    margin-bottom: 10px;
}

#description p {
    background-color: #EAEFEF;
    padding: 15px;
    border-radius: 5px;
    border-left: 5px solid #5DADE2;
}

.procedure-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.procedure-text {
    flex: 1 1 50%;
    min-width: 300px;
}

.animation {
    flex: 1 1 40%;
    min-width: 280px;
}

.animation figure {
    margin: 0;
    padding: 0;
}

.animation img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #BBBBBB;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.animation figcaption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
    color: #777777;
    font-style: italic;
}

#toggle {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    background-color: #3498DB;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#toggle:hover {
    background-color: #2980b9;
}

#code {
    background-color: #2c3e50;
    color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.4;
    margin-top: 15px;
    display: none;
}

#code code {
    white-space: pre;
}

.info-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.info-link:hover {
    text-decoration: underline;
    color: #003d82;
}
