body
{
    font-family: Poppins;
    font-size: medium;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html 
{
    scroll-behavior: smooth;
}

/* navigation bar */
.navigation-bar
{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    height: 80px;
    padding: 5px 80px;
    box-sizing: border-box;
    background-color: #ffc82d;
    z-index: 1000;
}

.left-nav
{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.left-nav a
{
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 0 5px;
    display: flex;
    align-items: center;
}

.middle-nav 
{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.middle-nav a
{
    font-weight: 100;
    padding: 0 10px 0 10px;
    color: white;
    text-align: center;
    text-decoration: none;
}

.right-nav
{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.right-nav #login
{
    background-color: #ffc82d;
    border: 2px solid white;
    border-radius: 20px;
    color: white;
    padding: 10px 20px;
    margin-right: 10px;
    text-align: center;
    text-decoration: none;
}

.right-nav #login:hover
{
    background-color: #f3cf6a;
    border: 2px solid white;
    border-radius: 20px;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
}

.right-nav #download
{
    background-color: white;
    border: 2px solid white;
    border-radius: 20px;
    color: #ffc82d;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
}

.right-nav #download:hover
{
    background-color: rgb(250, 250, 250);
    border: 2px solid rgb(250, 250, 250);
    border-radius: 20px;
    color: #ffc82d;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
}

/* hero */
.hero
{
    height: 600px;
    background-color: #ffc82d;
    padding: 80px 80px 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.hero h1
{
    font-size: 50px; 
    font-weight:600; 
    margin-bottom: 0;
    margin-top: 80px;
    text-align: center;
}

.hero p
{
    font-weight: 200;
    margin: 20px 0 40px 0;
    text-align: center;
    line-height: 30px;
}

.download-buttons
{
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.download-buttons > div 
{
    display: flex;
    justify-content: center;
    gap: 20px;
}

.download-buttons button
{
    background-color: black;
    border: 2px solid black;
    border-radius: 20px;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.iphone-display
{
    position: relative;
    top: 0;
    transition: transform 1s ease;
    z-index: 100;
}

.iphone-display.sticky {
    position: sticky;
    top: 0;
    transform: translateY(280px);
}

.iphone-display img
{
    border-radius: 25px;
    box-shadow: -2px 4px 8px 0 rgba(0, 0, 0, 0.2), -2px 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#iphoneMass
{
    width: 210px;
    position: relative;
    left: 10px;
}

#iphoneLength
{
    width: 200px;
    position: relative;
    right: 10px;
}

/* specification */
.specification
{
    padding: 100px 80px 0 80px;
    height: 500px;
    position: relative;
    bottom: 100px;
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    background-color: white;
}

.specification img
{
    position: absolute;
    z-index: 500;
    border-radius: 20px;
    box-shadow: -2px 4px 8px 0 rgba(0, 0, 0, 0.2), -2px 6px 20px 0 rgba(0, 0, 0, 0.19);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.specification img.visible
{
    opacity: 1;
}

#unitType
{
    width: 350px;
    top: 33%;
    left: 26%;
}

#picker
{
    width: 250px;
    top: 47%;
    left: 30%;
}

#unit
{
    width: 300px;
    top: 30%;
    right: 30%;
}

#field
{
    width: 180px;
    top: 37%;
    right: 32%;
}

.specification-info
{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.spec-group
{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card
{
    width: 200px;
    height: 200px;
    background-color: #fff3d5;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction:column;
    justify-content: start;
}

.card .card-number
{
    background-color: #ffc82d;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    margin:0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card .card-info
{
    margin: 5px;
}

.card .card-explanation
{
    color: gray;
    font-size: small;
    margin: 5px;
}

/* active state of card */
.card.active
{
    background-color: #ffc82d;
}

.card.active .card-number
{
    background-color: white;
    color: #ffc82d;
}

.card.active .card-info
{
    color: white;
}

.card.active .card-explanation
{
    color: #fff3d5;
}

/* contact */
.contact
{
    height: 800px;
    display: flex;
    padding: 0 80px 0 80px;
    justify-content: space-between;
    margin-top: -100px;
}

.contact-left
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

.contact-left h1
{
    font-size:55px; 
    font-weight:500;
    margin: 0 0 10px 0;
}

.contact-left h2
{
    font-size:35px; 
    font-weight:500;
}

#contact-download-buttons
{
    flex-direction: column;
}

#contact-download-buttons > div 
{
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.contact-right
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 80px;
}

#mockup
{
    height: 750px;
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 1s ease, transform 1s ease;
}

#mockup.visible
{
    opacity: 1;
    transform: translateY(0);
}

/* subscription */
.subscription
{
    height: 700px;
    background-color: #ffc82d;
    padding: 20px 80px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.subscription-word
{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.subscription-word h1
{
    color: white;
    font-size:55px; 
    font-weight:500;
    text-align: end;
    margin: 0 0 10px 0;
}

.subscription-word h2
{
    color: white;
    font-size:20px; 
    font-weight:300;
    text-align: end;
    margin-bottom: 0;
}

.subscription-package
{
    display: flex;
    justify-content: center;
    gap: 100px;
    padding: 0 80px;
}

.monthSubscription, .yearSubscription
{
    position: relative;
    display: flex;
    align-self: center;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    width: 180px;
    height: 300px;
    padding: 40px;
    background-color: white;
    box-shadow: -2px 4px 8px 0 rgba(0, 0, 0, 0.2), -2px 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 20px;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s ease, transform 1s ease;
}

.monthSubscription.visible, .yearSubscription.visible
{
    opacity: 1;
    transform: translateY(0);
}

.recommend
{
    font-size: small;
    position: absolute; 
    top: 5px;
    right: 20px;
    text-align: end;
    border: 2px solid black;
    border-radius: 10px;
    background-color: black;
    color: white;
    padding: 5px 10px;
}

.subscriptionTitle
{
    margin-top: 0;
}

.subscriptionAmount
{
    text-align: center;
    font-family: PlayFair Display;
    font-size: 50px;
    margin: 0 0 30px 0;
}

.subscriptionIntro
{
    font-size: small;
    color: gray;
    text-align: center;
    margin-top: 0;
}

.trialButton
{
    width: 100%;
    background-color: white;
    border: 2px solid #ffc82d;
    border-radius: 20px;
    color: #ffc82d;
    padding: 10px 20px;
    margin-right: 10px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.trialButton:hover
{
    background-color: rgb(250, 250, 250);
    border: 2px solid #ffc82d;
    border-radius: 20px;
    color: #ffc82d;
    padding: 10px 20px;
    margin-right: 10px;
    text-align: center;
    text-decoration: none;
}

.subscribeButton
{
    background-color: #ffc82d;
    border: 2px solid #ffc82d;
    border-radius: 20px;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.subscribeButton:hover
{
    width: 100%;
    background-color: #f3cf6a;
    border: 2px solid #f3cf6a;
    border-radius: 20px;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
}

/* footer */
.footer
{
    height: 80px;
    background-color: #ffc82d;
    padding: 20px 80px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer img
{
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    align-self: center;
    padding: 0 5px;
}

.footer p
{
    color: white;
    padding: 0 5px;
}

@media only screen and (min-width: 1120px) and (max-width: 1260px)
{
    /* specification */
    #unitType
    {
        width: 300px;
        left: 30%;
    }

    #picker
    {
        width: 200px;
    }

    #unit
    {
        width: 250px;
    }

    #field
    {
        width: 130px;
        top: 40%;
    }

    /* contact */
    .contact-right
    {
    padding-right: 0;
    }

    /* subscription */
    .subscription-package
    {
    gap: 50px;
    padding: 0 40px;
    }

    .monthSubscription, .yearSubscription
    {
    gap: 10px;
    width: 160px;
    }

    .subscription-word h2
    {
    font-size:18px; 
    }
}

/* no display features & subscription becomes vertical */
@media only screen and (max-width: 1119px)
{
    /* hero */
    .hero h1
    {
        font-size: 40px;
    }

    .hero p
    {
        font-size: 15px;
    }

    #iphoneMass
    {
        width: 160px;
    }

    #iphoneLength
    {
        width: 150px;
    }

    /* specification */
    .specification
    {
        padding: 100px 80px 80px 80px;
        bottom: 0;
    }

    #unitType, #picker, #unit, #field
    {
        display: none;
    }

    /* contact */
    .contact
    {
        margin-top: -80px;
    }

    /* subscription */
    .subscription
    {
    flex-direction: column-reverse;
    justify-content: center;
    gap: 50px;
    }

    .subscription-word
    {
    align-items: center;
    }

    .subscription-word h1, .subscription-word h2
    {
        margin: 0;
        text-align: center;
    }

    .subscription-package
    {
        padding: 0;
    }
}

@media only screen and (min-width: 951px) and (max-width: 1119px)
{
    /* hero */
    .download-buttons button
    {
        font-size: 12px;
    }

    /* specification */
    .card
    {
        width: 300px;
        height: 170px;
    }

    /* contact */
    .contact-left h1
    {
    font-size:45px; 
    }

    .contact-left h2
    {
        font-size: 25px;
    }

    .contact-right
    {
    padding-right: 0;
    }

    #mockup
    {
    height: 650px;
    }
}

@media only screen and (max-width: 950px)
{
    /* contact becomes vertical */
    .contact
    {
        height: 700px;
        flex-direction: column;
        justify-content: center;
    }

    #contact-download-buttons
    {
        flex-direction: row;
    }

    #mockup
    {
        display: none;
    }

}

@media only screen and (min-width: 811px) and (max-width: 950px)
{
    /* specification */
    .card
    {
        width: 250px;
        height: 170px;
    }
}

/* specification & subscription becomes vertical */
@media only screen and (max-width: 810px)
{
    /* navigation bar */
    .middle-nav 
    {
        display: none;
    }

    /* hero */
    .hero h1
    {
        font-size: 35px;
    }

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

    /* specification */
    .specification
    {
        height: 700px;
    }

    .specification-info
    {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
    }

    .spec-group
    {
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .card
    {
        box-sizing: border-box;
        width: 100%;
        height: 160px;
    }

    /* contact */
    .contact
    {
        height: 600px;
    }
}

@media only screen and (max-width: 729px)
{
    .specification
    {
        padding: 150px 80px 80px 80px;
    }

    .subscription-package
    {
        gap: 40px;
    }
}

@media only screen and (max-width: 724px)
{
    .specification
    {
        padding: 190px 80px 80px 80px;
    }
}

/* subscription becomes vertical & horizontal padding change to 40px*/
@media only screen and (max-width: 679px)
{
    .navigation-bar
    {
        padding: 5px 40px;
    }

    .hero
    {
        padding: 80px 40px 0 40px;
    }

    .specification
    {
        padding: 100px 40px 80px 40px;
    }

    .contact
    {
        padding: 0 40px 0 40px;
    }

    .footer
    {
        padding: 20px 40px;
    }

    /* subscription */
    .subscription
    {
        height: 850px;
        padding: 20px 40px;
    }

    .subscription-word h1
    {
        font-size: 40px;
    }

    .subscription-word h2
    {
        font-size: 15px;
    }

    .subscription-package
    {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .monthSubscription, .yearSubscription
    {
        width: 100%;
        height: 300px;
        box-sizing: border-box;
    }

    .subscriptionAmount
    {
        font-size: 40px;
        margin: 0;
    }
}

@media only screen and (max-width: 649px)
{
    .specification
    {
        padding: 150px 40px 80px 40px;
    }

    /* contact */
    .contact-left h1
    {
        font-size:45px; 
    }

    .contact-left h2
    {
        font-size: 25px;
    }

}

@media only screen and (max-width: 644px)
{
    .specification
    {
        padding: 190px 40px 80px 40px;
    }
}

/* for small phones */
@media only screen and (max-width: 479px)
{
    .left-nav a:nth-of-type(2) 
    {
        display: none;
    }

    .hero h1
    {
        font-size: 32px;
    }

    .download-buttons
    {
        flex-direction: column;
    }

    .download-buttons button
    {
        font-size: 11px;
    }

    #iphoneMass
    {
        width: 120px;
    }

    #iphoneLength
    {
        width: 110px;
    }

    .specification
    {
        padding: 120px 40px 80px 40px;
        height: 780px;
    }

    .card
    {
        box-sizing: border-box;
        width: 100%;
        height: 180px;
    }

    .contact-left h1
    {
        font-size:40px; 
    }

    .contact-left h2
    {
        font-size: 20px;
    }

    #contact-download-buttons
    {
        flex-direction: column;
    }

    .footer img
    {
        width: 30px; 
        height: 30px;
    }

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

@media only screen and (max-width: 337px)
{
    .download-buttons button
    {
        font-size: 10px;
    }

    .specification
    {
        padding: 190px 40px 80px 40px;
    }

    .contact-left h1
    {
        font-size:35px; 
    }

    /* .contact-left h2
    {
        font-size: 15px;
    } */
}