/* ===============================
   RESET
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

body {
    background: #8ecae6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

/* ===============================
   BACKGROUND LAYERS
================================ */
.layer {
    position: absolute;
    width: 700px;
    height: 400px;
    border-radius: 10px;
    transition: all 0.5s ease;
}

.layer-1 {
    background: #eaf7fd;
    transform: scale(1.2);
}

.layer-2 {
    background: #d6eff9;
    transform: scale(1.35);
}

.layer-3 {
    background: #bfe3f2;
    transform: scale(1.5);
}

/* ===============================
   MAIN CARD
================================ */
.table {
    background: white;
    border-radius: 10px;
    border: 1px solid #000;
    padding: 20px;
    width: 700px;
    height: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition:
        width 0.6s ease,
        height 0.6s ease,
        transform 0.6s ease;
    z-index: 10;
}

/* Headings */
h1 {
    font-size: 80px;
    font-family: Georgia, serif;
}

p {
    font-size: 18px;
}

/* ===============================
   HIDE ALL SCREENS
================================ */
.login-form,
.category-window,
.signup-choice,
.signup-form,
.slideshow-container {
    display: none;
}

/* ===============================
   LOGIN SCREEN
================================ */
.state-login .login-form {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.login-form input {
    width: 500px;
    margin: 10px auto;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #9dd1ff;
}

.login-form button {
    width: 500px;
    margin: 12px auto;
    padding: 14px;
    border-radius: 10px;
    border: 2px solid #0077ff;
    background: #e6f1ff;
    font-weight: 700;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #0077ff;
}

/* ===============================
   CATEGORY SCREEN
================================ */
.state-category .table {
    transform: scale(1.03);
}

.state-category .category-window {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.category-item {
    width: 180px;
    cursor: pointer;
}

.category-item img {
    width: 120px;
    height: 120px;
}

.category-item h3 {
    margin-top: 10px;
    font-size: 18px;
}

/* ===============================
   SIGNUP CHOICE SCREEN
================================ */
.state-signup-choice .table {
    transform: scale(1.05);
}

.state-signup-choice .signup-choice {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
    position: absolute;
    right: 90px;
}

.buttonsignup {
    width: 500px;
    padding: 14px;
    border-radius: 8px;
    border: 1.5px solid #9dd1ff;
    background: #f8fbff;
    font-weight: 600;
    cursor: pointer;
}

.buttonsignup:hover {
    background-color: #2196f3;
}

/* ===============================
   FINAL SIGNUP SCREEN
================================ */
.state-signup-final .table {
    width: 1000px;
    height: 620px;
    transform: scale(1.06);
}

/* Animate background layers */
.state-signup-final .layer-1 {
    transform: scale(1.65);
    height: 420px;
}

.state-signup-final .layer-2 {
    transform: scale(1.8);
    height: 420px;
}

.state-signup-final .layer-3 {
    transform: scale(2);
    height: 420px;
}

/* ===============================
   SLIDESHOW
================================ */
.state-signup-final .slideshow-container {
    display: block;
    position: absolute;
    left: 40px;
    top: 140px;
    width: 520px;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    background: #eff9ff;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
   SIGNUP FORM
================================ */
.state-signup-final .signup-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: absolute;

    right: 20px;
    top: 180px;
}

.signup-form input,
.signup-form select {
    width: 350px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #9dd1ff;
}

.create-btn {
    background: #6499cf;
    color: white;
    padding: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.create-btn:hover {
    background-color: #2196f3;
}

/* ===============================
   SLIDE CONTROLS
================================ */
.prev,
.next {
    position: absolute;
    top: 50%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    cursor: pointer;
    transform: translateY(-50%);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.account-row .create-link {
    color: red;
    cursor: pointer;
}

.category-window .category-item:hover {
    border: 1px solid #8ecae6;
    border-radius: 8px;

}