body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 20px;
    display: block;
    text-align: center;
}

/* Grunnleggende skjermstil */
.iphone-screen {
    width: 375px;
    height: 750px;
    margin: 20px auto;
    border: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    background-color: #f2f2f2;
    display: none;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.iphone-screen.active {
    display: flex;
}

.screen-header {
    text-align: center;
    font-size: 14px;
    color: #000;
    padding: 10px 0;
    font-weight: 500;
    background-color: transparent;
}

.content {
    flex-grow: 1;
    padding: 20px;
    padding-top: 0;
}

/* Knapper og interaktive elementer (den lysegrå boksen) */
button:not(.back-button), .input-title, .control-box, .track-bar { /* Lagt til .track-bar her */
    background-color: #c9c9c9;
    border: none;
    color: #000;
    text-align: center;
    border-radius: 0;
    font-weight: 500;
    cursor: pointer; /* Indikerer at de er klikkbare */
    transition: background-color 0.1s; /* Glattere effekt */
}

/* Gjør også .track-bar klikkbar og trykkbar, selv om det er en <div> */
.track-bar {
    cursor: pointer; 
}


/* *** NY KLIKKBAR EFFEKT FOR ALLE KNAPPER OG INTERAKTIVE BOKSER *** */

button:active:not(.back-button), 
.control-box:active,
.track-bar:active {
    background-color: #a3a3a3; /* Mørkere farge når trykket ned */
    transform: scale(0.99); /* Gir en subtil "trykket inn" følelse */
}

/* Spesifikk styling for input, da den ikke skal endre farge ved klikk, men ved fokus */
.input-title:focus {
    outline: 1px solid #333;
    background-color: #f0f0f0;
}

/* --- Navigasjonshjelper --- */
.back-button {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    background-color: transparent;
    border: 1px solid #999;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
}

.back-button:active {
    background-color: #e0e0e0;
}
/* -------------------------------------------------------- */


/* --- Skjerm 1 Stiler --- */

.screen-1 {
    background-color: #d6cfcf;
    color: #000;
    text-align: center;
    justify-content: space-between;
}

.screen-1-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    flex-grow: 1;
    padding: 40px 0 0 0;
}

.ubisoft-present {
    font-size: 14px;
    margin: 0;
    color: #333;
    opacity: 0.8;
}

.app-title {
    font-size: 40px;
    font-weight: 800;
    margin: 5px 0 15px 0;
    letter-spacing: -0.5px;
}

.doodle-placeholder {
    width: 120px;
    height: 100px;
    margin-bottom: 50px;
    background-color: transparent;
    border-radius: 0;
}

.main-button {
    width: 80%;
    padding: 30px 0;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-nav {
    display: flex;
    width: 80%;
    justify-content: space-between;
    margin-top: auto;
    margin-bottom: 20px;
}

.footer-button {
    width: 48%;
    padding: 20px 0;
    font-size: 14px;
    font-weight: normal;
}

.logo-text {
    font-size: 8px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* --- Skjerm 2 Stiler --- */

.screen-2 {
    background-color: #f2f2f2;
}

.screen-2-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.input-title {
    width: 100%;
    padding: 20px 0;
    margin-bottom: 15px;
    font-size: 20px;
    box-sizing: border-box;
    font-weight: normal;
}

.import-midi {
    width: 80%;
    padding: 40px 0;
    font-size: 20px;
    font-weight: normal;
    margin-top: 30px;
    margin-bottom: 50px;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.control-box {
    width: 50%;
    padding: 20px 0;
    flex-grow: 1;
    font-weight: normal;
}

.control-label {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.control-hint {
    font-size: 12px;
    color: #333;
    margin: 5px 0 0 0;
    opacity: 0.7;
}

.create-final {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    padding: 30px 0;
    font-size: 20px;
    font-weight: bold;
}

/* --- Skjerm 3 Stiler --- */

.screen-3 {
    background-color: #f2f2f2;
}

.screen-3-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.track-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

.instrument-label {
    font-size: 12px;
    color: #333;
    margin-right: 5px;
    width: 70px;
    text-align: left;
    padding: 10px 0;
    box-sizing: border-box;
}

.track-bar {
    flex-grow: 1;
    padding: 15px 10px;
    background-color: #f9f9f9;
    border-top: 1px solid #c9c9c9;
    border-bottom: 1px solid #c9c9c9;
    border-left: none;
    border-right: none;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
}
