@font-face {
    font-family: 'dinbold';
    src: url('../fonts/DINNextLTArabic-Bold-4.woff2') format('woff2'),
        url('../fonts/DINNextLTArabic-Bold-4.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #B7A467;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    background-color: #B7A467;
}

h1, h2 {
    color: #333;
}

h1.page_title{
    font-family: 'dinbold';
    padding-left: 60px;
    background: url('../images/icon_title.png') no-repeat 0 50%;
    background-size: 50px;
    text-transform: uppercase;
    font-size: 26px;

}
h2 {
    font-family: 'dinbold';
    font-size: 22px;
    color: #fff;
    margin-top: 0;
}
.image_frame_section{
    background: #bcb9b3;
    padding: 20px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.editor-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.frames {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.frame-option {
    cursor: pointer;
    text-align: center;
    border: 2px solid #fff;
    transition: all 0.3s;
}

.frame-option:hover, .frame-option.active {
    border-color: #000;
}

.image_frame_section img {
    width: 150px;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
}
.title_frame_section{
    height: 55px;
    justify-content: center;
    align-items: center;
    display: flex
;
}
.title_frame_section img {
    width: 100px;
    height: auto;
}

.upload-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-preview-container {
    width: 100%;
    max-width: 500px;
}

.cropper-container {
    width: 100%;
    max-height: 500px;
    height:auto;
}

#image-preview {
    max-width: 100%;
    max-height: 500px;
}

#crop-button {
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 19px;
    align-self: flex-start;
    font-family: 'dinbold';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 175px;
    height: 40px;
    border-radius: 0;
    line-height: 2;
}

#crop-button:disabled {
    background-color: #bcb9b3;
    cursor: not-allowed;
}

.result-section {
    margin-top: 20px;
}
h2{
    text-align:left;
}
#final-image-container {
    width: 510px;
    height: auto;
    border: 1px solid #ddd;
    overflow: hidden;
    padding:2px;
    max-width:100%;
}

#final-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

#download-button {
    margin-top: 20px;
    padding: 10px 20px;
    text-decoration: none;
    cursor: pointer;
    background-color: #000;
    color: white;
    font-family: 'dinbold';
    width: 155px;
    font-size: 18px;
    height: 30px;
    text-align: center;
    justify-content: center;
    display: flex;
    line-height: 2;
    align-items: center;
    border-radius: 0;
}

.when_cropping {
    display: none;
    position: absolute;
    top: 0;
    height: 100%;
    align-items: center;
    background: transparent;
    justify-content: center;
    width: 1200px;
    top: 24%;
    text-align: center;
    max-width: 100%;
    height: 723px;
}
.wait{
    font-size: 18px;
    text-align: center;
}

#loading_gif {
    width: 220px;
    margin-bottom: 30px;
}
input[type="file"] {
    display: none;
  }
  
  .custom-file-upload {
    cursor: pointer;
    background-color: #000;
    color: white;
    font-family: 'dinbold';
    width: 125px;
    font-size: 13px;
    height: 30px;
    text-align: center;
    justify-content: center;
    display: flex;
    line-height: 13px;
    align-items: center;
  }
@media only screen and (max-width: 600px) {
    h1.page_title{
      font-size: 22px;
      background-size: 38px;
      padding-left: 45px;
    }
    h1 {
        font-size: 20px;
      }
      .frames{display: block;}
      .frame-option {
        width: 250px;
        margin: auto;
        margin-bottom: 15px;
    }
    
    #image-preview {
        max-height: 450px;
    }
}