@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@500;600&family=Braah+One&display=swap");

#cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px);
    gap: 16px;
    padding: 8px;

    justify-content: center;
    align-content: center;

    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.75);
}

#top50 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 16px;
    padding: 8px;

    justify-content: center;
    align-content: center;
}

#top50Canvas {
    display: none;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    
    background-image: url("../images/top50_bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    width: 1620px;
    height: 100%;

    justify-content: center;
    align-content: center;
}

.card {
    width: 300px;
    height: 200px;
    border-radius: 15px !important;
    background-color: transparent !important;
}

.card-box {
    position: relative;
    width: 300px;
    height: 200px;

    background: linear-gradient(360deg, rgba(0, 0, 0, 0.67) 0%, rgba(0, 0, 0, 0.1005) 99.5%), var(--bg-image);
    box-shadow: 2px 5px 6px rgba(0, 0, 0, 0.8);
    border-radius: 15px;

    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;

    transition: background-size 0.3s ease-in-out;
    cursor: pointer;
}

.card-box:hover {
    background: linear-gradient(360deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 99.5%), var(--bg-image);
    background-size: 115%;
    background-position: center;
    background-repeat: no-repeat;
}

.card-box.card-box-selected {
    background: linear-gradient(360deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 99.5%), var(--bg-image);
    background-size: 115%;
    background-position: center;
    background-repeat: no-repeat;
}

.song-name {
    position: absolute;
    width: 200px;
    height: 27px;
    left: 12px;
    bottom: 12px;

    font-family: 'Alexandria';
    font-style: normal;
    font-weight: 600;
    font-size: 19px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    align-items: center;

    color: #FFFFFF;
}

.pt {
    position: absolute;
    right: 12px;
    bottom: 8px;

    font-family: 'Alexandria';
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    
    display: flex;
    text-align: right;
    align-items: flex-end;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
    justify-content: flex-end;

    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
}

.add-sub {
    position: absolute;
    height: 40px;
    right: 12px;
    bottom: 36px;

    font-family: 'Alexandria';
    font-style: normal;
    font-weight: 600;
    font-size: 32px;
    display: flex;
    align-items: flex-end;
    text-align: right;

    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
}

.plus {
    color: #32ADE6;
}

.minus {
    color: #db6262;
}

.zero {
    color: white;
}

/* MAX-2 (0/6/123) */
.score {
    position: absolute;
    width: 220px;
    left: 12px;
    bottom: 42px;

    font-family: 'Alexandria';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;

    display: flex;
    align-items: flex-start ;
    letter-spacing: 0.03em;

    color: #FFFFFF;
}

.level-box {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;

    width: 40px;
    height: 40px;
    right: 8px;
    top: 8px;

    background: rgba(255, 255, 255, 0.75);
    border: 4px solid black;
    border-radius: 10px;
}

.level {
    font-family: 'Braah One';
    font-style: normal;
    font-weight: 400;
    font-size: 26px;

    color: #000000;
}

.MAXIMUM {
    border-color: #444;
    color: #444;
}

.EXHAUST {
    border-color: #911;
    color: #911;
}

.INFINITE {
    border-color: #809;
    color: #809;
}

.GRAVITY {
    border-color: #830;
    color: #830;
}

.HEAVENLY {
    border-color: #169;
    color: #169;
}

.VIVID {
    border-color: #c1c;
    color: #c1c;
}

.EXCEED {
    border-color: #028;
    color: #028;
}