* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    min-height: 100%;
    background: #080808;
    color: #fff;
    font-family: Arial, sans-serif;
}

body {
    overflow-x: hidden;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

#app {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    margin: auto;
    background: #0d0d0d;
}


/* HEADER */

.header {
    height: 68px;
    padding: 0 17px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;
    z-index: 50;

    background: rgba(13,13,13,.97);
    border-bottom: 1px solid #242424;
}

.header h1 {
    font-size: 15px;
    letter-spacing: 2px;
}

.header span {
    color: #c9a34c;
    font-size: 10px;
    letter-spacing: 2px;
}

.settings {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #191919;
    color: #fff;
    font-size: 20px;
}


/* PAGES */

.page {
    display: none;
    padding: 20px 16px 45px;
}

.page.active {
    display: block;
}


/* HOME */

.hero {
    padding: 35px 5px 25px;
}

.hero-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background: #c9a34c;
    color: #111;

    font-weight: 900;
    margin-bottom: 22px;
}

.hero h2 {
    font-size: 29px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero p {
    color: #858585;
    line-height: 1.55;
}


/* BUTTONS */

.primary,
.secondary,
.danger {
    width: 100%;
    min-height: 53px;

    border-radius: 14px;

    font-weight: 800;
    margin-top: 10px;
}

.primary {
    background: #c9a34c;
    color: #111;
}

.secondary {
    background: #1b1b1b;
    color: #fff;
    border: 1px solid #292929;
}

.danger {
    background: #321616;
    color: #ff8585;
}

.generate {
    margin-top: 18px;
}


/* CARDS */

.card {
    margin-top: 22px;
    padding: 17px;

    background: #161616;
    border: 1px solid #262626;

    border-radius: 15px;
}

.card strong {
    display: block;
    margin-bottom: 7px;
}

.card p {
    color: #858585;
    line-height: 1.5;
    font-size: 13px;
}


/* TITLE */

.title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 25px;
}

.title h2 {
    font-size: 21px;
}

.title small {
    display: block;
    color: #777;
    margin-top: 4px;
}

.backHome,
.backProject,
.backHomeSettings {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    background: #1b1b1b;
    color: white;

    font-size: 27px;
}


/* BLOCK */

.block {
    margin-top: 25px;
}

.block-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
}

.block-title span {
    color: #777;
    font-size: 12px;
}


/* IMAGES */

.images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.add-image,
.image-item {
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
}

.add-image {
    background: #171717;
    border: 1px dashed #3b3b3b;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #888;
}

.add-image b {
    font-size: 33px;
    font-weight: 300;
}

.add-image span {
    font-size: 12px;
    margin-top: 5px;
}

.add-image input {
    display: none;
}

.image-item {
    position: relative;
    background: #000;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 7px;
    right: 7px;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: rgba(0,0,0,.75);
    color: white;
}

.hint {
    display: block;
    color: #666;
    font-size: 11px;
    margin-top: 7px;
}


/* TEXT */

textarea {
    width: 100%;
    height: 145px;

    padding: 15px;

    border-radius: 14px;

    border: 1px solid #292929;

    background: #171717;
    color: #fff;

    resize: none;
    outline: none;

    line-height: 1.5;
}

textarea:focus {
    border-color: #c9a34c;
}

.counter {
    text-align: right;
    color: #666;
    font-size: 10px;
    margin-top: 5px;
}


/* FORMAT */

.choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.choice {
    padding: 14px 5px;

    border-radius: 13px;

    background: #171717;
    color: #888;

    border: 1px solid #282828;
}

.choice b,
.choice small {
    display: block;
}

.choice b {
    color: white;
    font-size: 15px;
}

.choice small {
    margin-top: 5px;
}

.choice.active {
    border-color: #c9a34c;
    color: #c9a34c;
}


/* RANGE */

.range {
    width: 100%;
    accent-color: #c9a34c;
}


/* FILTERS */

.filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.filter {
    padding: 13px;

    background: #171717;
    border: 1px solid #292929;

    border-radius: 12px;

    color: #999;
}

.filter.active {
    border-color: #c9a34c;
    color: #c9a34c;
}


/* SOUND */

.toggle-row {
    padding: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #171717;
    border-radius: 13px;
}

.toggle-row b,
.toggle-row small {
    display: block;
}

.toggle-row small {
    color: #777;
    margin-top: 4px;
}

.toggle-row input {
    width: 45px;
    height: 25px;
    accent-color: #c9a34c;
}

.file-button {
    display: block;

    padding: 15px;
    margin-top: 9px;

    text-align: center;

    border: 1px dashed #444;
    border-radius: 12px;

    color: #aaa;
}

.file-button input {
    display: none;
}

.audio-name {
    margin-top: 7px;
    color: #777;
    font-size: 11px;
}


/* AI */

.ai-card {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 15px;

    background: #171717;
    border-radius: 14px;

    border: 1px solid #292929;
}

.ai-logo {
    width: 45px;
    height: 45px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 12px;

    background: #c9a34c;
    color: #111;

    font-weight: 900;
}

.ai-card b,
.ai-card small {
    display: block;
}

.ai-card small {
    color: #777;
    margin-top: 4px;
}

.warning {
    color: #777;
    font-size: 11px;
    line-height: 1.5;
    margin-top: 8px;
}


/* INPUT */

.text-input {
    width: 100%;
    height: 50px;

    padding: 0 14px;

    background: #171717;
    border: 1px solid #292929;

    border-radius: 12px;

    color: white;
    outline: none;
}


/* GENERATION */

.center {
    text-align: center;
    padding-top: 80px;
}

.loader {
    width: 60px;
    height: 60px;

    margin: 0 auto 25px;

    border: 4px solid #282828;
    border-top-color: #c9a34c;

    border-radius: 50%;

    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.center h2 {
    margin-bottom: 10px;
}

.center p {
    color: #888;
    margin-bottom: 20px;
}

.center small {
    display: block;
    color: #555;
    margin-top: 14px;
}

.progress {
    width: 100%;
    height: 7px;

    background: #202020;

    border-radius: 10px;
    overflow: hidden;
}

#progressBar {
    width: 0%;
    height: 100%;
    background: #c9a34c;
    transition: width .3s;
}


/* VIDEO */

.video-box {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.video-box video {
    width: 100%;
    display: block;
    max-height: 70vh;
}


/* UTILITY */

.hidden {
    display: none !important;
}


/* SMALL PHONES */

@media (max-width: 350px) {

    .page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero h2 {
        font-size: 25px;
    }
}