html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    background-color: #f4f4f4;
    color: #333;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* Aspect ratio 16:9 (9 / 16 = 0.5625) */
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

iframe {
    display: block;
    border: 0;
    width: 100%;
    height: 100%;
}

.app {
    display: flex;
    width: 100%;
    height: 100%;
}

#api-frame {
    flex: 1 1 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.options {
    box-sizing: border-box;
    flex: 0 0 350px;
    padding: 30px;
    overflow: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.option {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.option:first-child {
    border-top: 1px solid #eee;
}

.option label {
    flex: 0 0 130px;
    font-weight: 500;
    color: #555;
}

.color {
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.color input[type='radio'] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.color__swatch {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin-right: 8px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.color input:checked + .color__swatch {
    box-shadow: 0 0 0 3px #007bff;
}

.color:hover .color__swatch {
    box-shadow: 0 0 0 3px #ccc;
}

.color input:checked + .color__swatch {
    outline: 3px solid #007bff;
    box-shadow: none;
}

.texture {
    display: block;
    position: relative;
    margin-bottom: 10px;
}

.texture input[type='radio'] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.texture__preview {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.texture__preview img {
    display: block;
    width: 100%;
    height: auto;
    transition: box-shadow 0.3s ease;
}

.texture input:checked + .texture__preview > img {
    box-shadow: 0 0 0 3px #007bff;
}

.texture__name {
    display: block;
    margin-top: 4px;
    font-size: 0.9em;
    color: #777;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

/* Media query para dispositivos móveis */
@media (max-width: 768px) {
    .app {
        flex-direction: column;
    }

    .options {
        flex: 0 0 auto;
        margin: 10px;
        width: auto;
        max-height: none;
    }

    /* Aumenta a altura do iFrame em telas menores */
    .iframe-container {
        padding-top: 75%; /* Ajuste este valor para aumentar a altura */
    }
}