@charset "UTF-8";
body {
    background-color: #282828; 
}

header {
    background-color: black;
    color: white;
    padding: 10px 20px;
    display: flex;
    border-radius: 10px;
    justify-content: flex-start;
    align-items: center;
}

.header-text {
    margin-left: 10px;
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.logo {
    margin-right: 10px;
    color:goldenrod;
}

.search-container {
    display: flex;
    margin-left: 10px;
    align-items: center;
    border: 2px solid #555;
    border-radius: 20px;
    padding: 5px;
    color: white;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.search-input {
    background-color: black;
    padding: 8px 12px;
    border: none;
    margin-right: 5px;
    color: white;
}

.search-input:focus {
    outline: none;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: white;
}

.search-button:hover {
    color: lightgray;
}


.clear-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    color: white;
    display: none;
}

.clear-button:hover {
    color: gray;
}

.search-input:valid+.clear-button {
    display: block;
}

#movie-list {
    padding-top: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    color: white;
    text-align: center;
}

.movie-container {
    text-align: center;
    margin: 20px;
    display: inline-block;
    position: relative;
}

.movie-poster {
    height: auto;
    display: block;
    margin: 0 auto 10px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-size: cover; 
    background-position: center; 
    transition: outline 0.3s ease; 
}

.movie-poster:hover {
    outline: 2px solid white;
}

.movie-poster img {
    transition: filter 0.3s ease;
    display: block;
    width: 100%;
    height: auto;
}

.movie-poster:hover img {
    filter: brightness(0.4);
}

.movie-poster::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border: 2px solid white;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-poster:hover::before {
    opacity: 1;
}

.hover-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.movie-poster:hover .hover-icon {
    opacity: 1;
}

.movie-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    color: whitesmoke;
    padding-left: 1px;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    white-space: nowrap;
    text-align: left;
}

.movie-year {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: normal;
    color: lightslategray;
    padding-left: 1px;
    text-align: left;
}

#full-screen-barcode-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

#full-screen-barcode {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
