.field.read.markdown iframe {
    width: calc(50% - 0.5em);
    border-radius: 0.5em;;
}

ul.aleatorios {
    display: flex;
    flex-flow: row wrap;
    gap: 1em;
}

ul.aleatorios li {
    flex: 1 0 30%;
    position: relative;
    padding: 0.5em;
    border-radius: 0.5em;
    background-color: var(--surface-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
}

ul.aleatorios .thumbnail {
    width: 100%;
    height: 0;
    padding-bottom: 58%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--surface-color);
}

ul.aleatorios .thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.25em;
}

ul.aleatorios h4 {
    margin: 1em 0;
    font-size: 1.1em;
}

ul.aleatorios h4:hover {
    cursor: pointer;
    text-decoration: underline;
}

ul.aleatorios button {
    width: 100%;
}

ul.aleatorios .posicao {
    display: none;
}

ul.opcoes {
    display: flex;
    flex-flow: column wrap;
    gap: 0.5em;
    margin: 0.5em 0;
    counter-reset: posicao;
}
ul.opcoes li {
    counter-increment: posicao;
}
ul.opcoes li:empty::before {
    content: counter(posicao);
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-color-weak);
    padding: 1em;
}
.opcoes .selecionar {
    display: none;
}
.etapa1 {
    margin: 2em 0;
}
.etapa2 {
    display: none;
}

@media (max-width: 640px) {
    .paginacao {
        order: 20;
    }
}





.votacao .contenedor {
    display: flex;
    flex-flow: row wrap;
}
.votacao .contenedor  .texto {
    flex: 0 0 60%;
    margin: 2em 0 0 0;
}
.votacao .contenedor .ilustracao {
    flex: 0 0 40%;
    text-align: center;
    max-height: 75vh;
}
.votacao .contenedor .ilustracao img {
    width: 100%;
}
.votacao .contenedor p {
    font-size: 1.2em;
    font-weight: 500;
    padding: 0;
}
.votacao .contenedor button {
    margin: 2em 0;
}
@media (max-width: 550px) {
    .votacao .contenedor .texto {
        flex: 0 0 100%;
    }
    .votacao .contenedor .ilustracao {
        float: none;
        flex: 1 0 100%;
    }
    .votacao .contenedor .ilustracao img {
        width: 80%;
    }
}



.votacao .paginacao {
    margin: 1em 0;
}
.votacao .paginacao span {
    padding: 0.5em 0.75em;
    border-radius: 50em;
    background-color: var(--surface-color);
    font-size: 0.95em;
    color: var(--text-color-weak);
}
.votacao h2 {
    font-family: var(font-family-heading);
    font-size: 1.25em;
    font-weight: bold;
}
.votacao h2 b {
    font-size: 1.5em;
}
.votacao .emojis {
    font-size: 2.5em;
    margin: 0.75em 0 0 0;
}



ul.opcoes li {
    display: flex;
    gap: 0.5em;
    border: 1px solid var(--border-color);
    border-radius: 0.5em;
    padding: 0.25em;
    align-items: stretch;
    position: relative;
    margin: 0;
    transition: all 0.5s ease-in-out;
    will-change: transform;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    background-color: hsl(from var(--surface-color) h s l / 0.15);
}
ul.opcoes li.moving {
    box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.5);
    border-color: rgb(255, 255, 108);
    background-color: rgba(255, 255, 108, 0.4); /* Fundo levemente amarelado */
    z-index: 10; /* Garante que o item em movimento fique acima dos outros */
}
ul.opcoes[aria-live] {
    padding: 0;
    outline: none; /* Remove outline padrão, se necessário */
}
ul.opcoes li:last-child {
    margin: 0;
}
ul.opcoes .thumbnail {
    height: 4.5em;
    flex: 0 0 6em;
    border-radius: 0.35em;
    cursor: pointer;
    background-color: var(--surface-color);
}
ul.opcoes .thumbnail:hover {
    opacity: 0.7;
    transition: all 0.5s;
}
ul.opcoes .thumbnail img {
    border-radius: 0.35em;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: var(--surface-color);
}
ul.opcoes h4 {
    flex: 1 1 auto;
    font-size: 1.35em;
    font-family: 'EugeneSans', sans-serif;
    display: flex;
    margin: 0;
    flex-flow: column nowrap;
    justify-content: center;
    line-height: 1;
}
ul.opcoes li:first-child .posicao button:first-of-type,
ul.opcoes li:last-child .posicao button:last-of-type {
    opacity: 0.3;
    cursor: not-allowed;
}

ul.opcoes .posicao {
    display: grid;
    grid-template-areas: "a b" "a c";
    gap: 0.25em;
}
ul.opcoes .posicao  input[type=number]::-webkit-inner-spin-button,
ul.opcoes .posicao  input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
ul.opcoes .posicao  input[type=number] {
  -moz-appearance: textfield;
}
ul.opcoes .posicao input {
    display: none;
}
ul.opcoes .posicao output {
    width: 1em;
    font-size: 1.5em;
    text-align: center;
    grid-area: a;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--text-color);
}
ul.opcoes .posicao button {
    font-size: 0.8em;
    height: 100%;
    border-color: var(--border-color);
}
ul.opcoes .posicao .increase {
    grid-area: b;
    border-radius: 0 0.35em 0 0;
}
ul.opcoes .posicao .decrease {
    grid-area: c;
    border-radius: 0 0 0.35em 0;
}
ul.opcoes .buttons {
    margin: 2em 0 4em 0;
}
dialog {
    width: 94%;
    height: 94%;
    max-width: 75rem;
}
dialog h1 {
    margin: 1em 0;
}