html, body {
    overflow: hidden;
    background-color: #373d29;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100vw;
    max-height: 400px;
    display: block;
    margin: 0 auto;
    padding: 0;
    width: auto;
    height: auto;
}

#artist-image img,
#label-image img,
#cover-image img {
    width: 100%;
    max-width: 100vw;
    height: auto;
    max-height: calc(100vh - 120px);
    object-fit: contain;
}

img[src*="no-photos.png"],
img[src*="nothing-found.png"] {
    max-width: 600px;
    max-height: 600px;
}

.invisible {
    display: none;
}

.image-container {
    position: fixed;
    top: 10px;
    bottom: 60px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    margin: 0;
    padding: 0;
}

.image {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    height: auto;
    max-height: 65vh;
    cursor: pointer;
    margin: 0;
    padding: 0;
    position: relative;
}

.name-text {
    text-align: center;
    color: orange;
    font-size: 20px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    margin: 0;
    border-radius: 5px;
    pointer-events: auto;
    max-width: 70%;
    word-wrap: break-word;
}

.name-text:empty {
    display: none;
}

/* Mobile only: absolute positioning for names */
@media screen and (max-width: 768px) {
    .name-text {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
    }
}

#play-button {
    cursor: pointer;
    z-index: 12;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

#player {
    position: fixed;
    top: -10px;
    left: -10px;
    width: 1px;
    height: 1px;
    opacity: 0.01; /* Nästan osynlig, men "finns" för webbläsaren */
    pointer-events: none;
}

#stop-button {
    cursor: pointer;
    z-index: 12;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

/* START searchContainer div */
#searchContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url("/static/images/skivback.png?v=1");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-attachment: fixed;
}

#searchForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    margin-top: 20px;
    flex: 0 0 auto; /* This will prevent shrinking and growing of this flex item */
}

#search-icon {
    width: 50px; /* Adjust according to your needs */
    height: auto; /* Keeps the aspect ratio intact */
    align: right;
}

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 10px 0;
}

button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    padding: 0;
    border: none;
    background: none;
}

.radio-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    margin-bottom: 15px;
}

.search-box {
    margin-top: 5px;
}

#search_input {
    height: 20px;
    width: 300px;
    padding: 10px;
    font-size: 20px;
}

#search_input::placeholder {
    font-size: 20px;
}

label {
    font-size: 20px; /* Adjusts the size of the text next to the radio buttons */
}

input[type="radio"] {
    transform: scale(1.5); /* Increases size of the actual radio buttons */
}

button[type="submit"] {
    font-size: 20px;
    cursor: pointer;
}

#filterButton {
    width: auto;
    margin-right: 10px;
    margin-top: 15px;
}

#bottom {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    padding: 0 10px;
    z-index: 20;
    pointer-events: none;
}

#bottom > * {
    pointer-events: auto;
}

.bottom-column {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.bottom-column:first-child {
    justify-content: flex-start;
}

.bottom-center {
    justify-content: center;
    position: relative;
}

.bottom-column:last-child {
    justify-content: flex-end;
}

#searchImageButton {
    width: 120px;
    height: auto;
    cursor: pointer;
    pointer-events: auto; /* Re-enables clicks specifically for the button */
    align-self: center;
    margin-top: 20px;
    margin-right: auto;
}

/* END searchContainer div */

 @media screen and (min-width: 769px) {
        #bottom {
            bottom: 100px;
            padding: 0 40px;
        }

        #cover-image {
            margin-top: 0;
            max-height: 80vh;
        }

        .image-container {
            bottom: 160px;
        }
    }

/* Specific adjustments for iPhone SE (320x568 pixels) */
/*@media only screen and (max-device-width: 320px) and (max-device-height: 568px) {*/
/*    .image-container {*/
/*        padding: 0;*/
/*    }*/

/*    img {*/
/*        width: 100vw;*/
/*        height: auto;*/
/*        max-height: 100vh;*/
/*    }*/
/*}*/
