/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}



body {
  font-family: bdf, sans-serif;
  line-height: 1.6;
  padding: 20px;
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  padding: 0;
}

/* Header styles */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.logo {
  flex-shrink: 0;
  margin: 0 auto;
}

.logo img {
  display: block;
  max-width: 200px;
  height: auto;
}

h1 {
  margin: 0;
  font-size: 2.5rem;
}

/* Disclaimer styles */

.disclaimers{
  max-width: 70%;
  display: block;
  margin: auto;
  padding-bottom: 20px;
}

.disclaimer {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  text-align: center;
  padding: 1rem;
  background-color: #e2d4ed;
}

.disclaimer_title{
  display: flex;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.disclaimer_noti{
  margin-top: 60px;
}
/* Content wrapper */
.content-wrapper {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  justify-content: space-between;
  margin-top: 30px;
}

.preview-image {
  flex: 1;
  position: relative;
  max-width: 400px;
}

.preview-image img {
  width: 100%;
  height: auto;
}

.preview-box {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  z-index: 1;
}

/* Controls section */
.controls-section {
  flex: 1;
  max-width: 500px;
}

.input-section {
  margin-bottom: 2rem;
}

#textInput {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Font selection */
.font-selection {
  margin-bottom: 2rem;
}

.font-selection p {
  margin-bottom: 1rem;
  
}

.font-buttons {
  display: flex;
  
  gap: 0.5rem;
  margin-top: 1rem;
}

.font-btn {
  
  border: 1px solid #333;
  background: white;
  cursor: pointer;
  border-radius: 50%;
  min-width: 40px;
  text-align: center;
}

.font-btn.active {
  background: #333;
  color: white;
}
#B10{
  font-size: 5px;
}
/* Color selection */
.color-selection {
  margin-top: 2rem;
}

.color-selection p {
  margin-bottom: 1rem;
  
}

.color-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  
}

.color-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  border-radius: 50%;
  cursor: pointer;
}

/* Font preview grid */
.font-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.font-preview-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
  padding-bottom: 2rem;
  background: #fff;
  border: 1px solid #000;
  min-height: 250px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  position: relative;
}

.font-name-label {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0;
  background-color: #f0f0f0;
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.font-preview-item:hover {
  transform: scale(1.05);
}

.preview-text {
  margin-top: 80px;
  font-size: 2.5rem;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.buy-now-btn {
  margin-top: auto;
  margin-bottom: 0.5rem;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.buy-now-btn:hover {
  background: #555;
}

/* Footer styles */

footer {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 1.5rem 0;
  background-color: #d5f0eb;
  border-top: 1px solid #eee;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
}

.social-icon {
  color: #333;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: #666;
}

.contact-info a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #666;
}

.copyright {
  color: #666;
  font-size: 0.9rem;
}

/* Mobile styles */
@media screen and (max-width: 480px) {
  .content-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .preview-image {
    margin-bottom: 2rem;
    width: 100%;
  }

  .controls-section {
    order: -1;
    width: 100%;
  }

  .font-preview-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .logo img {
    max-width: 150px;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

#previewText{

  padding-bottom: 180px;
}


@media screen and (max-width: 480px) {
  .disclaimers {
    max-width: 100%;
    display: block;
    margin: auto;
    padding-bottom: 20px;
  }
}



@media screen and (max-width: 480px) {
  body {
    padding: 10px;
    font-size: 14px;
  }

  .container {
    padding: 0 15px;
  }

  .content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .preview-image {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .preview-box {
    font-size: 1.5rem;
  }

  .controls-section {
    width: 100%;
    max-width: 100%;
  }

  .font-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .font-btn {
    margin: 0.25rem;
  }

  .color-buttons {
    justify-content: center;
  }

  .font-preview-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 15px;
  }

  .font-preview-item {
    min-height: 200px;
  }

  .preview-text {
    font-size: 2rem;
    margin-top: 50px;
  }

  .disclaimers {
    max-width: 100%;
    padding: 10px;
    font-size: 0.9rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1rem 15px;
  }

  .social-icons {
    margin: 0.5rem 0;
  }

  /* Adjust font sizes for mobile */
  .font_2, .font_3, .font_4, .font_5, 
  .font_6, .font_7, .font_8, .font_9 {
    font-size: 3rem;
  }
}

@media screen and (max-width: 480px) {
  .preview-box {
    font-size: 1.2rem;
  }

  .font-btn {
    padding: 5px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
  }

  .color-btn {
    width: 35px;
    height: 35px;
  }

  .preview-text {
    font-size: 1.8rem;
  }
}



@font-face {
  font-family: Amalfi;
  src: url("../font/Amalfi.ttf");
}

@font-face {
  font-family: Autumn;
  src: url("../font/Autumn.ttf");
}

@font-face {
  font-family: Bounderas;
  src: url("../font/Bounderas.ttf");
}

@font-face {
  font-family: Challista;
  src: url("../font/Challista.otf");
}

@font-face {
  font-family: Gabelisa;
  src: url("../font/Gabelisa.otf");
}

@font-face {
  font-family: GreatVibes;
  src: url("../font/GreatVibes.ttf");
}

@font-face {
  font-family: Madina;
  src: url("../font/Madina.ttf");
}

@font-face {
  font-family: Magnolia;
  src: url("../font/Magnolia.otf");
}

@font-face {
  font-family: Melika;
  src: url("../font/Melika.ttf");
}

@font-face {
  font-family: Babybohoscript;
  src: url("../font/Babybohoscript.ttf");
}

@font-face {
  font-family: bdf;
  src: url("../font/bdf.otf");
}

.font_1 {

  font-family: Amalfi;
}

.font_2 {
  font-family: Autumn;
  font-size: 3rem;
}

.font_3 {
  font-family: Bounderas;
  font-size: 5rem;
}

.font_4 {
  font-family: Challista;
    font-size: 5rem;
}


.font_5 {
  font-family: Gabelisa;
  font-size: 5rem;
}

.font_6 {
  font-family: GreatVibes;
  font-size: 4rem;
}

.font_7 {
  font-family: Madina;
  font-size: 4rem;
}

.font_8 {
  font-family: Magnolia;
  font-size: 3.5rem;
}

.font_9 {
  font-family: Melika;
  font-size: 4rem;
}

.font_10 {
  font-family: Babybohoscript;
  font-size: 1.2rem;
}