/* ---------------- Font Faces ---------------- */
@font-face {
    font-family: "Wallsocket";
    src: url("../assets/fonts/Wallsocket-RegularUprightText.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Wallsocket";
    src: url("../assets/fonts/Wallsocket-MediumUprightText.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Wallsocket";
    src: url("../assets/fonts/Wallsocket-MediumItalicText.woff2") format("woff2");
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: "Chicken Rice";
    src: url("../assets/fonts/Chicken%20Rice.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Site background */
    background-color: #f5f5f5;
    background-image: url("../assets/images/wallpaper.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: Wallsocket, Arial, sans-serif;
}

.container {
    width: 907px;
    height: 522px;
    position: relative;
}

.card-bg {
    width: 900px;
    height: 500px;
    left: 0px;
    top: 0px;
    position: absolute;
    background: #E0EFE1;
    border-radius: 60px;
    border: 5px #442700 solid;
    box-sizing: border-box;
}

.photo-area {
    width: 300px;
    height: 300px;
    left: 41px;
    top: 116px;
    position: absolute;
    background: #E0EFE1;
    border: 1px #979797 solid;
    overflow: hidden;
    cursor: pointer;
}

.photo-upload {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotate(-1.5deg);
    transform-origin: center;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #979797;
    font-size: 16px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

input[type="text"], input[type="date"] {
    border: none;
    background: transparent;
    font-family: Wallsocket;
    font-weight: 400;
    font-size: 16px;
    outline: none;
    width: 280px;
    padding: 4px 2px;
    text-align: center;
}

/* Use Chicken Rice for the user-entered text in these two fields */
#nameInput,
#dobInput {
    font-family: "Chicken Rice", Wallsocket, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.1;
    padding-top: 4px;
    padding-bottom: 4px;
}

.signature-area {
    width: 412px;
    height: 80px;
    left: 391px;
    top: 350px;
    position: absolute;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.signature-canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.signature-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #979797;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.modal-canvas {
    border: 2px solid #442700;
    cursor: crosshair;
    display: block;
    margin-bottom: 15px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: Wallsocket;
    font-size: 14px;
    font-weight: 500;
}

.btn-done {
    background: #147200;
    color: white;
}

.btn-clear {
    background: #979797;
    color: white;
}

.btn-cancel {
    background: #442700;
    color: white;
}

.btn-download {
    background: #147200;
    color: white;
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 16px;
}

.download-container {
    text-align: center;
    margin-top: 20px;
}

.photo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.photo-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    min-width: 300px;
}

.photo-modal-content h3 {
    margin-top: 0;
    font-family: Wallsocket;
    text-align: center;
    margin-bottom: 20px;
}

.photo-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.minecraft-input-container {
    display: none;
    margin-top: 15px;
}

.minecraft-input-container input {
    width: 100%;
    padding: 10px;
    border: 2px solid #442700;
    border-radius: 5px;
    font-family: Wallsocket;
    font-size: 14px;
    box-sizing: border-box;
}

.minecraft-input-container button {
    width: 100%;
    margin-top: 10px;
}
