/* 字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
    margin: 0px;
    font-family: "Inter", sans-serif;
}

/*progress bar*/
#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-red);
    transform-origin: left center;
}




@keyframes grow {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}


/* --- 颜色 --- */
:root {
    --primary-red: #B30E16;
    --dark: #251E1E;
    --light: #F8F6F6;
}

/* --- 字体的size --- */
h1 {
    font-size: 50px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 26px;
}

p {
    font-size: 18px;
}

.desc p {
    font-size: 14px;
}


/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 50px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: "Inter";
    transition: transform 0.3s ease;
}

.outside {
    position: relative;
    padding-right: 60px;
}

.outside::after {
    content: "";
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("../image/triangle.png");
    background-size: contain;
}

.btn-dark.outside::after,
.btn-light.outside:hover::after,
.btn-red.outside:hover::after {
    filter: invert(1) brightness(2);
}

.btn:hover {
    transform: translateY(-4px) scale(1.05);
}

.btn-dark {
    background: var(--dark);
    color: var(--light);
}

.btn-dark:hover {
    background: var(--primary-red);
    color: var(--light);
}

.btn-light {
    background: var(--light);
    color: var(--dark);
}


.btn-light:hover {
    background: var(--primary-red);
    color: var(--light);
}

.red.btn-red:hover {
    background: var(--dark);
    color: var(--light);
}

/* --- banner --- */
.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    min-height: 350px;
    color: var(--light);
    text-align: center;
    background-position: center;
}

/* content的距离 */
.content {
    padding: 40px 60px;
}

.content>div {
    margin-bottom: 60px;
}

/* boxpadding */
.box {
    width: 25%;
    padding: 30px;
    border-radius: 20px;
}

/* 横的box */
.fullwidth-box {
    display: flex;
    border-radius: 20px;
    padding: 30px;
    align-items: center;
    gap: 40px;
}

.fullwidth-box.red {
    background-color: var(--primary-red);
}

.fullwidth-box.dark {
    background-color: var(--dark);
}

/* FullWidth Box-Animation */
.fullwidth-box,
.box {
    animation: reveal 1s ease-out both;
    animation-timeline: view();
    animation-range: entry 20% cover 30%;
}

@keyframes reveal {
    0% {
        opacity: 0;
        filter: blur(5px);
        transform: translateY(80px);
    }

    30% {
        filter: blur(0px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* text area and input */
textarea,
input {
    font-family: "Inter", sans-serif;
    padding: 15px 15px;
    border-radius: 20px;
    border: #f5f6f6;
    background-color: #f5f6f6;
}

/* Vinyls columns */
.albumvinyl {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 40px;
}

.album {
    text-align: center;
    width: 30%;
    max-height: fit-content;
}

.album img {
    width: 100%;
    aspect-ratio: 1/1;
}

.details {
    margin: 20px auto;
}

.details p {
    margin: 0px;
}

.details h3 {
    margin: 10px auto;
}

.listen {
    margin-top: auto;
}

/* Album-Animation */
.album {
    animation: album 1s ease-out both;
    animation-timeline: view();
    animation-range: entry 20% cover 30%;
}

.album:nth-child(2) {
    animation-delay: 0.5s;
}

.album:nth-child(3) {
    animation-delay: 1s;
}

@keyframes album {
    0% {
        opacity: 0;
        filter: blur(5px);
        transform: translateY(80px);
    }

    30% {
        filter: blur(0px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* header*/
a {
    text-decoration: none;
    color: #251E1E;
}

.header {
    display: flex;
    justify-content: space-between;
    background-color: var(--light);
    padding: 0px 30px;
    padding-top: 25px;
    padding-bottom: 15px;
    position: relative;
    z-index: 2001;

}

.header-middle {
    display: flex;
    gap: 100px;
    align-items: center;
}

.menu {
    display: flex;
    gap: 50px;
    align-items: center;
}

.header-menu {
    gap: 10px;
    display: flex;
    position: relative;
}

.submenu {
    background-color: #251E1E;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 180px;
    border-radius: 16px;
    padding: 10px;
}

.small-sub {
    width: 140px;
}

.submenu a {
    display: block;
    padding: 5px;
    color: #f5f6f6;
}

.header-menu:hover .submenu {
    display: block;
}

.header-menu>a,
.menu-item>a,
.contact>a {
    font-weight: 650;
}

.submenu:hover {
    display: block;
}

.submenu a:hover {
    background-color: #f5f6f6;
    display: block;
    border-radius: 20px;
    color: #251e1e;
}

.contact-us a {
    text-decoration: none;
    background-color: #251E1E;
    border-radius: 20px;
    padding: 10px 25px;
    color: #f5f6f6;
}

.menu-toggle {
    font-size: 2rem;
    cursor: pointer;
    display: none;
    z-index: 1001;
}


.logo-img {
    width: 200px;
}


/* footer*/
.footer {
    padding: 15px 30px;
    background-color: #f5f6f6;
    padding-top: 35px;
}

.footer-left {
    width: 35%;
}

.map {
    width: 100%;
    height: auto;
}

.footer-right {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.address {
    display: flex;
    align-items: center;
    gap: 10px;
}

.address img {
    height: 100%;
}

.address p {
    margin: 0px;
    padding: 22px 0px;
}

.footer-middle {
    display: flex;
    gap: 10%;
}

.footer-menu {
    display: flex;
    gap: 7%;
}

.footer-sub {
    margin-top: 10px;
    flex-direction: column;
    display: flex;
    gap: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: right;

}

.socialmedia {
    display: flex;
    gap: 20px;
}

.footer-bottom p {
    margin: 0px;
}

/* --- media query --- */
@media (max-width: 1180px) {
    h1 {
        font-size: 45px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    p {
        font-size: 17px;
    }

    /*header*/
    .menu {
        gap: 30px;
    }

    a {
        font-size: 15px;
    }

}

/* tablet */
@media (max-width: 990px) {
    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 16px;

    }

    /*header*/
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu {
        display: none;
        flex-direction: column;
        background-color: #f5f6f6;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        text-align: center;
        z-index: 1001;
        font-size: 20px;
        align-items: center;
        justify-content: center;
    }

    .menu.active {
        display: flex;
    }

    .header-menu {
        justify-content: center;
        width: 100%;
        position: relative;
        align-items: center;
    }


    .submenu {
        position: absolute;
        width: 100%;
        top: 20px;
        left: 0px;
        padding: 10px 0px;
        z-index: 1001;
        background-color: #251E1E;
        border-radius: 0px;
    }

    .submenu a:hover {
        background-color: #f5f6f6;
        display: block;
        border-radius: 20px;
    }

    .header {
        padding: 0px 30px;
        padding-top: 15px;
        padding-bottom: 10px;
    }




    /**footer**/
    .footer-sub {
        display: none;
    }

    .footer-menu {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        gap: 40px;
        margin-top: 50px;
        width: 100%;
        align-items: center;
    }

    .footer-left {
        display: none;
    }

    .footer-middle {
        justify-content: center;
    }

    .footer-top,
    .footer-menu-bottom {
        text-align: center;
    }

    .socialmedia {
        display: flex;
        justify-content: center;
        margin-bottom: 30px;
        margin-top: 10px;
    }

    .footer-bottom {
        display: flex;
        justify-content: center;
    }

    .logo {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .footer-right {
        gap: 40px;
    }

    /* vinyl column */
    .album {
        margin: 0px auto;
    }

    .details {
        min-height: 100px;
    }

    /* Mobile */
    @media (max-width: 768px) {
        h1 {
            font-size: 36px;
        }

        h2 {
            font-size: 24px;
        }

        h3 {
            font-size: 18px;
        }

        p {
            font-size: 15px;
        }

        .desc p {
            font-size: 12px;
        }

        /* vinyl column */
        .albumvinyl {
            display: block;
            flex-wrap: nowrap;
            justify-content: space-around;
            align-items: center;
        }

        .album {
            width: 100%;
            display: block;
            margin-bottom: 60px;
        }
    }
}

@media (max-width: 438px) {
    .header {
        padding: 0px 30px;
        padding-top: 15px;
        padding-bottom: 10px;
    }

    h1 {
        font-size: 30px;
    }

    .content {
        padding: 30px 30px;
    }

    .header-left {
        display: flex;
        align-items: center;
    }

    .logo-img {
        width: 150px;
        display: flex;
    }
}