html {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #010005;
    color: #ffffff;
    height: 100%;
}

html {
    height: 100%;
    overflow-x: hidden;
}

header {
    width: 100%;
    background-color: #010005;
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

main {
    height: 100%;
}

h1 {
    font-size: 1.4em;
    font-weight: 400;
}

#search-bar {
    width: 50%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
}

#search-bar::placeholder {
    color: #ccc;
}

#search-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
}

#search-button:hover {
    background-color: #0056b3;
}

#image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.image-card {
    margin: 10px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.image-card:hover {
    transform: scale(1.05);
}

.image-card img {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
}

#loading-indicator {
    margin: 20px;
    font-size: 18px;
}

.hidden {
    display: none;
}

#content-wrapper {
    height: 100%;
}

#content-wrapper.blurred {
    filter: blur(5px);
}

#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#image-details {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #222;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    z-index: 1001;
    color: #fff;
    width: 95%;
    max-width: 1000px;
    height: 95%;
    max-height: 800px;
    overflow: hidden;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

#close-details {
    align-self: flex-end;
    background-color: red;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}

#close-details:hover {
    background-color: rgb(223, 63, 63);
}

#details-image {
    max-width: 100%;
    max-height: 80%;
    border-radius: 5px;
    object-fit: contain;
}

#details-author,
#details-description,
#details-likes {
    margin: 5px 0;
}

#details-description {
    overflow-y: auto;
    flex-grow: 1;
    width: 100%;
    text-align: center;
    max-height: 20%;
}
