body {
    margin: 40px;
    margin-top: 20px;
    font-family: 'Open Sans', sans-serif;
    background-color: black;
    color: white;
}

.vinyl {
    position: fixed;
    right: 0;
    bottom: 0;
    height: 90vh;
    object-fit: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.vinyl-2 {
    position: fixed;
    left: 0;
    bottom: 0;
    height: 90vh;
    object-fit: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}


form.login {
    width: 300px;
}

form.login .label-input {
    display: flex;
    flex-direction: column;
    align-items: left;
    margin-bottom: 8px;
    gap: 5px;
}

form.login input {
    width: 100%;
    box-sizing: border-box;
    /* prevents padding from overflowing */
}

form.login button {
    background-color: rgb(0, 255, 149);
    color: rgb(0, 0, 0);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
    font-size: 16px;
}

form.login button:hover {
    background-color: #00cc7a;
}

form.login input,
form.login button {
    padding: 8px 12px;
    border-radius: 6px;
}

.login-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.bg-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

/* The actual login box */
.login-overlay {
    position: relative;
    z-index: 1;
    /* above the image */
    background: rgba(0, 0, 0);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    width: 100%;
    text-align: center;
    transform: translateY(-30%);
    /* moves form upward */
}




.align-right {
    display: flex;
    justify-content: flex-end;
}

.home {
    text-decoration: none;
}

.album-title {
    font-size: 20px;
    font-weight: 600;
}

.album-title-details {
    font-size: 20px;
    font-weight: 600;
}

.container {
    display: grid;
    grid-template-columns: auto auto auto;
    /* padding: 10px; */
    justify-items: center;
}


.album-title,
.container p {
    text-align: left;
    width: 100%;
    max-width: 300px;
}

main {
    display: flex;
    flex-direction: row;
}

aside {
    width: 220px;
    padding: 20px;
    padding-left: 0px;
}

h1,
h2 {
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgb(0, 255, 149);
}

.artist {
    font-style: italic;
    font-weight: 300;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #353535;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #7a7a7a;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.tag:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

.tag.active {
    background-color: #fff;
    color: #000000;
    font-weight: 600;
}


.tile {
    position: relative;
    min-width: 480px;
    width: 100%;
    border-top: 1px solid white;
    gap: 1rem;
    padding: 1rem 0;
    box-sizing: border-box;
    border: solid rgb(146, 144, 144) 0.5px;
    border-radius: 8px;
    margin: 20px;
    padding-left: 15px;
    height: auto;
    max-height: 200px;
    align-self: start;
    background-color: #353535
}

.confirmation-links {
    display: flex;
    gap: 20px;
}

.confirmation-links a {
    color: rgb(0, 255, 149);
}

.album-cover {
    border: 1px solid #4d4d4d;
}

.tile>* {
    margin: 0;
}

.album-entry {
    width: 300px;
    margin: 20px;
}

.album-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-link:hover {
    transform: translateY(-4px);
}

.album-link img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.link-text {
    color: white;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    width: 100%;
    justify-items: center;

}

.row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

h3 {
    margin-top: 0;
}

.actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 10px;
    right: 10px;
}

.row img {
    flex-shrink: 0;
}

.row>div {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
}

*/ .actions img {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#add-entry {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}


.btn {
    background-color: rgb(0, 255, 149);
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 16px;
    margin-right: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #00cc7a;
    color: rgb(0, 0, 0);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: #353535;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer
}

.action-btn img {
    display: block;
    width: 18px;
    height: 18px;
}

.action-btn:hover {
    background-color: rgb(74, 74, 74);
}

.same-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.album-details {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.details-text {
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    box-sizing: border-box;


}

.logout-link {
    color: white;
    font-weight: 600;
}

.links {
    color: white;
}

.sources {
    font-size: 14px;
}

textarea {
    font-family: 'Open Sans', sans-serif;
}


form {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* each label + input pair */
.label-input {
    display: flex;
    align-items: baseline;
    gap: 2rem;
}

.label-input label {
    width: 105px;
    text-align: left;
    padding-top: 6px;
}

.label-input input,
.label-input textarea,
.label-input select {
    color: white;
    padding: 8px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    font-family: inherit;
    background-color: #222222;
}

.label-input input,
.label-input textarea {
    width: 100%;
    max-width: 600px;
}

#upload-file {
    background-color: black;
    border: none;
    padding: 0;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    column-gap: 16px;
    row-gap: 6px;
    margin-top: 8px;
    margin-left: 16px;
    width: 100%;
    max-width: 680px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    color: #fff;
    font-size: 14px;
}

.checkbox-option input[type="checkbox"] {
    accent-color: #ffffff;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background-color: transparent;
    display: inline-block;
    position: relative;
    top: 1px;
    cursor: pointer;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-left: 100px;
    margin-top: 20px;
    margin-right: 45px;
}

.confirmation-buttons {
    display: flex;
    gap: 12px;
}

.delete-confirm {
    margin-bottom: 50px;
}

.confirm-details {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    max-width: 900px;
    gap: 20px;
    align-items: flex-start;
}

.confirm-text p {
    margin-top: 0;
}

.save-btn,
.cancel-btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.save-btn {
    background-color: #33ff99;
    border: none;
    color: #000;
}

.save-btn:hover {
    background-color: #00cc7a;
}


.cancel-btn {
    background-color: transparent;
    border: 1px solid #999;
    color: #fff;
}

.cancel-btn:hover {
    border-color: #33ff99;
    color: #33ff99;
}

.gap {
    gap: 30px;
}

#year {
    width: 100px;
}

#album-title {
    width: 300px;
}

#artist {
    width: 300px;
}

.upload {
    margin-top: 40px;
    margin-bottom: 40px;
}

.upload-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0px;
    margin-bottom: 12px;
}

@media (max-width: 800px) {
    body {
        margin-left: 20px;
        margin-right: 20px;
    }

    p,
    a,
    .tag {
        font-size: 16px;
    }

    .album-title {
        font-size: 26px;
    }

    .album-title-details {
        font-size: 26px;
    }

    main {
        flex-direction: column;
        align-items: center;
    }

    aside {
        width: 100%;
        padding: 10px 0;
        order: -1;
    }

    .tags {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 1rem;
    }

    .container {
        display: block !important;
        width: 100%;
        height: 100%;
        gap: 1rem;
    }


    .album-entry {
        width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 0;
        box-sizing: border-box;
    }

    .album-cover {
        width: 100%;
        height: auto !important;
        object-fit: cover;
        /* optional: keeps nice cropping */
        display: block;
    }

    .album-details div img:first-child {
        width: 100%;
        height: 100%;
    }

    .album-details {
        flex-direction: column;
    }
}
