body {
    height: 100vh; 
    margin: 0;
    display: flex;
    justify-content: center; 
    align-items: center; 
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
}

header {
    width: 80%;
}

.content-container {
    display: flex;
    gap: 20%;
    padding-top: 3%;
}

.input-container {
    display: flex;
    flex: 1;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.mobile-video-section {
    display: flex;
    flex: 1;
    justify-content: center;
}

#resizable-image {
    width: 300px; 
    transition: width 1s ease, height 1s ease, opacity 1s ease; 
}

.hidden {
    display: none; 
}

#fade-text {
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    font-size: 24px; 
    opacity: 0; 
    transition: opacity 0.5s ease; 
}

@font-face {
    font-family: 'CircularFont';
    src: url('/assets/fonts/CircularXXTT-ExtraBlack.ttf') format('truetype');
}

@font-face {
    font-family: 'CircularFontLight';
    src: url('/assets/fonts/CircularXXTT-Light.ttf') format('truetype');
}

h1 {
    margin: 0;
    font-size: 4.4em;
    font-family: "CircularFont", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    opacity: 0; 
    animation: fadeIn 1s forwards; 
}

#hero {
    color: white;
    height: 100vh; 
    align-items: flex-start; 
    justify-content: center; 
    text-align: center;
    padding: 40px 20px; 
}

.hero-image {
    width: 100%; 
    max-width: 600px; 
    height: auto; 
    margin-bottom: 20px; 
    opacity: 0; 
    animation: fadeIn 1s forwards;
}

.email-signup::placeholder {
    font-family: "CircularFontLight", serif;
    font-weight: 400;
    color: gray;
}

form {
    display: flex; 
    flex-direction: row; 
    justify-content: center; 
    align-items: center; 
    margin-top: 10px; 
}

input[type="email"] {
    width: 100%; 
    max-width: 500px; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    font-size: 16px; 
    animation: fadeIn 1s forwards; 
}

.cta-button {
    display: inline-block; 
    width: 100%;
    max-width: 525px;
    background-color: #28a745; 
    color: white; 
    padding: 10px 20px; 
    border: none; 
    border-radius: 5px; 
    text-decoration: none; 
    font-size: 1em; 
    cursor: pointer; 
    font-family: "CircularFont", serif;
    font-weight: 300;
    animation: fadeIn 1s forwards; 
}

.cta-button:hover {
    background-color: #218838; 
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0); 
}

.cta-button:disabled {
    background-color: gray;
    cursor: not-allowed;
}

#social-media {
    text-align: center; 
    padding: 20px; 
}

.social-icons {
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    animation: fadeIn 1s forwards; 
}

.social-icon {
    width: 60px; 
    height: auto; 
    transition: transform 0.3s; 
}

.shake {
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
}

.social-icon:hover {
    transform: scale(1.1); 
}

.result-text {
    display: none;
    font-family: "CircularFont", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}

.loader-wrapper {
    display: flex;
    justify-content: center; 
}

.loader {
    display: none;
    border: 4px solid #f3f3f3; 
    border-top: 4px solid #3498db; 
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}

#spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; 
}
.full-screen-loader {
    border: 8px solid #f3f3f3; 
    border-top: 8px solid #3498db; 
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite; 
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shake {
    10% {
      transform: translate3d(-1px, 0, 0) scale(1.1);
    }
    90% {
      transform: translate3d(-1px, 0, 0) scale(1.9);
    }
    20% {
      transform: translate3d(2px, 0, 0) scale(1.2);
    }
    80% {
      transform: translate3d(2px, 0, 0) scale(1.8);
    }
    30% {
      transform: translate3d(-4px, 0, 0) scale(1.3);
    }
    50% {
      transform: translate3d(-4px, 0, 0) scale(1.5);
    }
    70% {
      transform: translate3d(-4px, 0, 0) scale(1.7);
    }
    40% {
      transform: translate3d(4px, 0, 0) scale(1.4);
    }
    60% {
      transform: translate3d(4px, 0, 0) scale(1.6);
    }
    100% {
      transform: scale(2);
    }
}

#mobile-video {
    min-width: auto;
    min-height: auto;
    width: 100%;
    height: 100%;
}

#subscribe-form {
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    gap: 30px;
}

@media (max-width: 600px) {
    form {
        flex-direction: column; 
        align-items: center; 
        width: 100%; 
    }

    input[type="email"] {
        margin-right: 0; 
        margin-bottom: 10px; 
        width: 90%; 
        max-width: none;
    }

    .social-icon {
        width: 70px; 
        height: auto; 
        transition: transform 0.3s; 
    }

    button {
        width: 90%;
    }
}

@media (max-width: 600px) {
    #hero h1 {
        font-size: 2em;
    }

    #hero p {
        font-size: 0.9em;
    }

    #hero {
        padding-top: 20px;
    }

    .cta-button {
        width: 108%;
        margin-top: 20px;
        font-size: 0.9em;
    }

    .feature h3 {
        font-size: 1.2em;
    }

    .feature p {
        font-size: 0.8em;
    }

    input[type="email"] {
        margin-right: 0; 
        margin-bottom: 10px;
        width: 100%;
    }

    button {
        width: 100%; 
    }

    form {
        flex-direction: column; 
    }
}

@media (min-width: 769px) {

    header {
        width: 100%;
    }

    .web-header {
        display: block;
    }

    .mobile-header {
        display: none;
    }

    #hero {
        justify-content: flex-start;
        padding-top: 0px;
        padding-bottom: 0px;
    }

    h1 {
        padding-top: 20vh;
    }

    body {
        background: rgb(39, 28, 133); 
    }

    .content-container {
        padding-top: 0px;
        gap: 0;
    }

    .input-container {
        gap: 5%;
        justify-content: flex-start;
        padding-right: 4%;
    }

    .iphone-14 {
        width: 100%;
        height: 100vh;
    }

    #background-video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%);
        mix-blend-mode: lighten;
    }
}

@media (max-width: 768px) {
    #background-video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: auto;
        height: auto; 
        transform: translate(-50%, -50%);
        object-fit: fill;
        mix-blend-mode: lighten;
    }

    .web-header {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    body {
        background: rgb(36, 26, 122);
    }
}

@media (max-width: 768px) {
    .content-container {
        display: block;
    }
    
    .input-container {
        display: block;
    }

    #subscribe-form {
        padding-top: 15px;
        gap: 0px;
    }

    #mobile-video {
        width: 80%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0; 
        transform: translateY(20px); 
    }
    to {
        opacity: 1; 
        transform: translateY(0); 
    }
}
  
.iphone {
    display: inline-block;
    flex: 1;
    width: 260px;
}

.iphone-14 {
    position: relative;
}