
/* Rest of your existing styles */
/* Farsi Font */
body, input, textarea, button {
    font-family: 'Vazir', Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 600px;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

h1, h2 {
    text-align: center;
    color: #1a237e;
}

/* Home page specific styles */
.home-container {
    text-align: center;
}

.home-header {
    margin-bottom: 2rem;
}

.home-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #1a237e;
}

.home-header p {
    color: #555;
    font-size: 1.1rem;
}

.home-nav {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: #3f51b5;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.2s;
    width: 45%;
}

.nav-button:hover {
    background-color: #303f9f;
    transform: translateY(-3px);
}

.nav-button i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.home-main {
    margin-bottom: 2rem;
}

.home-main h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #1a237e;
}

.home-main p {
    color: #555;
}

.home-footer {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.social-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #3f51b5;
    text-decoration: none;
}

.social-link:hover {
    text-decoration: underline;
}

/* Existing styles for forms */
.address-form-container {
    display: flex;
    flex-direction: column;
}

#addressForm, #result {
    width: 100%;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input[type="text"], textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

textarea#fullUSAddress {
    resize: vertical;
    min-height: 100px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #3f51b5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #303f9f;
}

.hidden {
    display: none;
}

#result {
    direction: ltr;
    margin-top: 2rem;
}

#result .form-group:last-child {
    margin-top: 2rem;
}

#result .form-group:last-child label {
    font-size: 1.1em;
    font-weight: bold;
}

/* Date converter specific styles */
.date-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.date-inputs input[type="number"],
.date-inputs select {
    width: 32%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
}

.date-inputs select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 5%;
    background-position-y: 50%;
}

/* Ensure the placeholder text color is consistent */
.date-inputs input::placeholder,
.date-inputs select:invalid {
    color: #757575;
}

/* Style for Firefox */
.date-inputs select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}

/* Hide default arrows in number inputs */
.date-inputs input[type="number"]::-webkit-inner-spin-button, 
.date-inputs input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0;
}

.date-inputs input[type="number"] {
    -moz-appearance: textfield;
}

.navigation {
    margin-top: 2rem;
    text-align: center;
}

.navigation a {
    color: #3f51b5;
    text-decoration: none;
    margin: 0 0.5rem;
}

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

/* Add to your existing CSS file */

.image-checker-container {
    max-width: 600px;
    margin: 0 auto;
}

#imageUpload {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#checkResults {
    list-style-type: none;
    padding: 0;
}

#checkResults li {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

#checkResults li.pass {
    background-color: #d4edda;
    color: #155724;
}

#checkResults li.fail {
    background-color: #f8d7da;
    color: #721c24;
}

#previewImage {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px
}

/* Your existing styles remain here */
/* Image checker specific styles */
.image-checker-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.crop-container {
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.cropper-wrapper {
    max-width: 100%;
    max-height: 70vh; /* Limit height to 70% of viewport height */
    margin-bottom: 20px;
}

#cropImage {
    max-width: 100%;
    display: block;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.button-container button {
    padding: 10px 20px;
    font-size: 16px;
    width: auto; /* Override the 100% width from general button styles */
}

#previewImage {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Cropper specific styles */
.cropper-container {
    max-width: 100% !important;
    max-height: 70vh !important;
}

.cropper-wrap-box,
.cropper-canvas,
.cropper-drag-box,
.cropper-crop-box,
.cropper-modal {
    max-width: 100% !important;
    max-height: 70vh !important;
}

.cropper-view-box,
.cropper-face {
    border-radius: 0;
}

.cropper-view-box {
    outline: 1px solid #39f;
    outline-color: rgba(51, 153, 255, 0.75);
}

.cropper-dashed {
    border: 0 dashed #eee;
    border-color: rgba(255, 255, 255, 0.5);
}

.cropper-line {
    background-color: #39f;
    background-color: rgba(51, 153, 255, 0.5);
}

.cropper-point {
    width: 10px;
    height: 10px;
    background-color: #39f;
    opacity: 0.75;
}

/* Check results styles */
#checkResults {
    list-style-type: none;
    padding: 0;
}

#checkResults li {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

#checkResults li.pass {
    background-color: #d4edda;
    color: #155724;
}

#checkResults li.fail {
    background-color: #f8d7da;
    color: #721c24;
}

/* Media queries for responsiveness */
@media (max-width: 600px) {
    .cropper-wrapper,
    .cropper-container,
    .cropper-wrap-box,
    .cropper-canvas,
    .cropper-drag-box,
    .cropper-crop-box,
    .cropper-modal {
        max-height: 50vh !important;
    }

    .button-container {
        flex-direction: column;
    }

    .button-container button {
        width: 100%;
        margin-bottom: 10px;
    }
}

.conversion-tip {
    margin-top: 10px;
    font-size: 0.9em;
}

.conversion-link {
    color: #007bff;
    text-decoration: none;
}

.conversion-link:hover {
    text-decoration: underline;
}

.disclaimer {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
}

.disclaimer h3 {
    color: #dc3545;
    margin-bottom: 10px;
}

.disclaimer ul {
    padding-right: 20px;
}

.disclaimer li {
    margin-bottom: 5px;
}
.copyright-notice {
    font-weight: bold;
    color: #dc3545;
    margin-top: 10px;
    padding: 10px;
    border: 2px solid #dc3545;
    border-radius: 5px;
}