.popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.popup .popup-content {
    visibility: hidden;
    width: 768px;
    height: 800px;
    background-color: rgba(85, 85, 85, 0);
    color: #fff;
    text-align: center;
    border-radius: 12px;
    position: fixed;
    z-index: 1000;
}

.popup .popup-window {
    width: 768px;
    height: 800px;
    background-color: #333333;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.popup-bg {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    color: #fff;
    text-align: center;
    border-radius: 12px;
    position: fixed;
    z-index: 998;
    left: 0;
    right: 0;
    top: 0;
}

/* Popup arrow */
.popup .popup-text::after {
    content: "";
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #181818 transparent transparent transparent;
}

/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
    visibility: visible;
    -webkit-animation: fadeIn 0.5s;
    animation: fadeIn 0.5s
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.music-artboard {
    min-width: 300px;
    min-height: 300px;
    border-radius: 16px;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.popup-window-content {
    padding: 40px;
}

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

.music-popup-title {
    margin-left: 24px;
    text-align: left;
    font-size: 35px;
    color: #d8d8d8;
}

.music-title {
    font-size: 25px;
    text-align: left;
    color: white;
}

.media-game {
    margin-bottom: 20px;
}

.music-link {
    display: block;
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
    width: 100px;
    height: 100px;
    border-radius: 20px;
}

.music-link img {
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
    fill: white;
}

a.music-link {
    text-decoration: none;
    color: white;
    margin: 18px 6px;
}

.music-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    width: 80%;
}

a.music-link p {
    text-decoration: none;
    padding-top: 8px;
    font-family: "Roboto", sans-serif;
    margin-bottom: 12px;
}

.popup-window-content h2 {
    font-family: "Roboto", sans-serif;
    margin-top: 30px;
    margin-bottom: 10px;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 24px;
    font-size: 50px;
    background: transparent;
    border: none;
    color: #6e6e6e;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.popup-close:hover {
    color: #ffffff;
}

@media (max-width: 1440px)  {
    .music-artboard {
        min-width: 200px;
        min-height: 200px;
        max-width: 200px;
        max-height: 200px;
    }

    .popup .popup-content {
        width: 768px;
        height: 90%;
    }

    .popup .popup-window {
        width: 768px;
        height: 90%;
    }

    .music-link {
        display: block;
        min-width: 64px;
        min-height: 64px;
        max-width: 64px;
        max-height: 64px;
        width: 64px;
        height: 64px;
    }

    .music-link img {
        min-width: 64px;
        min-height: 64px;
        max-width: 64px;
        max-height: 64px;
    }
}

@media (max-width: 960px) and (orientation: portrait)  {
    .popup .popup-content {
        width: 90%;
        height: 90%;
    }

    .popup .popup-window {
        width: 90%;
        height: 90%;
    }

    .music-link {
        min-width: 64px;
        min-height: 64px;
        max-width: 64px;
        max-height: 64px;
        width: 64px;
        height: 64px;
    }

    .music-link img {
        min-width: 64px;
        min-height: 64px;
        max-width: 64px;
        max-height: 64px;
    }

    .music-artboard {
        min-width: 240px;
        min-height: 240px;
        max-width: 240px;
        max-height: 240px;
        margin: auto;
    }

    .music-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        width: 80%;
    }

    .music-main {
        flex-direction: column;
    }

    .music-popup-title {
        margin-left: 0;
        margin-top: 12px;
        font-size: 24px;
        max-width: 300px;
        text-align: center;

    }

    .music-title {
        font-size: 18px;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 960px) and (orientation: landscape)  {
    .popup .popup-content {
        width: 90%;
        height: 90%;
    }

    .popup .popup-window {
        width: 90%;
        height: 90%;
    }

    .music-link {
        min-width: 64px;
        min-height: 64px;
        max-width: 64px;
        max-height: 64px;
        width: 64px;
        height: 64px;
    }

    .music-link img {
        min-width: 64px;
        min-height: 64px;
        max-width: 64px;
        max-height: 64px;
    }

    .music-artboard {
        min-width: 160px;
        min-height: 160px;
        max-width: 160px;
        max-height: 160px;
    }

    .music-links {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        overflow-x: hidden;
        gap: 1.5rem;
        width: 100%;
    }

    .music-main {
        flex-direction: row;
    }

    .music-popup-title {
        margin-left: 20px;
        margin-top: 12px;
        font-size: 24px;
        max-width: 600px;
    }

    .music-popup-title p {
        font-size: 16px;
        padding-top: 20px;
    }

    .music-title {
        font-size: 18px;
        max-width: 300px;
    }
}
