/* =====================================================
   MAIN
===================================================== */
.sub-heading{
  color: #F62440;
  text-align: center;
  font-size: 30px;

  padding: 12px;
}
.sub-heading p{
  color: #FF0052;
  font-size: 30px;
}

#main {
  padding: 30px;
  margin-bottom: 30px;
}


.main-container {
  display: grid;

  grid-template-columns: 1fr 250px;

  gap: 10px;

  max-width: 1200px;

  margin: 0 auto;
}


/* =====================================================
   LEFT SIDE
===================================================== */

.file-container {
  height: 75vh;

  box-sizing: border-box;

  background-color: white;

  border: 2px dotted red;

  display: flex;

  flex-direction: column;

  justify-content: flex-end;

  align-items: center;

  gap: 25px;

  padding: 20px;
}


/* =====================================================
   AD
===================================================== */

.ad-container {
  width: 90%;

  max-width: 600px;

  height: 100px;

  background-color: #aaa;

  display: flex;

  justify-content: center;

  align-items: center;

  color: black;

  font-family: Arial, Helvetica, sans-serif;

  font-size: 28px;

  font-weight: bold;
}


/* =====================================================
   BUTTONS
===================================================== */

.button-container {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 80px;

  margin-bottom: 5px;
}


/* Hide real file input */

.hidden-input {
  display: none;
}


/* Upload */

.upload-btn {
  background-color: #499A13;

  color: white;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;

  font-weight: bold;
  

  border: none;

  border-radius: 5px;

  padding: 12px 10px;

  cursor: pointer;
}
.upload-btn:active{
  opacity: 0.5;
}


/* Create PDF */

.convert-btn {
  background-color: #F62440;

  color: white;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: bold;
  

  border: none;

  border-radius: 5px;

  padding: 12px 10px;

  cursor: pointer;
}

.convert-btn:active {
  opacity: 0.5;
}


/* =====================================================
   RIGHT SIDE / PREVIEW
===================================================== */

.preview-section {
  background-color: white;

  border: 2px solid black;

  height: 75vh;

  display: flex;

  flex-direction: column;

  overflow: hidden;
}


/* Preview title */

.preview-section h2 {
  color: white;

  background-color: black;

  text-align: center;

  margin: 0;

  padding: 15px 10px;

  font-family: Arial, Helvetica, sans-serif;

  flex-shrink: 0;
}


/* Preview images area */

#preview-container {
  padding: 10px;

  overflow-y: auto;

  overflow-x: hidden;

  flex: 1;

  min-height: 0;
}


/* Preview images */

#preview-container img,
.preview-image {
  display: block;

  width: 100%;

  height: auto;

  margin-bottom: 10px;
}

footer{
  background-color: black;
  padding: 10px;
}
.footer-text{
  text-align: center;
  font-size: 15px;
}


/* =====================================================
   MOBILE DESIGN
===================================================== */

@media (max-width: 600px) {

  #main {
    padding: 10px 0;
  }


  /* Main area fills the available device height */

  .main-container {
    width: 92%;
    max-width: 400px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    /*
      Available viewport height minus
      header + main padding
    */
    min-height: calc(100dvh - 66px);

    gap: 10px;
  }


  /* ===================================================
     PREVIEW
  =================================================== */

  .preview-section {

    /*
      Automatically takes all remaining
      screen space
    */
    flex: 1;

    min-height: 0;

    width: 100%;

    background-color: white;

    border: 2px solid black;

    display: flex;
    flex-direction: column;

    overflow: hidden;
  }


  /* Preview title */

  .preview-section h2 {

    margin: 0;

    padding: 8px;

    background-color: black;

    color: white;

    text-align: center;

    font-size: 16px;

    flex-shrink: 0;
  }


  /* Only images scroll */

  #preview-container {

    flex: 1;

    min-height: 0;

    padding: 8px;

    overflow-y: auto;
    overflow-x: hidden;
  }


  #preview-container img,
  .preview-image {

    width: 100%;

    height: auto;

    display: block;

    margin-bottom: 8px;
  }


  /* ===================================================
     AD + BUTTON AREA
  =================================================== */

  .file-container {

    width: 100%;

    height: auto;

    min-height: 190px;

    box-sizing: border-box;

    padding: 15px 10px;

    background-color: white;

    border: 2px dotted red;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;
  }


  /* ===================================================
     AD
  =================================================== */

  .ad-container {

    width: 90%;

    height: 70px;

    max-width: none;

    background-color: #aaa;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 24px;
  }


  /* ===================================================
     BUTTONS
  =================================================== */

  .button-container {

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    margin: 0;
  }


  .upload-btn,
  .convert-btn {

    padding: 9px 14px;

    font-size: 14px;
  }
  .footer-text{
    font-size: 12px;
  }

  .sub-heading{
    color: #F62440;
    text-align: center;
    font-size: 16px;
    font-weight: bold;

    padding: 12px;
  }
  .sub-heading p{
    color: #FF0052;
    font-size: 12px;
  }

}