* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    ;
}

body {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 16%;
    align-items: center;
}

.main-container1 {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.product-container1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    font-size: 18px;
    line-height: 1.5;
}

.product-container1 h1 {
    font-size: 36px;
    font-weight: 600;
}

.product-container1 p {
    color: #555;
}

.image-section1 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 80%;
}

.phone-colorpalette {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.phone-colorpalette h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 2rem;
}

.phone-colors {
    display: flex;
    flex-direction: row;
    gap: 15px;
    list-style: none;
    cursor: pointer;
}

.product-title {

    font-size: 36px;
    font-weight: 600;
}

.detail-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.dropdown-model {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 8px 13px;
    cursor: pointer;
    width: 350px;
}

.selector {
    border: none;
    font-size: 16px;
    outline: none;
    cursor: pointer;
    width: 100%;
}

.detail-container {
    margin-bottom: 20px;
}

.price-detail {
    font-size: 24px;
    font-weight: 500;
}

.link-hover a {
    text-decoration: none;
    color: #0066cc;
}

.link-hover a:hover {
    text-decoration: underline;
}

.phone-colorpalette h2 {
    font-size: 20px;
    font-weight: 500;
}

.grey-line hr {
    border: none;
    margin-top: 2rem;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

.sentence {
    margin-top: 1rem;
}

.cart-delivery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    font-size: 16px;
}

.cart-delivery img {
    vertical-align: middle;
    margin-right: 8px;
}

.add-circle {
    margin-left: 5px;
    vertical-align: middle;
}

.link-target {
    text-decoration: none;
    color: #0066cc;
}

.link-target:hover {
    text-decoration: underline;
}

.add-to-bag {
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #0071e3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}

.add-to-bag:hover {
    background-color: #005bb5;
    transition: background-color 0.3s ease;
}

.product-image1 {
    margin-left: 2rem;
    height: auto;
}

.image-section1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20.5rem;
}

.case-photos {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    margin-top: 20px;
}

.case-photo1 {
    cursor: pointer;
}

.case-photo1:hover {
    transition: transform 0.3s ease;
}

.under-line {
    text-decoration: underline;
    text-decoration-thickness: 0.2px;
    background-color: #555;
}

.under-line1 {
    text-decoration: underline;
    text-decoration-thickness: 0.2px;
    background-color: #fff;
}

.under-line1:hover {
    background-color: #555;
}

.under-line2 {
    text-decoration: underline;
    text-decoration-thickness: 0.2px;
    background-color: #fff;
}

.under-line2:hover {
    background-color: #555;
}

.under-line3 {
    text-decoration: underline;
    text-decoration-thickness: 0.2px;
    background-color: #fff;
}

.under-line3:hover {
    background-color: #555;
}

.dropdown-model span {
    font-size: 13px;
}

.circle-selected {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2.5px solid #0071e3;
    position: relative;
    justify-content: center;
    align-items: center;
}

.redirect {
    text-decoration: none;
    color: white;
}

/* reponsive design for stage 2 */ 

@media (max-width: 1024px) {
    body {
        padding: 0 10%;
    }

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

    .image-section1 {
        width: 100%;
        margin-bottom: 2rem;
    }

    .product-image1 {
        margin-left: 0;
        width: 90%;
    }

    .dropdown-model {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0 5%;
    }

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

    .product-container1 {
        align-items: flex-start;
    }

    .product-image1 {
        margin-left: 0;
        margin-top: 20px;
        width: 80%;
    }

    .dropdown-model {
        width: 100%;
    }

    .case-photos {
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 0 4%;
    }

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

    .product-container1 h1 {
        font-size: 28px;
    }

    .product-image1 {
        width: 100%;
    }

    .phone-colors {
        gap: 10px;
    }

    .case-photos {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .add-to-bag {
        width: 100%;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 3%;
    }

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

    .product-container1 h1 {
        font-size: 24px;
    }

    .product-container1 {
        font-size: 16px;
    }

    .dropdown-model {
        width: 100%;
        padding: 6px 10px;
    }

    .product-image1 {
        width: 100%;
        margin-top: 15px;
    }

    .price-detail {
        font-size: 20px;
    }

    .cart-delivery {
        font-size: 14px;
    }

    .case-photos {
        gap: 0.8rem;
    }
}
