* {
    box-sizing: border-box;
}

main {
    margin: 0;
    padding-bottom: 60px; /* Add padding to the bottom to accommodate the footer */
    position: relative; /* Add relative positioning to the main element */
}

.album-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between elements on the horizontal axis */
    width: calc(100% - 220px); /* Adjust the width as needed */
    margin-top:50px;
    margin-bottom:50px;
}

.album-options {
    display: flex;
    align-items: center;
    position: relative;
}

.album-options-btn {
    background: transparent;
    border: none;
    color: #333;
    font-size: 40px;
    cursor: pointer;
}

.album-buttons {
    position: absolute;
    top: 100%; /* Position the album buttons below the ellipsis button */
    right: 0;
    z-index: 1;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 5px;
}

.album-buttons a {
    display: block;
    padding: 5px;
    text-decoration: none;
    color: #333;
}

.album-buttons.hidden + .album-options-btn {
    pointer-events: auto;
}

.album-options .album-options-btn:hover + .album-buttons,
.album-buttons:hover {
    display: block;
}

.options-container {
    position: relative;
}

.album-buttons.hidden {
    display: none;
    position: absolute;
    top: 100%; /* Position the album buttons below the ellipsis button */
    right: 0;
    z-index: 1;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 5px;
}

.album-buttons.show {
    display: block;
}

.aspect-ratio-container {
    position: relative;
    overflow: hidden;
    padding-bottom: calc(295.58 / 196.08 * 100%); /* Aspect ratio: height / width * 100% */
}

.aspect-ratio-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.popup {
    display: none; /* Initially hide the popup */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 5px;
    position: relative;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.close-popup-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Add a class to show the popup */
.popup.show {
    display: block;
}