* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background: linear-gradient(180deg, #292929, #292939) ;
    position: relative;
    height: 100vh;
}

.app {
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}
.image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* trimmed from 80vh to leave room for the api picker row and the
       status line without pushing the controls off screen */
    height: 70vh;
    border-radius: 6px;
    z-index: 2;
}

.random-image {
    color: #fff;
    width: 100%;
    object-fit: cover;
    height: 100%;
}
.sfw {
    margin-top: 10px;
    display: flex;
}

button {
    padding: 2px 10px;
    border-radius: 6px;
    background-color: #fff;
    border: none;
}
.form-select {
    padding: 2px 30px 2px 10px;
    width: 150px;
}
.random-waifu {
    margin-right: 10px;
}
.nsfw {
    margin-top: 10px;
    display: flex;
}
.random-waifu-nsfw {
    margin-right: 10px;
}

.toggle {
    margin-top: 10px;
    display: flex;
    align-items: center;
    color:#fff
}
#nsfwToggle {
    margin-right: 10px;
}
/*@media (max-width: 1280px) {*/
/*    .image-wrapper {*/
/*        display: flex;*/
/*        justify-content: center;*/
/*        align-items: center;*/
/*        overflow: hidden;*/
/*        width: 250px;*/
/*        height: 500px;*/
/*        border-radius: 6px;*/
/*        z-index: 2;*/
/*    }*/
/*}*/

@media (max-width: 360px) {
    .image-wrapper {
        height: 70vh;
    }
}

/* api picker + nsfw toggle share one row so the extra control does not
   cost another line of vertical space */
.controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.api-picker {
    margin-top: 10px;
    display: flex;
    align-items: center;
    color: #fff;
}
.api-picker label {
    margin-right: 10px;
}
.api-select {
    width: 130px;
}

/* shows the resolved image url, or why a fetch failed - the point of a
   test page is seeing what the api actually answered */
.status {
    margin-top: 10px;
    max-width: 90vw;
    color: #9a9aa8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    text-align: center;
    overflow-wrap: anywhere;
}
.status-error {
    color: #ff8a8a;
}
