/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: Lilita One;
    background-color: black;
    text-align: center;
    font-size: 30px;
}

/* Border container */
.border-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: calc(10vw); /* Dynamically calculated padding */
    pointer-events: none; /* No interactions with border */
    overflow: hidden;
}

.content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: calc(10vw); /* Dynamically calculated margin to match border */
    margin-top:200px;
    padding: 10px;
    background-color: black;
    z-index: 1;
    transform: scale(0.80); /* Initial scaling */
    transform-origin: top; /* Ensure scaling happens from the top */
}

/* Adjusting list style */
ul {
    list-style-type: none; /* Remove bullet points */
    padding-left: 0; /* Ensure no left padding */
    margin: 0; /* Ensure no margin */
}

/* Responsive images and text */
.content img {
    width: 100%;
    max-width: 350px; /* Ensure logo doesn't exceed 300px */
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Images on the border */
.image {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: moveAround 30s linear infinite;
    pointer-events: none;
}

/* Animation keyframes */
@keyframes moveAround {
    0% {
        top: 0;
        left: 0;
        opacity: 1;
    }
    25% {
        top: 0;
        left: 100%;
        transform: translate(-100%, 0);
        opacity: 1;
    }
    50% {
        top: 100%;
        left: 100%;
        transform: translate(-100%, -100%);
        opacity: 1;
    }
    75% {
        top: 100%;
        left: 0;
        transform: translate(0, -100%);
        opacity: 1;
    }
    99% {
        top: 0;
        left: 0;
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .border {
        padding: calc(8vw); /* Reduce padding for smaller screens */
    }

    .content {
        margin: calc(8vw); /* Adjust margin to avoid overlap */
        transform: scale(0.85); /* Adjust scale */
        margin-top: 20px; /* Lower content to avoid overlapping top border */
    }

    .image {
        width: 80px;
        height: 80px;
    }

    .content img {
        max-width: 250px;
    }
}

@media screen and (max-width: 480px), (max-height: 700px) {
    .border {
        padding: calc(5vw); /* Minimal padding for very small screens */
    }

    .content {
        margin: calc(5vw); /* Reduce margin to fit smaller screens */
        margin-top: 70px; /* Drop content further down */
        transform: scale(0.70); /* Further scale down content */
    }

    .image {
        width: 65px;
        height: 65px;
    }

    .content img {
        max-width: 200px; /* Ensure the logo is not too wide */
    }
}
