/* Define global variables for colors */
:root {
    --primary-color: #ADFF00;  /* Neon green */
    --secondary-color: #FFF;   /* White */
    --background-color: #060606; /* Dark background */
    --accent-color: #1a1a1a;   /* Dark grey for accents */
}

/* General Styles */
body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 16px;
}

.logo {
    display: flex;
    align-items: center;
}

.app-icon {
    width: 50px;
    height: auto;
    margin-right: 16px;
}

.party {
    font-size: 32px;
    font-weight: 600;
    font-style: italic;
    color: var(--primary-color);
    line-height: 18px;
}

.cam {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
}

.site-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    box-sizing: border-box;
}

.main-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 40px 0;
    gap: 20px;
}

.left-content, .right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.left-content {
    justify-content: space-between;
}

.right-content {
    justify-content: center;
    align-items: flex-end;
}

.main-heading {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.main-heading .highlight {
    color: var(--primary-color);
}

.main-heading .normal {
    color: var(--secondary-color);
}

.main-paragraph {
    color: rgba(255, 255, 255, 0.96);
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.main-paragraph .highlight {
    color: var(--primary-color);
}

.text-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.text-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 0; /* Remove margin-bottom so that it's closer to the QR code */
    padding-bottom: 10px; /* Optionally add a small padding for breathing space */
    width: 100%;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.text-box.hide-on-mobile {
    display: none; /* Ensure it hides on mobile */
    margin-bottom: auto;
}

.text-box h2 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    position: absolute;
    bottom: 0; /* Stick the h2 to the bottom of the parent div */
    left: 0; /* Optionally, align it to the left */
    width: 100%; /* Ensure it takes full width if needed */
}

.text-box h2 .highlight {
    color: var(--primary-color);
}

.qr-code {
    width: 300px;
    height: 300px;
    background-color: var(--secondary-color);
    margin-top: 24px;
    border-radius: 16px; /* Adjust as needed */
    overflow: hidden; /* Clips the image to the rounded corners */
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fits within the container */
}

.app-preview {
    flex-shrink: 0;
    position: relative;
    width: 430px;
    height: 890px;
    border: 3.5px solid var(--primary-color);
    border-radius: 72px;
    overflow: hidden;
}

.image-wrapper {
    padding: 14px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.app-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.get-partycam {
    height: 250px;
    background-color: var(--accent-color);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}

.get-partycam h2 {
    color: var(--secondary-color);
    font-size: 40px;
    font-weight: 500;
    line-height: 48px;
}

.button {
    display: inline-block;
    background-color: #000;
    padding: 0;
    text-decoration: none;
    border-radius: 15px;
    margin: 10px;
    width: 248px;
    height: 72px;
    overflow: hidden;
    transition: transform 0.2s;
}

.button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.button:hover {
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

footer {
    padding: 20px 0;
    text-align: center;
}

.social-icons a {
    color: var(--secondary-color);
    margin: 0 10px;
    text-decoration: none;
}

/* Responsiveness */
@media (min-width: 1512px) {
    body {
        display: flex;
        justify-content: center;
    }
    .site-container {
        padding: 0;
    }
}

@media (max-width: 1200px) {
    .site-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .right-content {
        align-items: center;
        margin-top: 40px;
    }

    .qr-code, .hide-on-mobile {
        display: none;
    }
}

/* Adjust height for mobile devices */
@media (max-width: 768px) {
    .get-partycam {
        height: auto; /* Allow the content to define the height */
        padding: 20px; /* Reduce padding if necessary */
    }
}

@media (min-width: 768px) {
    .text-box.hide-on-mobile {
        display: block; /* Re-enable it on tablet and larger screens */
    }
}

@media screen and (min-width: 1024px) {
    .main-container {
        display: flex;
        flex-wrap: nowrap;
    }

    .left-content {
        flex: 0 0 60%;
    }

    .right-content {
        flex: 0 0 35%;
    }
}

/* Adjust styles for mobile devices */
@media (max-width: 768px) {
    .app-preview {
        width: calc(100% - 32px); /* 100% width minus 16px padding on both sides */
        max-width: 100%; /* Ensure the width does not exceed 100% */
        height: auto; /* Adjust height to maintain aspect ratio */
        padding: 0 16px; /* Add 16px padding on left and right */
    }

    .image-wrapper {
        padding: 0; /* Remove internal padding for a better fit */
    }

    .app-preview img {
        width: 100%;
        height: auto; /* Maintain the aspect ratio of the image */
        object-fit: contain; /* Ensure the image is contained within the boundaries */
    }
}