
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #ffffff;
}
.container {
    display: flex;
    gap: 30px;
}
.large-square, .small-square {
    position: relative;
    background-color: #EFEFEF;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease-out;
    border: none;
    box-shadow: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: all 0.3s ease;
}
.large-square {
    width: 450px;
    height: 450px;
}
.small-squares {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.small-square {
    width: 210px;
    height: 210px;
}
.resize-handle {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    background-color: rgba(128, 128, 128, 0.5);
    border: 1px solid white;
    border-radius: 50%;
    cursor: se-resize;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.resize-handle:hover {
    background-color: rgba(255, 255, 255, 0.5);
    border: 0px solid white;
    cursor: none;
}
.resize-handle:active {
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid white;
}
.large-square .resize-handle {
    bottom: 12px;
    right: 12px;
}
.small-square:first-child .resize-handle {
    bottom: 12px;
    left: 12px;
}
.small-square:last-child .resize-handle {
    top: 12px;
    left: 12px;
}
.resizing {
    cursor: none !important;
}
.elastic {
    animation: elastic 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes elastic {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.97); }
}

.spotify-connect-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.spotify-connect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #1DB954;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.spotify-connect-btn:hover {
    background-color: #1ED760;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.spotify-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    fill: currentColor;
}

.spotify-connect-btn.connected {
    background-color: #333;
    cursor: default;
}

.spotify-connect-btn.connected:hover {
    background-color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: none;
}

.albums-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    height: 240px; /* Adjust this value based on your album cover size and padding */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.album-cover-container {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    cursor: move;
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.dropped-album {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.large-square.drag-hover, .small-square.drag-hover {
    transform: scale(1.01);
}

.composition-area {
    margin-bottom: 20px;
}

.fade-out {
    opacity: 0;
}

.large-square:hover .resize-handle,
.small-square:hover .resize-handle {
    opacity: 1;
}

.playlist-title-input {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 200px;
    padding: 5px;
    z-index: 20;
}

.make-playlist-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    z-index: 20;
}

.composition {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.spotify-button {
    display: inline-block;
    background-color: #1DB954;
    color: white;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.spotify-button:hover {
    background-color: #1ed760;
}

#playlistTitle {
    font-size: 24px;
    margin-bottom: 20px;
}