/*Documento de definición de estilos de Acrónimos en Medicina*/

html{
font-size: 100%;
} 

body{
font-size: 1.3rem;
font-family: Verdana;
text-align: center;
padding: 0;
margin: 0;
background-image:url('fondo fucsia.jpg');
}

#contenedor{
	width:98%;
	margin: auto;
	max-width: 77rem;
	text-align: center;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4);
  	transition: 0.3s;
}

#title{
	width:99%;
	overflow: visible;
	text-align: center;
	margin: 0 auto;
	clear: both;
}

#caja98{
	width:98%;
	margin: 0 auto;
	padding: 0 1%;
	text-align:center;
	clear: both;
	background-image:url('fondo fucsia.jpg');
}

#pie{
	font-size: 1.3rem;
	text-align: center;
	margin: auto; 	
	padding: 0;
	clear: both;
}

img { border: 0; }

img,
object,
embed 
{
max-width:100%;
}

/* SEARCH */

.search-acronym{
	text-align: center;	
	font-size: 1.5rem;
	color: #dd0000;
	background-color: #ffe4b5;
    	border:1px solid;
    	height: 50px;
    	width: 20rem;
    	border-radius: 80px;
}

/* FORM VALIDATION STYLES */

.form-group {
	margin: auto;
	text-align: center;
	max-width: 800px;
}

.form-group label {
	display: block;
	margin-bottom: 1rem;
	font-weight: 600;
	color: #2c3e50;
	text-shadow: 1px 1px 2px rgba(255, 204, 102, 0.3);
}

.form-group input[type="search"] {
	width: 100%;
	height: 40px;
	max-width: 400px;
	border: 2px solid #bdc3c7;
	background: linear-gradient(145deg, #ffffff, #f8f9fa);
	transition: all 0.3s ease;
	outline: none;
	text-align: center;
}

.form-group input[type="search"]:focus {
	border-color: #3498db;
	box-shadow: 
		inset 2px 2px 5px rgba(0,0,0,0.1),
		0 0 0 3px rgba(52, 152, 219, 0.2),
		2px 2px 15px rgba(52, 152, 219, 0.3); 
	transform: translateY(-1px);
}

.form-group input[type="search"]::placeholder {
font-size: 1.5rem;
	color: #7f8c8d;
	font-style: italic;
	opacity: 0.8;
}

.help-text {
	font-size: 0.95rem;
	color: #7f8c8d;
	margin-top: 0.75rem;
	font-style: italic;
	padding: 0.5rem 1rem;
	border-radius: 15px;
}


/* Error messages */
.error-message {
	color: #e74c3c;
	font-size: 1.1rem;
	font-weight: 600;
	margin-top: 1rem;
	text-align: center;
	background: linear-gradient(145deg, #fdf2f2, #fbeaea);
	padding: 0.75rem 1.5rem;
	border-radius: 20px;
	border: 2px solid #fadbd8;
	box-shadow: 2px 2px 8px rgba(231, 76, 60, 0.2);
	display: none;
	animation: shake 0.5s ease-in-out;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

.error-message:not(:empty) {
	display: block;
}

.error-message::before {
	content: "⚠️ ";
	margin-right: 0.5rem;
}

/* Focus indicators for accessibility */
input:focus, button:focus {
	outline: 3px solid #3498db;
	outline-offset: 2px;
}

/* Error states */
input[aria-invalid="true"] {
	border: 2px solid #e74c3c !important;
	background: linear-gradient(145deg, #fdf2f2, #fbeaea) !important;
	box-shadow: 
		inset 2px 2px 5px rgba(231, 76, 60, 0.2),
		0 0 0 3px rgba(231, 76, 60, 0.2) !important;
	animation: pulse-error 1s ease-in-out;
}

@keyframes pulse-error {
	0% { transform: scale(1); }
	50% { transform: scale(1.02); }
	100% { transform: scale(1); }
}

/* Success states */
input[aria-invalid="false"]:not(:placeholder-shown) {
	border: 2px solid #27ae60 !important;
	background: linear-gradient(145deg, #f8fff8, #eafaf1) !important;
	box-shadow: 
		inset 2px 2px 5px rgba(39, 174, 96, 0.1),
		0 0 0 3px rgba(39, 174, 96, 0.2);
}

/* Form container styling */
form[role="search"] {
	background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,249,250,0.9));
	padding: 1rem;
	border-radius: 20px;
	box-shadow: 
		0 10px 30px rgba(0,0,0,0.1),
		inset 0 1px 0 rgba(255,255,255,0.6);
	border: 1px solid rgba(255,255,255,0.3);
	backdrop-filter: blur(10px);
	margin: auto;
	max-width: 700px;
}

/* SEARCH RESULTS STYLES */

.acronym-result {
	margin-top: 0.25rem;
	text-align: left;
}

.search-results {
	background-image:url('fondo fucsia.jpg');
	padding: 0.5rem;
	margin: 1 rem auto;
	max-width: 90%;
}

.search-results h3 {
	color: #495057;
	text-align: center;
	margin-bottom: 1.5rem;
	font-size: 1.6rem;
	text-decoration: none;
	text-shadow: none;
}

.results-list {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.result-item {
	background-color: white;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 1rem;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	transition: box-shadow 0.2s ease;
}

.result-item:hover {
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.acronym-term {
	font-size: 1.4rem;
	font-weight: bold;
	color: #007bff;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
}

.acronym-definition {
	font-size: 1.1rem;
	color: #495057;
	line-height: 1.4;
}

.results-summary {
	text-align: center;
	padding: 1rem;
	background-color: #80BFFF;
	border-radius: 15px;
	color: #F4F4F4;
	font-size: 1.2rem;
}

.no-results {
	background-image:url('../fondos/fondo fucsia.jpg');
	padding: 0;
	text-align: center;
	margin: 1rem auto;
	max-width: 90%;
}

.no-results h3 {
	color: #FF3F34;
	margin-bottom: 1rem;
	text-decoration: none;
	text-shadow: none;
}

.no-results p {
	color: #856404;
	margin: 0.5rem 0;
}

/* Highlight matches */
mark {
	background-color: #fff3cd;
	color: #856404;
	padding: 2px 4px;
	border-radius: 3px;
	font-weight: bold;
}

/* Focus indicators */
input:focus, button:focus {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

/* Error states */
input[aria-invalid="true"] {
  border: 2px solid #d32f2f;
}








/* Help text */
.help-text {
  font-size: 1rem;
  color: #666;
  margin-top: 0.25rem;
}
