/* Set the background color for the entire page */
body {
    background-color: #1f1e1e; 
    color: #c4c4c4; 
}

/* Style for links */
a {
    color: #ffffff;
    text-decoration: none;
}

/* Style for hovered links */
a:hover {
    color: #ffc7a2;
    text-decoration: underline;
}

/* Style for the installButton class to make it look like a button */
.installButton {
    display: inline-block;
    background-color: #7b9e7c; /* Green background */
    color: white; /* White text */
    padding: 5px 10px; /* Padding for the button */
    text-align: center; /* Center the text */
    text-decoration: none; /* Remove underline */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 16px; /* Adjust font size */
    margin: 10px; /* Margin around the button */
}

/* Style for hovered installButton */
.installButton:hover {
    background-color: #45a049; /* Darker green on hover */
}

/* Style for the restartInstall link to position it at the top right */
#restartInstall {
    position: absolute;
    top: 10px; /* Distance from the top */
    right: 10px; /* Distance from the right */
    background-color: #ff6f61; /* Red background */
    color: white; /* White text */
    padding: 5px 10px; /* Padding for the link */
    text-decoration: none; /* Remove underline */
    border-radius: 5px; /* Rounded corners */
    font-size: 14px; /* Adjust font size */
    cursor: pointer; /* Pointer cursor on hover */
}

/* Style for hovered restartInstall */
#restartInstall:hover {
    background-color: #e55b50; /* Darker red on hover */
}

/* Style for the error div to display it in a red box at the center of the page */
.error {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ff4d4d; /* Red background */
    color: white; /* White text */
    padding: 20px; /* Padding inside the box */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a shadow for better visibility */
    font-size: 18px; /* Adjust font size */
    text-align: center; /* Center the text */
    animation: fadeOut 5s 5s forwards; /* Start fade-out after 5 seconds delay */
    z-index: 1000; /* Ensure it appears above other elements */
    animation: fadeOut 5s forwards; /* Fade out after 5 seconds */
}

/* Keyframes for fade-out animation */
@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}


/* Style for the albumList div to display images in a flexbox */
.albumList {
    border: 2px solid #ffffff; /* Adds white border */
    border-radius: 15px; /* Rounds the corners of the border */
    padding: 20px; /* Adds padding */
}

/* Style for the title class to make text bold */
.albumsTitle {
    font-weight: bold;
}

div.albumsBox > * {
    border: 1px solid #c4c4c4;
    padding: 5px;
    border-radius: 5px;
    width: 300px;
    overflow: hidden;
    background-color: #2a2a2a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.album {
    display: inline-block;
    margin: 10px;
}

.albumName {
    margin: 10px;
}

.albumimage {
    height: 250px;
}

.link {
    background: none; /* Remove background */
    border: none; /* Remove border */
    color: #ffffff; /* Link color */
    text-decoration: underline; /* Underline text */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: inherit; /* Inherit font size */
    font-family: inherit; /* Inherit font family */
    padding: 0; /* Remove padding */
}

.link:hover {
    color: #ffc7a2; /* Hover color */
    text-decoration: underline; /* Keep underline on hover */
}

.mainPicture {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto; /* Allow the image to resize dynamically */
}

.mainPicture img {
    max-width: 100vw; /* Max width is the viewport width */
    max-height: calc(100vh - 250px); /* Leave 200px free at the bottom */
    object-fit: contain; /* Maintain aspect ratio */
    margin: 20px;
}

.pictureList {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    background-image: linear-gradient(to right, #000 10%, transparent 10%, transparent 90%, #000 90%),
                      linear-gradient(to bottom, #000 10%, transparent 10%, transparent 90%, #000 90%);
    background-size: 8px 8px; /* Size of each square */
    background-position: 0 0, 10px 10px; /* Offset for the chequered pattern */
    padding: 10px; /* Optional: Add padding for better spacing */
    gap: 15px; /* Adds spacing between images */
    user-select: none; /* Prevent content from being selectable */
}

.picture {
    height: 150px; /* Set the same height for all images */
    object-fit: cover; /* Ensure images fill the height while maintaining aspect ratio */
    border-radius: 5px; /* Optional: Add rounded corners to images */
    pointer-events: auto; /* Ensure the content is clickable */
    -webkit-user-drag: none; /* Prevent dragging in WebKit-based browsers */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
    border: #ffffff 1px solid; /* Add a white border around the images */
}
