/*   **********    SETUP OF DOCUMENT     **********     */

html {
    font-size: 12px;
    background-color: black;
}

body {
    width: 675px;
    height: 600px;
    overflow: hidden;

}

/*   **********    MAIN & SECTION ELEMENTS     **********     */
main {
    position: relative;
    width: 42.0rem;
    height: 37.5rem;
    overflow: hidden;
    background-color: #0117ab;
}

section {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
}

/*   **********    SCREEN 1 ELEMENTS     **********     */

.pepsi-logo {
    position: absolute;
    width: 200px;
    /* adjust size */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pepsi-bottle {
    width: 550px;   /* smaller */
    top: 8%;
    left: 75%;      /* move further right */
    transform: translate(-50%, 0) scale(0);
}

img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


/*   **********    SCREEN 2 ELEMENTS     **********     */

#screen2 {
    position: relative;
    overflow: hidden;
}

.red {
    position: absolute;
    bottom: 0%;
    opacity: 0;
}

#screen2 {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#screen2 h1 {
    position: relative;
    /* or absolute if you want exact control */
    font-family:  Helvetica, sans-serif;
    font-size: 3rem;
    font-weight: 300px;
    color: white;
    letter-spacing: 7px;
    margin: 71px 0;
    text-align: center;
    opacity: 1;
    transform: scale(0);
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.7);
}

.ice {
    position: absolute;
    width: 170px;
    top: -127px;
    /* start above screen */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}


.pepsi-bottle {
    position: absolute;   /* MUST HAVE */
    width: 550px;
    top: 10%;
    left: 75%;
    transform: translate(-50%, 0) scale(0);
}

.pepsi3 {
    position: absolute;
    width: 400px;
    /* adjust size to fit screen */
    bottom: -3%;
    /* start near bottom */
    left: 50%;
    /* center horizontally */
    transform: translateX(-50%) scale(0);
    /* start hidden and small for pop effect */
    opacity: 0;
    /* start invisible */
}

.cool {
    position: absolute;
    bottom: 58%;
    /* adjust for screen2 layout */
    left: 50%;
    transform: translateX(-50%) scale(0);
    color: rgb(251, 251, 251);
    opacity: 0;

}



#screen3 {
    position: relative;
    height: 450px;
    width: 505px;
    background-color: #010f78;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#screen3 h1 {
    font-family: "Arial Black", sans-serif;
    font-size: 50px;
    line-height: 0.7;
    color: #ffffff;
    margin: 5px 0;
    z-index: 1; /* Behind bottle */
}

#screen3 .pepsi3 {
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10; 
    width: 400px; 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}



.pepsi-final {
    width: 400px;  /* hero size */
}

.ice {
    width: 220px;  /* bigger ice */
}

#screen3 h1 {
    opacity: 0;
    transform: translateY(50px);
}
.pepsi3 {
    width: 400px;   /* increase size */
}


.cta {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
    opacity: 0;
    z-index: 20;
    text-align: center;
}
