/* 🌎 Reset Default Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
a {
    color: blue;        /* Default link color */
    text-decoration: none; /* Remove underline */
    font-weight: bold;
}


/* 🌐 Full Page Centered Container */
.container {
    width: 90%;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

/* 🖥️ Input Fields */
input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* 🎨 Buttons */
button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #0056b3;
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
}
#grad {
	background-color: black; /* For browsers that do not support gradients */
	background-image: linear-gradient(to right, black, blue);
}




.topnav {
  overflow: hidden;
  background-color: #333;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.active {
  background-color: #4CAF50;
  color: white;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

legend {
    background-color: #000;
    color: #fff;
    padding: 3px 6px;
}
#wwhite {
    color: white;
	font-size: 12px;
    word-break: break-word;

}
whitee {
    color: white;
	font-size: 12px;
    word-break: break-word;

}
.output {
    font: 1rem 'Fira Sans', sans-serif;
}

label {
    margin-top: 1rem;
    display: block;
    font-size: .8rem;
}

input:invalid + span:after {
    position: absolute;
    content: '✖';
    color: #f00;
    padding-left: 5px;
}

input:valid + span:after {
    position: absolute;
    content: '✓';
    color: #26b72b;
    padding-left: 5px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr; /* Two equal columns */
    gap: 10px; /* Space between items */
	align-content: center;
	place-items: center; /* Centers both horizontally & vertically */
}
/*
.grid img {
	width: 80%;
	height: auto;
	border-radius: 8px;
	place-items: center;  Centers both horizontally & vertically
}
*/
#drop-area {
		border: 2px dashed #007BFF;
		padding: 30px;
		width: 300px;
		margin: auto;
		cursor: pointer;
		background-color: #f9f9f9;
}
#drop-area.highlight {
	background-color: #e0f7fa;
}
#file-input {
	display: none;
}
#upload-status {
	margin-top: 10px;
	font-weight: bold;
}
#spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #ccc;
	border-top: 4px solid green;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	display: none;
	margin-top: 10px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.preview-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 300px; /* Set a fixed height */
    width: 100%; /* Set a fixed width */
    border: 2px dashed #ccc;
    overflow: hidden;
    position: relative;
}

#preview {
	    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Keeps the full image visible */
}

#progressBar {
	width: 100%;
	background: #ddd;
	height: 10px;
	display: none;
	margin-top: 10px;
}
#progress {
	height: 100%;
	width: 0%;
	background: green;
	transition: width 0.2s;
}

