body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}
.home-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 85vh;
}

section.image-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);


}
.alphabet-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.alphabet-bar a {
    margin: 2px;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
}
.alphabet-bar a:hover {
    background-color: #00B4CC;
}
.search-bar {
    width: 100%;
    position: relative;
    display: flex;
    margin: 10px 0;
    padding: 5px;
    background-color: #00B4CC;
    border: 2px solid #007bff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    outline: none;
}
.search-bar:focus{
    color: #00B4CC;
  }
.search-bar input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
}
.search-bar button {
    width: 40px;
  height: 36px;
  border: 1px solid #0056b3;
  background: #0056b3;
  text-align: center;
  color: #fff;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 20px;
}
.search-bar button:hover {
    background-color: #00B4CC;
}
.image-container {
    width: 100%;
    max-width: 550px;
    height: 350px;
    margin: 70px auto;
    border-radius: 8px;
    /* overflow: hidden; */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    position: relative;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;

}
.image-container img {
    max-width: 100%;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    min-width: 200px;
    pointer-events: none;
}
.image-container.fade-out{
    opacity: 0;
}
.arrows {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}
.arrows button {
    padding: 4.5px 4.5px;
    border: 1px solid #0056b3;
    background-image: linear-gradient(to right, #2c3e50 0%, #3498db  51%, #2c3e50  100%);
    text-align: center;
    color: #fff;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 0 20px #eee;
    background-size: 200% auto;
    transition: 0.5s;
    display: block;
    cursor: pointer;
}
.arrows button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.arrows button:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;

}
.text-overlay {
    position: absolute;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    background-size: 200% 200%;

}
.text-overlay strong {
    margin-right: 5px; 
}

.text-overlay span {
    margin-left: 10px; 
}
.text-overlay.eng {
    bottom: 100%;
    left: 0.7%;
    background-image: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(60,60,184,1) 35%, rgba(0,212,255,1) 100%);
    background-size: 300%;
    background-position: left;
    transition: background-position 1s;
}
.text-overlay.eng:hover,
.text-overlay.eng:focus{
    background-position: right;
}
.text-overlay.hin {
    top: 100%;
    left: 0.7%;
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(184,60,121,1) 35%, rgba(0,212,255,1) 100%);
    background-size: 300%;
    background-position: left;
    transition: background-position 1s;
} 
.text-overlay.hin:hover,
.text-overlay.hin:focus{
    background-position: right;
} 
.text-overlay.chh {
    top: 100%;
    right: 0.7%;
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(184,120,60,1) 35%, rgba(0,212,255,1) 100%);
    background-size: 300%;
    background-position: left;
    transition: background-position 1s;
}
.text-overlay.chh:hover,
.text-overlay.chh:focus{
    background-position: right;
} 

.text-overlay.guj {
    top: 100%;
    right: 0.7%;
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(184,120,60,1) 35%, rgba(0,212,255,1) 100%);
    background-size: 300%;
    background-position: left;
    transition: background-position 1s;
}
.text-overlay.guj:hover,
.text-overlay.guj:focus{
    background-position: right;
}
.text-overlay span {
    cursor: pointer;
    color: yellow;
    margin-left: 8px;
}
/* Fullscreen mode */
.fullscreen header,
.fullscreen footer {
    display: none !important;
}
.fullscreen section.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    background: white;
    z-index: 9999;
    overflow: hidden;
    margin: 0;
    padding: 20px;
    border: none;
    box-shadow: none;
}
.fullscreen .image-container {
    max-width: 90%;
    height: 70vh;
    margin: 50px auto;

}
.fullscreen .image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.fullscreen .alphabet-bar {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.fullscreen-toggle {
    position: absolute;
    top: 1%;
    right:  0.7%;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}
.fullscreen-toggle:hover {

    background-color: #00B4CC;
}
.fullscreen .search-bar{
    display: none;
}
.fullscreen .text-overlay.eng {
    bottom: 100%;
    left: 0.1%;
}
.fullscreen .text-overlay.hin {
    top: 100%;
    left: 0.1%;
}  
.fullscreen .text-overlay.chh {
    top: 100%;
    right: 0.1%;
}
.fullscreen .text-overlay.guj {
    top: 100%;
    right: 0.1%;
}
/* Styling for the search  suggestion dropdown */
.suggestion {
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}
.suggestion-item {
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.suggestion-item:hover, .suggestion-item.active {
    background: #f0f0f0;
}
@media (max-width: 480px) {
    .search-container {
        max-width: 90%;
    }
    #search-input {
        font-size: 14px;
    }
    .suggestion-item {
        font-size: 14px;
    }
    
}
@media (max-width: 768px) {
    .home-section {
        padding: 10px;   
    }

    section.image-viewer {
        padding: 15px;
        overflow: scroll;
    }

    .search-bar {
        max-width: 100%;
        width: 100%;
    }

    .image-container {
        max-width: 90%;
        height: 250px;
        margin: 90px auto; /* Reduce margin for mobile */
    }

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .arrows button {
        padding: 6px;
        font-size: 14px;
    }

    .fullscreen-toggle {
        top: 1%;
        right:  0.7%;
        padding: 6px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .search-bar input {
        font-size: 14px;
    }

    .suggestion-item {
        font-size: 14px;
    }

    .alphabet-bar a {
        padding: 6px 8px;
        font-size: 14px;
    }

    .image-container {
        margin: 70px auto;
    }
    .fullscreen .image-container{
        max-width: 90%;
        height: 50vh;
        margin: 30px auto;
    }

    .text-overlay.guj{
        font-size: 13px;
    }
    .text-overlay.eng{
        font-size: 13px;
    } 
    .text-overlay.hin{
        font-size: 13px;
    }
    .text-overlay.chh{
        font-size: 13px;
    }
}