@font-face {
    font-family: appleNormal;
    src: url(assets/Fonts/sf-pro-display_regular.ttf);
}

@font-face {
    font-family: appleBold;
    src: url(assets/Fonts/sf-pro-display_bold.ttf);
}

.bar,
.responsive-bar,
.dropped-content {
    position: sticky; top:0;
    backdrop-filter: blur(45px);
    padding: 7px;
    height: 45px;
    z-index:1000;
    align-items: center;
    justify-content: center;
    background-color: rgb(27, 27, 27);
}

.bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 5px;
    width: 100%;
    background-color: rgb(27, 27, 27, 0.85);
    backdrop-filter: blur(2px);
}

.responsive-bar {
    display: none;
    background-color: transparent;
}

.bar img,
.menu {
    height: 20px;
    width: 20px;
    margin-bottom: 5px;
    filter: invert(100%);
}

.bar {
    position: fixed;
}

.bar a {
    margin-left: 30px;
    text-decoration: none;
    color: white;
    font-size: 12px;
    opacity: 0.8;
}

.bar a:hover {
    opacity: 1;
    color: white;
}

.responsive-bar {
    display: none;
    position: fixed;
}

.dropped-content {
    display: none;
    height: 850px;
    margin-left: -2ch;
    width: 900px;
}

.dropped-content a {
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 15px;
    display: block;
}

.responsive-bar:hover .dropped-content {
    display: block;
}

.dropped-content a:hover {
    opacity: 1;
    color: white;
}

.sub-container {
    background-color: black;
}

.sub-container-content,
.sub-container-content1,
.sub-container-content2 {
    justify-content: center;
    height: 800px;
    max-width: 100%;
    background-image: url("./assets/iphone16pro_main1.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
}

.sub-container-content1 {
    margin-top: -12ch;
    background-image: url("./assets/iphone16_main.jpg");
    background-color: rgba(252, 250, 253, 255);
    background-size: 40%;
}

.sub-container-content2 {
    background-image: url("./assets/ipad_main.jpg");
    background-color: black;
    background-size: 80%;
}

.sub-container-content h1,
.sub-container-content1 h1,
.sub-container-content2 h1 {
    text-align: center;
    color: white;
    font-family: appleBold;
    font-size: 55px;
}

.sub-container-content h3,
.sub-container-content1 h3,
.sub-container-content2 h3 {
    text-align: center;
    font-family: appleNormal;
    font-size: 29px;
    margin-top: -5px;
}

.sub-container-content1 h1,
.sub-container-content1 h3 {
    color: black;
}

.sub-container-content h1,
.sub-container-content h3,
.sub-container-content2 h1,
.sub-container-content2 h3 {
    color: white;
}

.sub-container-content p,
.sub-container-content1 p,
.sub-container-content2 p {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-family: appleNormal;
    font-size: 15px;
    margin-top: 15px;
}

.sub-container-content1 p {
    color: rgba(0, 0, 0, 0.5);
}

.sub-container-bottom,
.sub-container-bottom1 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5ch;
}

.sub-container-bottom {
    margin-top: 50ch;
}

.button1 {
    border-radius: 50px;
    padding: 7px;
    text-align: center;
    width: 135px;
    font-family: appleNormal;
    font-size: 18px;
    color: white;
    border: 1px solid rgb(50, 137, 250);
    background-color: rgb(50, 137, 250);
}

.button2 {
    width: 70px;
    padding: 7px;
    border-radius: 50px;
    font-family: appleNormal;
    margin-left: 20px;
    background-color: transparent;
    color: rgb(50, 137, 250);
    border: 1px solid rgb(50, 137, 250);
}

.sub-container3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.grid1,
.grid2,
.grid3,
.grid4,
.grid5,
.grid6 {
    margin-left: 3ch;
    border-radius: 10px;
    background-color: rgba(240, 240, 240, 255);
    background-repeat: no-repeat;
    background-position: 50% 20%;
    background-size: cover;
    height: 550px;
}

.grid1,
.grid2,
.grid3,
.grid4,
.grid5,
.grid6 {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    align-items: center;
    padding: 40px;
    margin-bottom: 20px;
}

.grid3,
.grid4,
.grid5,
.grid6 {
    display: block;
    justify-content: flex-starts;
}

.grid1 {
    margin-left: 3ch;
    background-size: 75%;
    background-image: url("./assets/gift.jpg");
}

.grid2 {
    margin-right: 3ch;
    background-image: url("./assets/airpod_main.jpg");
}

.grid2 p,
.grid3 p {
    color: white;
}

.grid3 {
    margin-left: 3ch;
    background-image: url("./assets/watch.jpg");
}

.grid4 {
    margin-right: 3ch;
    background-image: url("./assets/macbook.jpg");
}

.grid5 {
    margin-left: 3ch;
    background-image: url("./assets/imac.jpg");
}

.grid6 {
    margin-right: 3ch;
    background-image: url("./assets/trade.jpg");
}

.grid1:hover {
    background-size: 80%;
}

.grid5:hover {
    background-size: 115%;
}

.grid2:hover,
.grid3:hover,
.grid4:hover,
.grid6:hover {
    background-size: 110%;
}

.header {
    font-family: appleBold;
    font-size: 40px;
    color: black;
}

.data {
    font-family: appleNormal;
    font-size: 22px;
    color: black;
    margin-top: -1ch;
}
.slider-container {
    position: relative;
    overflow: hidden;
    width: 70%;
    margin: auto;
    border-radius: 20px;
}

.slider {
    display: flex;
    transition: transform 0.8s ease-in;
}

.slide {
    position: relative;
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.slide img {
    width: 99%;
    height: 100%;
    object-fit:fill;
    border-radius: 30px;
}

.caption {
    position: absolute;
    bottom: 10%;
    left: 16ch;
    color: white;
    font-size: 1.5rem;
    text-align: center;
    padding: 10px 20px;
    border-radius: 5px;
}

.button3 {
    position: absolute;
    bottom: 11%;
    left: 5ch;
    border-radius: 50px;
    padding: 7px 20px;
    font-size: 18px;
    color: black;
    background-color: white;
    border: 1px solid white;
    cursor: pointer;
}

.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: black;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}


.footnote {
    text-align: center;
    font-size: 16px;
    color: black;
    position: relative;
    border-radius: 20px;
    font-family: appleBold;
}

@media screen and (max-width: 850px) {
    .bar a {
        display: none;
    }

    .responsive-bar {
        display: block;
    }

    .sub-container-content {
        justify-content: center;
        height: 700px;
        max-width: 100%;
        background-image: url("./assets/iphone16pro_resp.jpg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 170%;
    }

    .sub-container-bottom {
        margin-top: 40ch;
    }

    .sub-container-content1 {
        background-image: url("./assets/iphone16_resp.jpg");
        background-size: 90%;
    }

    .sub-container-content2 {
        background-image: url("./assets/ipad_resp.jpg");
        background-size: 190%;
        background-color: rgba(245, 245, 247, 255);
    }

    .sub-container-content2 h1,
    .sub-container-content2 h3 {
        color: black;
    }

    .sub-container-content2 p {
        color: rgba(0, 0, 0, 0.5);
    }

    .sub-container3 {
        display: block;
    }

    .grid1,
    .grid2,
    .grid3,
    .grid4,
    .grid5,
    .grid6 {
        margin-left: 0;
        border-radius: 0;
        margin-bottom: 2ch;
        height: 550px;
        background-color: rgba(240, 240, 240, 255);
    }

    .grid1 {
        background-size: 100%;
    }

    .grid2 {
        background-size: 140%;
    }

    .grid2,
    .grid4,
    .grid6 {
        margin-right: 0;
    }

    .slider-container {
        width: 100%;
    }
    .slide{
        width: 100%;
    }

    .slide img{
        width: 90%;
        height: 100%;
        border-radius: 20px;
    }

    .button3{
        bottom: 10%;
    }

    .caption{
        left: 20ch;
        font-size: 16px;
    }
}