/* General Styles */
body {
    background-color: black;
    color: white;
    font-family: 'Helvetica', sans-serif;
}

/* Grid Styles */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: auto;
    overflow-y: auto;
    max-height: 700px;
}

.kilo-flyers-template {
    position: relative;
    overflow: hidden;
    height: 160px;
}

.kilo-flyers-template img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
}

.kilo-flyers-template img.background,
.kilo-flyers-template img.foreground {
    width: 100%;
    height: 100%;
}

.kilo-flyers-template img.model {
    transform: scale(2);
    transform-origin: center;
    padding-top: 50%;
}

/* Preview Styles */
.kilo-flyers-template-preview {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 500px;
    overflow: hidden;
    margin: auto;
    border-radius: 10px;
}

.preview .preview-background,
.preview .preview-foreground {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.preview .preview-portrait {
    width: auto;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 40%;
    left: 50%;
    transform-origin: center;
    transform: translate(-25%, -0%);
    scale: 2;
}

/* Updates Section */
.updates-section {
    margin: 20px auto;
    max-width: 400px;
    text-align: left;
    font-size: 16px;
    padding: 10px;
    max-height: 20px;
}

/* Button Styles */
.button-section {
    display: flex;
    margin: 20px auto;
    padding: 10px;
    max-width: 420px;
    width: 100%;
    align-items: center;
}



.button-section-center {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.button-section-page2 {
    display: none;
}

/* Form Styles */
.form {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-inputs {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

#textInput {
    flex-grow: 1;
    padding: 10px;
    background-color: black; /* Changed to black */
    border: 1px solid white;
    color: white;
    font-size: 16px;
    border-radius: 50px;
    min-height: 30px;
}

#attachmentButton {
    cursor: pointer;
}


/* Shared button style */
.shared-button-style {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    cursor: pointer;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }
  
  .shared-button-style:hover {
    background-color: black; /* Changed to black */
  }

  .shared-button-style:active {
    background-color: white; /* Add white background on click */
    color: black; /* Change text color to black on click */
  }

  .text-button-style {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    cursor: pointer;
    border-radius: 50px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding-left: 20px;
    padding-right:20px;
  }
