body {
    font-family: 'Roboto', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f0f0f5; /* Light grey background */
    color: #333; /* Dark grey text */
}

h1 {
    color: #444; /* Darker grey */
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.input-container {
    background-color: #ffffff; /* White background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.input-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc; /* Light grey border */
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9; /* Very light grey background */
    color: #333; /* Dark grey text */
}

.button {
    background-color: #5f99da; /* Blue button */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 16px;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #2580e4; /* Darker blue on hover */
}

.clear-button {
    background-color: #ffcccc; /* Light red background */
    color: #ff0000; /* Red text */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px;
    font-size: 16px;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.clear-button:hover {
    background-color: #ff9999; /* Darker red on hover */
}

.link-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 10px;
}

.subject-links, .chapter-links {
    background-color: #ffffff; /* White background */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.subject-links strong, .chapter-links strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333; /* Dark grey text */
}

.subject-links button, .chapter-links button {
    background-color: #5f99da; /* Blue button */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px;
    font-size: 14px;
    margin: 5px 0;
    transition: background-color 0.3s;
}

.subject-links button:hover, .chapter-links button:hover {
    background-color: #2580e4; /* Darker blue on hover */
}

.summary-container .link-button {
    background-color: #c3aa75; /* Blue */
    width: 100%;
}

.summary-container .link-button:hover {
    background-color: #dcc384; /* Darker blue on hover */
}

.summary-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    padding-top: 60px;
}

.modal-content {
    background-color: #ffffff; /* White background */
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.subject-links, .chapter-links, .topic-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.theory-container, .exercise-container, .list-exercise-container, .summary-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.link-button {
    margin: 5px 0;
}

.theory-container .link-button {
    background-color: #913333; /* Light red */
}

.theory-container .link-button:hover {
    background-color: #cd3b3b; /* Darker red on hover */
}

.exercise-container .link-button {
    background-color: #20ae20; /* Green */
}

.exercise-container .link-button:hover {
    background-color: #18dc18; /* Darker green on hover */
}

.list-exercise-container .link-button {
    background-color: #4d4dff; /* Blue */
}

.list-exercise-container .link-button:hover {
    background-color: #1a1aff; /* Darker blue on hover */
}

.theory-container .link-button {
    width: 100%;
}

.exercise-container, .list-exercise-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.subject-links, .chapter-links, .topic-links {
    text-align: center;
}

.topic-links h4 {
    text-decoration: underline;
}

.container {
    background-color: #ffffff; /* White background */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.block-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #007bff; /* Blue */
}

.step-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333; /* Dark grey */
}

.container p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.container iframe {
    width: 100%;
    height: 315px;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*.clicked-button {*/
/*    background-color: #cccccc !important; !* Grey background *!*/
/*    color: #666666 !important; !* Dark grey text *!*/
/*}*/

/* Estilo para o botão de fechar do modal */
.close {
    color: white;
    background-color: #970101;
    border-radius: 50%;
    position: absolute;
    top: -17.5px; /* Half of the button's height */
    right: -17.5px; /* Half of the button's width */
    font-size: 28px;
    font-weight: bold;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.close:hover,
.close:focus {
    background-color: #ca0505;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

/* Certifique-se de que a posição do conteúdo do modal seja relativa */
.modal-content {
    position: relative;
    padding: 20px;
    border-radius: 10px;
    background-color: #ffffff; /* White background */
    margin: 5% auto;
    width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilo para desativar a rolagem */
.no-scroll {
    overflow: hidden;
}

button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    position: absolute;
    top: 25%;
    left: 40%;
    transform: translate(-50%, -50%);
    display: none; /* Initially hidden */
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Spinner for video lesson button */
.video-spinner {
    position: absolute;
    top: 22%;
    left: 48%;
    transform: translate(-50%, -50%);
    display: none; /* Initially hidden */
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

/* Spinner for exercise and exercise list buttons */
.exercise-spinner {
    position: absolute;
    top: 20%;
    left: 38%;
    transform: translate(-50%, -50%);
    display: none; /* Initially hidden */
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container iframe {
    width: 100%;
    height: 500px; /* Ajuste a altura conforme necessário */
    border: none;
    border-radius: 5px;
    margin-top: 20px;
}

.covered-topics {
    margin-top: 20px; /* Ajuste o valor conforme necessário */
}