body{
    margin: 0;
    padding: 0;
    background-color: #A0A0A0;
    color: #fff;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

h1 {
    text-align: center;
}

a.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    text-decoration: none;
}

a.back-link:hover {
    text-decoration: underline;
}
      
/* Styles for index.html */
#randomImage {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#nextImageButton{
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 5px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.1;
    background-color: rgba(255, 255, 255, 0.7);
    color: black;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

#nextImageButton:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#nextImageButton:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Styles for all-images.html */
#allImages {
    padding: 20px;
}

#imageGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-content: start;
    max-width: calc(5 * 200px + 4 * 20px);
}

#imageGrid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}