/* Center body vertically and horizontally */

@font-face {
    font-family: 'EssonnesDisplay-Regular';
    src: url('font/EssonnesDisplay-Regular.otf') format('truetype');
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: EssonnesDisplay-Regular, sans-serif;
    margin: 0;
    background-image: url('../background/landscape-bg.jpg'); /* Default (portrait fallback) */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    flex-direction: column;
}

h2 {
    font-size: 24px;
    color: #f8991da6;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px #000000;
}

/* .logo {
    width: 150px;
    height: 150px;
    background-image: url('../background/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 20px;
} */

form {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(236, 188, 129, 0.747);
    background-color: #d5cfc2bd;
    border-radius: 10px;
    box-sizing: border-box;
}

.form-field {
    margin-bottom: 20px;
    text-align: left;
}

label {
    font-size: 18px;
    color: #030303da;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    box-sizing: border-box;
    border: 1px solid #f5b400ec;
    border-radius: 5px;
    font-size: 16px;
    color: #0e0d0d;
    font-weight: bold;
}

input[type="submit"] {
    background-color: #cab497;
    color: #121213;
    font-weight: bold;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.error {
    color: #e0c6a4;
    font-size: 16px;
    font-weight: bold;
    display: block;
    text-align: left;
    margin-top: 5px;
}

.popup {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: fadeInOut 3s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

.image-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    align-items: center;
    justify-content: center;
}

.selectable-img {
    max-width: 400px;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    display: block;
}


.selectable-img:hover {
    transform: scale(1.05);
}

.selectable-img.selected {
    border-color: #ce1351;
    border-radius:5px solid #ce1351;
}


/* Portrait Mode Background (1080x1920) */
@media screen and (orientation: portrait) {
    body {
        background-image: url('../background/portrait-bg.jpg'); /* Replace with your portrait image */
    }
}

/* Landscape Mode Background (1920x1080) */
@media screen and (orientation: landscape) {
    body {
        background-image: url('../background/landscape-bg.jpg'); /* Replace with your landscape image */
    }
}

/* Responsive Design for Screens <= 480px */
@media (max-width: 480px) {
    form {
        padding: 15px;
        width: 100%;
    }
    /* .logo {
        width: 120px;
        height: 120px;
    } */
    input[type="text"],
    input[type="email"] {
        padding: 12px;
    }
    input[type="submit"] {
        width: 100%;
        padding: 12px 20px;
    }
    .error {
        font-size: 12px;
    }
    .selectable-img{
        max-width: 200px;
        max-height: 180px;
    }
}

/* Responsive Design for Screens 481px to 768px */
@media (max-width: 768px) {
    form {
        padding: 20px;
        width: 90%;
    }
    /* .logo {
        width: 130px;
        height: 130px;
    } */
    input[type="text"],
    input[type="email"] {
        padding: 12px;
    }
    input[type="submit"] {
        width: 100%;
        padding: 12px 20px;
    }
    .selectable-img{
        max-width: 200px;
        max-height: 180px;
    }
}

/* Responsive Design for Larger Screens >= 1024px */
@media (min-width: 1024px) {
    form {
        width: 50%;
    }
    /* .logo {
        width: 180px;
        height: 180px;
    } */
    input[type="text"],
    input[type="email"] {
        padding: 14px;
    }
    input[type="submit"] {
        padding: 14px 30px;
    }
    .selectable-img{
        max-width: 200px;
        max-height: 180px;
    }
}
