/* ------------------------------------------------------- */
/* --------------------- base styling -------------------- */
/* ------------------------------------------------------- */

body {
    font-family: Futura, sans-serif; /* sets the font style for the entire page */
    text-align: center; /* centers text horizontally */
    margin: 0; /* adds space at the top of the page */
}

#canvas {
    display: none;
}

/* ------------------------------------------------------- */
/* ----------------------- photobooth -------------------- */
/* ------------------------------------------------------- */

.photobooth {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    gap: 0;
}

.camera {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 90vw;
    aspect-ratio: 3 / 4;
    max-width: 600px;
}

#lens {
    border-radius: 50%;
    /* width: 5vw;
    height: 5vw; */
    width: clamp(3rem, 5vw, 5rem);
    height: clamp(3rem, 5vw, 5rem);
    cursor: pointer;
}

#video {
    transform: scaleX(-1);
    display: block;
    margin: 0;
    max-width: 100vw;
    height: auto;
    object-fit: cover;
}

#counter {
    position: absolute;
    top: 190px;
    right: 12px;
    font-size: 1rem;
    color: black;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10; /* ensures it stays above the video */
}

/* ------------------------------------------------------- */
/* ---------------------- photo strip -------------------- */
/* ------------------------------------------------------- */

.photoDetails {
    transform: scaleX(-1);
    width: 100%;
    aspect-ratio: 4 / 3; /* locks aspect ratio so it's always landscape, important for mobile rsponsive design*/
    height: auto;
    object-fit: cover;
    border: none;
}

#photos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    box-sizing: border-box; /* makes sure the padding is included in the width, not added */
    width: clamp(8rem, 18rem, 18.5rem); /* min 8rem, preferred 18rem, max 18.5rem */
    /* height: auto; */
    aspect-ratio: 3 / 8;
    background-color: black;
    padding: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
    flex-shrink: 0;
    border: 0.07rem solid black; /* thickness and color of the border */
}

/* ------------------------------------------------------- */
/* ---------------------- navigation --------------------- */
/* ------------------------------------------------------- */

/* .nextPageButton {
    font-size: 7vw;
    border: none;
    cursor: pointer;
    background-color: transparent;
} */

/* .prevPageButton {
    position: fixed;
    bottom: 1vw;
    left: 1vw;
    font-size: 7vw;
    background-color: transparent;
    border: none;
    cursor: pointer;
} */

#nextPageButton {
    display: block;
    position: fixed;
    font-size: 7vw;
    border: none;
    cursor: pointer;
    background-color: transparent;
    bottom: 1vw;
    right: 2vw;
    font-size: 7vw;
}

#prevPageButton {
    display: block;
    position: fixed;
    font-size: 7vw;
    border: none;
    cursor: pointer;
    background-color: transparent;
    bottom: 1vw;
    left: 2vw;
    font-size: 7vw;
}

/* ------------------------------------------------------- */
/* ----------- frame & filter editor page layout---------- */
/* ------------------------------------------------------- */

.editor {
    position: relative;
}

.editorContent {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center;
    gap: 10vw;
    width: 100%;
}

.photoSide {
    display: flex;
    max-width: 40%;
    /* margin: 5vw; */
    /* margin-left: 3vw;
    margin-right: 3vw;
    margin-bottom: 3vw; */
    margin: 3vw;
    justify-content: center;
}

.editorSide {
    display: grid;
    max-width: 70%;
    align-items: start;
    margin-right: 10vw;
    justify-content: center;
}

/* ------------------------------------------------------- */
/* ------------------ frame page buttons ----------------- */
/* ------------------------------------------------------- */

#palette {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5vw;
    justify-items: center;
}

.frame-button {
    border-radius: 50%;
    background-color: data-color;
    /* width: 12vw;
    height: 12vw; */
    cursor: pointer;
    /* border: 0.3vw solid black; */
    
    width: clamp(4rem, 8vw, 12rem); /* min 4rem, preferred 8vw, max 12rem */
    height: clamp(4rem, 8vw, 12rem);
    border: 0.3rem solid black;
}

/* ------------------------------------------------------- */
/* ------------------ filter page buttons ----------------- */
/* ------------------------------------------------------- */


.filter-button {
    width: clamp(4rem, 8vw, 12rem);
    height: clamp(4rem, 8vw, 12rem);
    border: 0.3rem solid black;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.5vw;
    cursor: pointer;
    color: black;
  }
  
  /* Individual filter covers */
  .filter-original {
    background-color: #cceeff;
  }
  
  .filter-sepia {
    background-color: #fff5cc;
  }
  
  .filter-contrast {
    background: linear-gradient(135deg, #ffffff, #000000, #00ff00);
    color: white;
  }
  
  .filter-invert {
    background: linear-gradient(135deg, #c6f1ff, #4a90e2, #001f3f);
    color: white;
  }
  
  .filter-hue {
    background: linear-gradient(135deg, #ff00ff, #00ffff, #ffff00, #ff0000);
  }
  
  .filter-warm {
    background: linear-gradient(to bottom right, #ffc1a1, #ffecb3);
  }
  
  .filter-mono {
    background: linear-gradient(to bottom right, white, #555555);
  }

  .filter-mono2 {
    background: linear-gradient(to bottom right, white, black);
  }

  .filter-mono3 {
    background: linear-gradient(to bottom right, white, #fff5cc, black);
  }
  

/* ------------------------------------------------------- */
/* ---------------------- save page ---------------------- */
/* ------------------------------------------------------- */
#savePage {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2vw;
    gap: 1vw;
}

#downloadButton {
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5vw;
    font-weight: bold;
    background-color: #FFDADA;
    width: 15rem;
    height: 4rem;
}

/* ------------------------------------------------------- */
/* ------------------------ titles ----------------------- */
/* ------------------------------------------------------- */

.desktopTitle {
    display: block;
    margin-top: 5vw;
    margin-bottom: 5vw;
    font-size: vw;
}

.mobileTitle {
    display: none;
}

/* ------------------------------------------------------- */
/* ------------------------------------------------------- */
/* ------------------------------------------------------- */
/* -------------- mobile device css styling -------------- */
/* ------------------------------------------------------- */
/* ------------------------------------------------------- */
/* ------------------------------------------------------- */

@media (max-width: 425px) {

/* ------------------------------------------------------- */
/* ----------------------- photobooth -------------------- */
/* ------------------------------------------------------- */
    .photobooth {
        margin-right: 1rem;
        margin-left: 1rem;
    }

    #counter {
        font-size: 0.85rem;
        top: 30vw;
        right: 3vw;
    }

/* ------------------------------------------------------- */
/* ---------------------- photo strip -------------------- */
/* ------------------------------------------------------- */

#photos {
    max-width: 100vw;
    /* width: 10rem; */
    width: clamp(10rem, 16vw, 20rem); /* min 4rem, preferred 8vw, max 12rem */
}

/* ------------------------------------------------------- */
/* ----------- frame & filter editor page layout---------- */
/* ------------------------------------------------------- */

    .photoSide {
        width: 100vw;
        margin: 0;
        /* justify-content: flex-end; */
        flex-direction: column;
    }

    .editor {
        display: flex;
        /* margin-left: 2vw; */
    }

    .editorSide {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 20%;
        margin-right: 0;
        margin-left: 10vw;
        margin-top: 15vw;
    }

    #palette {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 1vw;
    }

    #mobilePalette {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .frame-button {
        display: flex;
        background-color: data-color;
        width: 3.5rem;
        height: 3.5rem;
        border: 0.2rem solid black;
    }

    .filter-button {
        border-radius: 8px;
        /* background-color: blue; */
        /* width: 12vw;
        height: 12vw; */
        cursor: pointer;
        /* border: 0.3vw solid black; */
        width: clamp(4rem, 8vw, 12rem); /* min 4rem, preferred 8vw, max 12rem */
        height: clamp(4rem, 8vw, 12rem);
        border: 0.3rem solid black;
        font-size: 2.75vw;
        font-weight: bold;
    }

/* ------------------------------------------------------- */
/* ---------------------- save page ---------------------- */
/* ------------------------------------------------------- */

#savePage {
    margin: 20vw;
}

#downloadButton {
    font-size: 5vw;
    width: 10rem;
    height: 4rem;
}

/* ------------------------------------------------------- */
/* ------------------------ titles ----------------------- */
/* ------------------------------------------------------- */

    .desktopTitle {
        display: none;
    }

    .mobileTitle {
        display: block;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

/* ------------------------------------------------------- */
/* ---------------------- navigation --------------------- */
/* ------------------------------------------------------- */

    #nextPageButton {
        font-size: 4rem;
    }

    #prevPageButton {
        font-size: 4rem;
    }
}