body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

.container {
    max-width: 400px;
    margin: 20px auto;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

#albumView {
    display: none;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
}

.albums-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.title-container {
    display: flex;
    justify-content: space-between; /* Space between the elements */
    align-items: center;
    margin-bottom: 10px;
}

.title-container h2 {
    margin: 0; /* Remove margin to avoid extra spacing */
}


.view {
    display: none;
}

.header {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.back-arrow {
    cursor: pointer;
}

.album {
    flex-basis: calc(33.3333% - 10px);  /* 3 per row taking into account some margin */
    margin: 5px;
    text-align: center;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.album:hover {
    transform: scale(1.05);
}

.album-cover {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 5px;
}

.album img.album-cover {
    width: 100%;
}

.album span {
    display: block;
    bottom: 5px;
    left: 5px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2px 5px;
    border-radius: 2px;
}

.album:hover span {
    color: white;
    background-color: rgba(0,0,0,0.6);
}

.top-action-icon {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10; /* Ensure it's above other elements */
}


.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.img-container {
    position: relative;
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    transition: scale 0.3s ease;
}

img.selected {
    opacity: 0.5;
}

.bucket {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 1.2em;
    cursor: pointer;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.bucket:hover {
    background-color: #555;
}

.upload-section {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    z-index: 10;
}

.upload-btn {
    display: flex;
    justify-content: space-between; /* or flex-end if you only want to push the button to the right */
    align-items: center; /* to vertically align items in the center */
    padding: 5px 15px;
    background: #333;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.upload-btn:hover {
    background: #555;
}

.action-icon {
    display: none;
    cursor: pointer;
    padding: 10px 15px;
    border-top: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    font-size: 1.2em;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: background-color 0.3s ease;
    z-index: 20;
}

.gallery-dropdown {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    border: 1px solid #e0e0e0;
    display: none;
    background: #fff;
    position: absolute;
    width: 150px;
    color: #555;
}

.gallery-dropdown li {
    padding: 5px 10px;
    cursor: pointer;
}

.gallery-dropdown li:hover {
    background: #e0e0e0;
}
