:root {

    /* Main Colors */
    --puny-blue: #55A6E6;
    --puny-red: #FF6F61;
    --puny-green: #4CD0B6;
    --puny-yellow: #FAB900;

    --puny-blue-rgb: 85, 166, 230;
    --puny-red-rgb: 255, 111, 97;
    --puny-green-rgb: 76, 208, 182;
    --puny-yellow-rgb: 250, 185, 0;
}

#desktop-menu > a, 
#mobile-menu > a, 
a[role="button"] {
    text-decoration: none;
    color: inherit;
}

#desktop-menu > a:focus,
#mobile-menu > a:focus,
a[role="button"]:focus {
    outline: none;
}

/* Enable active state on touch for all elements */
body {
    font-family: 'Nunito', 'sans-serif' !important;
    -webkit-touch-callout: none; /* Prevent callout on long press */
    -webkit-tap-highlight-color: transparent; /* Disable tap highlight */
    touch-action: manipulation; /* Optimize for tapping */

}

#landing-page-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1920px;
}

a:hover {
    text-decoration: unset;
    color: unset;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3.5rem;
    border-radius: 1rem;
    background-color: #F2F2F2;
    margin: 10px;
    font-size: 2rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.01);
    text-align: center;
    transition: opacity 0.15s ease;
    -webkit-user-select: none;
    box-sizing: unset;
}

.temp:active {
    opacity: 0.5;
}

.button:active {
    opacity: 0.7;
}


#page-header {
    display: flex;
    align-items: center;
    padding: 1rem 4rem 0;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05); */
}

.mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    width: 4rem;
    padding: 0.35rem;
}

.mobile-menu-button svg {
    width: 3.6rem;
}

#open-menu-button {
    display: none;
}



#punybz-logo {
    height: 3rem;
}

#desktop-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 1.3rem;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 800;
}

#desktop-menu a {
    padding: 20px;
}

#desktop-login-button {
    background-color: var(--puny-blue);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    min-width: 5.2rem;
}

#mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15vh;
    gap: 0.2rem;
}

.mobile-menu-option {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.6);
    padding: 0 2rem;
}

#mobile-menu > #buttons-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10vh;
}

#mobile-menu .button {
    font-size: 1.6rem;
    font-weight: 700;
    min-width: 9rem;
    height: 2.6rem;
    color: white;
    border-radius: 1.5rem;
}

#mobile-register-button {
    background-color: var(--puny-red);
}

#mobile-login-button {
    background-color: var(--puny-blue);
}

#page-body {
    display: flex;
    flex-direction: column;
}

.sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 90vh;
    padding-top: 2rem;
    margin-top: 10rem;
    max-width: 1400px;
}

#section-1 {
    margin-top: 0;
    min-height: 75vh;
}


.sections-header-text {
    color: var(--puny-blue);
    text-align: center;
    font-weight: 600;
    line-height: 120%;
    width: 50vw;
    font-size: 4rem;
    margin: 10vh 0;
}

.highlight-text {
    color: var(--puny-red);
    font-weight: 700;
}

#variable-sub-section-1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 4rem;
}

#website-name-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px;
}

#website-name-input-wrapper {
    height: 2.8rem;
    width: 16rem;
    display: flex;
    align-items: center;
    padding: 0.4em 2rem;
    border-radius: 18px;
    background-color: #F2F2F2;
    font-family: 'Dongle';
    font-size: 1.8rem;
    color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.01);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05);
    box-sizing: unset;
}

#website-name-input {
    width: 100%;
    height: 1.2rem;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background-color: #F2F2F2;
}

#website-name-input-wrapper.focused {
    border: 1px solid rgba(0, 0, 0, 0.08);
}


#website-name-input::placeholder {
    color: rgba(0, 0, 0, 0.30);
}

#website-name-submit-button {
    background-color: var(--puny-blue);
    color: white;
    padding: 1rem 1rem 0.8rem;
    height: 2.7rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    width: 15ch;
    line-height: 1.2rem;
}


#section-1-mockup-container {
    display: flex;
    justify-content: center;
    margin: 0 0 3rem;
    gap: 3rem;
    position: relative;
    width: 75%;
    max-width: 420px;
}

#section-1-mockup-container > img {
    width: 100%;
    z-index: 2;
}

#section-1-mockup-container > video {
    position: absolute;
    width: 91%;
    top: 1.8%;
    left: 4.9%;
    z-index: 1;
    border-radius: 25px;
}

.puny-card {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 6rem;
    height: 6rem;
    box-shadow: 0 0 2px #55a6e6aa;
    border-radius: 10px;
    padding: 1rem 1rem 0.6rem;
    font-size: 1.4rem;
    box-sizing: unset;
}

.card-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.4rem;
    border-radius: 0.5rem;
    background-color: var(--puny-blue);
    box-sizing: unset;
}

.double-card {
    position: relative;
}

.double-card img {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 4px;
}

.image-card {
    background-image: url("assets/image2.jpg");
    background-position: center;
    background-size: cover;
    justify-content: flex-end;
    align-items: center;
}

.image-card > .card-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    line-height: 80%;
    font-weight: 100;
    font-size: 1rem;
    padding: 4px 3px 2px;
    border-radius: 3px;
    width: 110%;
}

.vertical-double-card {
    height: 14rem;
}

#section-2 {
    margin-top: 0;
    margin-bottom: 100px;
    width: 100%;
}

#section-2 .sections-header-text{
    width: 30vw;
}

#section-2-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
    gap: 1rem;
    margin-top: 4rem;
    width: 100%;
}

.section-2-card {
    align-items: center;
    justify-content: flex-end;
    height: fit-content;
    width: 100%;
    aspect-ratio: 1;
    line-height: 75%;
    font-size: clamp(1.8rem, 2.7vw, 3rem);
    padding: 2rem 1.5rem;
    border-radius: 14px;
    text-align: center;
    color: white;
    gap: 2vw;
    box-sizing: border-box;
}


.section-2-card > .card-icon-container {
    height: 4rem !important;
    width: 4rem !important;
    background-color: white;
    border: none;
    margin-top: 1rem;
    background-color: transparent;
}

.section-2-card svg {
    max-height: 100%;
    max-width: 100%;
}

.section-2-card > span {
    width: 95%;
    font-size: 1.8rem;
    font-weight: 600;;
    line-height: 2.5rem;
}

#section-3 {
    flex-direction: row;
    width: 100%;
    margin-top: 0;
    max-width: 1200px;
}

.section-3-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.section-3-column > .sections-header-text {
    width: 26rem;
    font-size: 3rem;
}

#section-3-mockup-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 20%;
    position: relative;
    width: 75%;
    max-width: 300px;
    overflow: hidden;
    border-radius: clamp(37px, 3.8vw, 50px);
}

#section-3-mockup-container > img {
    width: 100%;
    z-index: 2;
}

#section-3-mockup-container > .carousel {
    position: absolute;
    width: 89.5%;
    top: 2.7%;
    left: 5.5%;
    z-index: 1;
    height: 100%;
}

#section-3-cards-container {
    display: flex;
    flex-wrap: wrap;
    width: 22rem;
    gap: 1.2rem;
    justify-content: space-between;
}

#section-3-cards-container > :first-child {
    width: 100%;
}

#section-3-cards-container > :last-child {
    width: 100%;
} 

.section-3-card {
    width: 8.4rem;
    height: 8.4rem;
    font-size: 1.8rem;
    font-weight: 600;;
}

.carousel-item {
    height: inherit;
}

.carousel-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: absolute; 
    left: 0; 
    bottom: 18px; 
    width: 100%; 
    box-shadow: inset 0 -170px 45px -10px #55A6E6DD;
    padding: 250% 0 0;
    border-radius: 2%;
}

.carousel-caption-title {
    font-size: 2rem; 
    line-height: 3rem; 
}

.carousel-caption-body {
    font-size: 1rem; 
    line-height: 1.15rem; 
    padding: 0 0.8rem;
    color: white;
    margin-bottom: 2rem;
}


#profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    box-shadow: 0 0 2px #55a6e6aa;
}

#profile-container > div {
    flex-grow: 1;
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    position: relative;
    width: 18rem;
    aspect-ratio: 1;
    overflow: hidden;
}

#profile-container > div > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

#profile-message {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    bottom: 1.2rem;
    right: 50%;
    transform: translate(50%, 0);
    background-color: #0C2D5A;
    opacity: 0.90;
    color: white;
    width: 80%;
    line-height: 75%;
    padding: 1rem;
    font-size: 1.4rem;
    border-radius: 10px;
}

#profile-message > :first-child {
    font-size: 1.6rem;
    font-weight: 700;
}

#profile-container > div > span {
    position: absolute;
    bottom: 0.1rem;
    right: 3rem;
    font-size: 1.6rem;
    line-height: 70%;
}


.puny-example-card {
    font-size: 2rem !important;
    line-height: 75%;
    position: relative;
}

.puny-example-card > img {
    position: absolute;
    top: 50%;
    transform: translate(0, -50%)
}

.puny-example-card > .card-text-container > span {
    font-size: 1.2rem;
}



#section-4-cards-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    width: fit-content;
}

.section-4-card {
    line-height: 75%;
    /* font-size: 2rem; */
    font-size: clamp(1rem, 2vw, 2rem);
    width: 9vw;
    height: 9vw;
}

.section-4-card > .card-text-container {
    font-size: inherit;
    border-radius: 10px;
    width: 100%;
    padding: 0.6rem 0.2rem 0.3rem;
    text-align: center;
    line-height: 70%;
}


#section-5 {
    margin-top: 10rem;
    gap: 5rem;
    min-height: 70vh;
}

#section-5-header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80vw;
}

#section-5-header-text > p {
    margin: 0 !important;
    width: 80vw;
}

#section-5-cards-container {
    display: flex;
    gap: 1rem;
    width: 52vw;
}

.card-container-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: inherit;
}

.section-5-card {
    font-size: 1.7rem;
    line-height: 100%;
    font-weight: 600;;
    width: 10vw;
    height: 10vw;
}


.puny-card-header {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0.4rem;
}

.puny-card-header > span {
    padding-bottom: 0.4rem;
}

.puny-card-header > .card-icon-container {
    background-color: white;
}

#ctr-graph {
    display: flex;
    width: 100%;
    padding-bottom: 1rem;
    justify-content: center;
}

#ctr-graph svg{
    width: 8vw;
}


.section-5-card > span {
    font-size: 1.7rem;
    line-height: 100%;
    padding: 0 0.5rem 0.5rem;
}

#subscribers-analytics-card {
    font-size: 1.2rem;
    font-weight: 600;
}

#section-6 {
    margin-top: 10rem;
    min-height: 60vh;
}


/* Desktop exclusive style */
@media screen and (min-width: 1150px) {
    .mobile-menu-button {
        display: 'none' !important;
    }
}


/* Mobile styling, includes small devices and tablets */
@media screen and (max-width: 1150px) {


    #punybz-logo-container {
        position: absolute;
        left: 50%;
        transform: translate(-50%, 0);
        height: 2rem;
    }

    #open-menu-button {
        display: flex;
        padding: 0.6rem;
    }

    #close-menu-button {
        padding: 1rem;
    }

    #desktop-menu {
        display: none;
    }

    #desktop-login-button {
        display: none;
    }

    #variable-sub-section-1 {
        flex-direction: column;
    }

    #website-name-submit-button {
        width: fit-content;
    }

    #section-3 {
        flex-direction: column;
        gap: 6rem;
    }

    .section-4-card > .card-text-container { 
        height: 3rem;
        font-size: 2.4rem;
    }

    .carousel-caption {
        box-shadow: inset 0 -150px 45px -10px #55A6E6DD;
    }

    .carousel-caption-title {
        font-size: 2rem; 
        line-height: 3rem; 
    }
    
    .carousel-caption-body {
        font-size: 1rem; 
        line-height: 1.2rem; 
    }

    #section-6 {
        min-height: 95vh;
    }


}


/* Small devices */
@media screen and (max-width: 490px) {
    #page-header {
        padding: 1rem;
    }

    #punybz-logo {
        height: 2rem;
    }

    .mobile-menu-button {
        height: 5rem;
        width: 5rem;
    }

    #close-menu-button {
        padding: 1.5rem;
    }
    
    .mobile-menu-button svg {
        width: 2.4rem;
    }

    .sections-header-text {
        font-size: 2.5rem;
        font-weight: 700;
        width: 25rem;
    }

    #section-1-mockup-container {
        margin: 4rem;
        gap: 1.3rem;
    }

    .puny-card {
        width: 6rem;
        height: 6rem;
    }

    .vertical-double-card {
        height: 14rem;
    }

    #website-name-form {
        flex-direction: column;
        gap: 20px;
    }

    #website-name-input-wrapper {
        width: 65vw;
        height: 3rem;
        font-size: 2rem;
    }

    #website-name-submit-button {
        font-size: 1.25rem;
        padding: 1.1rem 1.2rem;
    }

    #section-1 > .sections-header-text {
        margin: 5vh 0;
    }

    #section-2 > .sections-header-text {
        font-size: clamp(2.5rem, 40vw, 3.5rem);
        width: 20rem;
    }

    .section-2-card {
        font-size: clamp(3rem, 12vw, 6rem);
        width: 70vw;
        height: 70vw;
        gap: 14%;
    }

    .section-2-card > .card-icon-container {
        height: 18vw !important;
        width: 18vw !important;
    }

    #section-2-cards-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 85vw;
        margin-top: 0;
    }

    .section-3-column > .sections-header-text {
        width: 24rem;
        font-size: 3.5rem;
    }

    #section-3-cards-container {
        width: 24.2rem;
        gap: 1.4rem;
    }

    .section-3-card {
        width: 9.4rem;
        height: 9.4rem;
        font-size: 2.4rem;
    }

    #section-4 {
        margin-top: 5rem;
    }

    #section-4 > .sections-header-text {
        font-size: 5rem;
    }

    #section-4-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .section-4-card {
        font-size: clamp(2rem, 6.4vw, 4rem);
        width: 30vw;
        height: 30vw;
    }

    .section-4-card > .card-text-container { 
        font-size: 2rem;
    }

    #section-5 .sections-header-text {
        font-size: clamp(3rem, 12vw, 3.5rem);
    }

    #section-5-cards-container {
        flex-direction: column;
        width: 80vw;
        gap: 2rem;
    }
    
    .section-5-card {
        line-height: 70%;
        font-size: 2rem;
        width: 30vw;
        height: 30vw;
    }

    #ctr-graph svg{
        width: 26vw;
    }

    #section-5-header-text {
        gap: 4rem;
    }

    #subscribers-analytics-card {
        font-size: 1.4rem;
    }
    

    #section-6 > .sections-header-text {
        font-size: 3.7rem;
    }
    

    
    html {
        font-size: 13px;
    }
}

/* Tablets */
@media screen and (min-width: 491px) and (max-width: 1150px) {

    #page-header {
        padding: 2rem 2rem;
    }

    .mobile-menu-option {
        font-size: 2rem;
    }

    #punybz-logo {
        height: 4rem;
    }

    .sections-header-text { 
        width: min(51rem, 80%);
        font-size: clamp(3rem, 10vw, 4rem);
    }

    #section-2 .sections-header-text {
        width: 30rem !important;
    }

    #section-2-cards-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 80vw;
        gap: 2rem;
    }

    .section-2-card {
        font-size: clamp(3rem, 5vw, 4rem);
        gap: clamp(3rem, 5vw, 4rem);
        line-height: 70%;
    }

    .section-2-card > .card-icon-container { 
        width: 8.5vw !important;
        height: 8.5vw !important;
    }

    .section-3-column > .sections-header-text {
        width: 40rem;
        font-size: 5.5rem;
    }

    #section-4-cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .section-4-card {
        font-size: 3.2rem;
        width: 18vw;
        height: 18vw;
    }

    #section-5-cards-container {
        flex-direction: column;
        width: fit-content;
        gap: 2rem;
    }
    
    .section-5-card {
        line-height: 100%;
        font-size: 2.2rem;
        width: 24vw;
        height: 24vw;
    }

    .section-5-card > span {
        font-size: inherit;
    }

    #subscribers-analytics-card {
        font-size: 1.6rem;
    }
    

    html {
        font-size: 14px;
    }

}

/* Desktop */

