@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans&display=swap');

/* Reset de estilos */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Encabezado */
header {
    background-color: #4CAF50;
    padding: 20px 0;
}

h1, h2, h3 {
    color: #333;
    font-family: 'Josefin Sans';
}

.color-navbar {
    /* background-color: #6feca5 !important; */
    background-color: #83fab3 !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Ajusta la sombra según tus preferencias */
}


.color-toggler{
    background-color: #333;
    margin-left: 15px;
}

/* Estilos para el formulario de búsqueda */
.form-inline {
    margin-top: 20px;
}

.input-group {
    width: 100%;
    margin-left: 250px;
    padding-right: 500px;
}

#search-button{
    border: 2px solid #4CAF50;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;

}

.btn-primary {
    padding: 15px;
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.2em;
}

.btn-absolute{
    position: absolute !important;
    margin-left: 47.6% !important;
    height: 62px !important;
    padding-right: 40px;
}

/* Estilos para enlaces */
a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Estilos para secciones */
.section {
    margin-bottom: 40px;
}

/* Marcador de posición */
.placeholder-style {
    color: #999;
    font-style: italic;
}

/* Estilos para el formulario de búsqueda */
#search-form {
    text-align: center;
    overflow: hidden;
}

.btn-secondary {
    background-color: #ddd;
    border-color: #ddd;
    color: #333;
    border-radius: 20px;
}

.btn-secondary:hover {
    background-color: #ccc;
    border-color: #ccc;
    color: #333;
}

.vino{
    width: 90px;
    height: 90px;
    cursor: pointer;
    position: absolute;
    top: 90px;
    right: 18%;
    transition: box-shadow 0.3s;
    border-radius: 100px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    background-color: #ffb6b6;

}

.vino:hover{
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Estilos para las imágenes de los botones */
.site-image {
    max-width: 25px; /* Ajusta el tamaño según tus necesidades */
    max-height: 25px;
    margin-right: 5px; /* Ajusta el margen según tus necesidades */
    border-radius: 1rem;
}

.result-button{
    margin: 5px !important;
}

/* Estilos para los botones clicados */
.result-button.clicked {
    background-color: #8a2be2; /* Cambia el color lila a tu preferencia */
    color: #fff;
}

/* Estilos para los resultados de búsqueda */
#search-results {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    border: 2px solid #4CAF50;
    border-radius: 20px;
    background-color: #fff;
    position: relative;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.5s ease-in-out;
    visibility: hidden;
  }

  #no_encontraste_producto{
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease-in-out;
    visibility: hidden;
  }

  /* Muestra y anima la busqueda de resultados al clickcar el boton buscar */
  #no_encontraste_producto.fade-in{
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  
  /* Muestra y anima la busqueda de resultados al clickcar el boton buscar */
  #search-results.fade-in{
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
    h1 {
        font-size: 30px;
        margin-left: -60px;
    }

    .color-toggler{
        background-color: #333;
        margin-left: 0px;
    }

    .vino{
        width: 55px;
        height: 55px;
        cursor: pointer;
        position: absolute;
        top: 112px;
        right: 9%;
    }

    .input-group {
        width: 100%;
        margin-left: 10px !important;
        padding-right: 10px !important;
    }

    .btn-absolute{
        position: relative !important;
        margin-top: 30px;
        margin-left: 38% !important;
        height: 62px !important;
        border-radius: 1rem !important;
        padding-right: 20px;
    }

     .btn-secondary {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Media query para tablets */
@media (max-width: 1024px) {
    
    .btn-secondary {
        width: 100%;
        margin-bottom: 10px;
    }
    /* Otros estilos para tablets con ancho de hasta 1024px */

    .input-group {
        width: 100%;
        margin-left: 200px;
        padding-right: 400px;
    }
}