/* Body and container styles */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;

  background-image: url('../images/background.png') !important; 
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
}



/* Card styles */


.card h2 {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
  color: #007bff;
}

/* Form group styles */
.form-group label {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #007bff;
  outline: none;
}



/* Button styles */
button.btn {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

button.btn:hover {
  background-color: #0056b3;
}

/* Frame card styles */
.frame_card {
  width: 100%;
  margin: 30px auto;
  padding: 28px;
  background-color: #fafafa;
  border: 1px solid #ccc;
  border-radius: 10px;
  text-align: center;
}

.frame_card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.frame_card .twibbon {
  width: 100%;
  height: 450px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 10px;
}

img#twibbon {
  z-index: 1;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

img#photo {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame_card a {
  display: block;
  margin-top: 20px;
  color: #007bff;
  text-decoration: none;
}

.frame_card a:hover {
  text-decoration: underline;
}

#text_preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%; /* Ensure the container fills the height */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 10px; /* Optional: add padding to give space around the content */
}

.twibbon_preview {
    position: relative;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;    /* Center vertically */
    width: 100%;            /* Ensure the container takes the full width */
    height: 100%;           /* Ensure the container takes the full height */
    overflow: hidden;       /* Hide any overflow */
}

.twibbon_preview img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;    /* Ensure the image scales correctly */
    box-shadow: 0 0 20px 20px rgba(255, 255, 255, 1); /* Optional: For a shadow effect */
}