body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--dark-brown);
    line-height: 1.6;
}

body main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 75px;
    margin-bottom: 75px;
}

.container {
    position: relative;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
    transition: transform 0.2s;
    overflow: visible;
}

.container h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--brown);
    font-size: 2rem;
    margin-bottom: 15px;
}

.container p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.exos-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; 
    gap: 15px; 
    justify-content: center;
}

.exos-list li {
    background: #FFF8E7;
    border: 1px solid #AB875F;
    border-radius: 12px;
    padding: 12px 20px;
    transition: transform 0.2s, background-color 0.2s;
}

.exos-list li a {
    text-decoration: none;
    color: #48392E;
    font-weight: 600;
}

.exos-list li:hover {
    transform: scale(1.05);
    background-color: #AB875F;
}

.exos-list li:hover a {
    color: white;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: var(--brown);
    outline: none;
}

button {
    background-color: var(--brown);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.reset-btn,
.back-btn {
    position: fixed;
    bottom: 25px;
    background: #AB875F;
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
    transition: .2s;
}

.reset-btn:hover,
.back-btn:hover {
    background: #48392E;
}
.reset-btn{
    right: 25px;
}

.back-btn {
    left: 25px;
}

button:hover {
    background-color: var(--dark-brown);
    transform: scale(1.03);
}

.success,
.error {
    font-weight: 600;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease-in-out;
}

.success {
    background-color: #d8f3dc;
    color: #1b4332;
    border: 1px solid #95d5b2;
}

.error {
    background-color: #ffe0e0;
    color: #c1121f;
    border: 1px solid #ffb3b3;
}

.indice {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
    text-align: right;
}

.indice-toggle {
    background: #AB875F;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: 0.2s;
}

.indice-toggle:hover {
    background: #48392E;
}

.indice-content {
    display: none; 
    position: absolute;
    top: 40px;
    right: 0;
    background: #FFF8E7;
    padding: 15px;
    border: 1px solid #AB875F;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 250px;
    z-index: 1001;
    white-space: normal;
    width: max-content; 
}

.actions-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.question {
  margin-top: 20px;
}

.question input[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    .container h2 {
        font-size: 1.6rem;
    }
}