main {
    flex: 1;
    padding: 2vh 2vw;
    display: flex;
    flex-direction: column;
    margin-left: 1rem;
    margin-right: 1rem;
    min-height: 100vh;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.prompt-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: min(2rem, 3vw);
    margin-bottom: min(1rem, 2vh);
}

prompt-box {
    display: flex;
    flex: 1;
    max-height: 100%;
    border: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: min(1rem, 2vh);
    margin: min(1rem, 2vh) 0;
    font-size: min(1.7rem, 3vw, 3vh);
}

.prompt-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-row {
    display: flex;
    flex-direction: row;
    flex: 1;
    gap: 2rem;
}

.card-input {
    display: flex;
    aspect-ratio: 4 / 3;
    width: 100%;
    max-width: min(40rem, 90vw);
    flex: 0 1 auto;
    justify-content: center;
    align-items: center;
    font-style: italic;
}

.sidebar {
    flex: 0 1 auto;
    min-width: 10vw;
    width: 100%;
}

.sidebar .box {
    border: 1px dashed #999;
    padding: 1rem;
    margin-top: 1rem;
}

.button-row {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    height: 100%;
}

button {
    padding: min(0.5rem, 1.5vh) min(1.2rem, 3vw);
    font-size: min(1rem, 2.4vw, 2.2vh);
    border: none;
    background-image: url('../images/button-backgrounds.png');
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
    min-width: 6vw;
    min-height: 9vh;
    max-width: 320px;
    max-height: 120px;
    aspect-ratio: 5.5 / 3.5;
}

.button-row button {
    padding: min(0.5rem, 1.5vh) min(1.2rem, 3vw);
    font-size: min(1rem, 2.4vw, 2.2vh);
    border: none;
    background-image: url('../images/button-backgrounds.png');
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
    min-width: 8vw;
    min-height: 3vh;
    max-width: 320px;
    max-height: 120px;
    aspect-ratio: 4 / 2;
}

.app-name {
    border: none;
    padding: 0.5rem 1rem;
    margin-left: auto;
    font-size: 1.2rem;
        font-weight: bold;
}

/* Style for editing mode */
.prompt-box.editing {
    background-color: #fffbd6;
    border: 1px solid #ffd700;
    padding: 10px;
}
  
@media (max-width: 900px){
    .content-row {
        flex-direction: column;
    }
}