@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sarina&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "DM Sans", sans-serif;
}
html, body {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: black;
    animation: fadeIn 0.8s forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-out {
    animation: fadeOut 0.5s forwards;
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid black;
}
.logo img {
    height: 40px;
}
nav a {
    margin: 0 15px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    font-size: 18px;
    margin: 0 15px;
    padding: 10px;
    transition: transform 0.2s ease, background 0.2s ease;
}
nav a:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@keyframes float {
    0%, 100% { transform: translateY(20px); }
    50% { transform: translateY(-20px); }
}

h1.michu {
    font-family: "Sarina", cursive;
    color: white;
    font-size: 70px;
    animation: float 4s ease-in-out infinite;
}
.container { 
    width: 95vw;
    height: 80vh;
    border: 2px solid black;
    border-radius: 10px;
    overflow: hidden;
    background: radial-gradient(100% 100% at var(--28-x-position) var(--28-y-position), #ffffff -76%, transparent),
                radial-gradient(100% 100% at var(--29-x-position) var(--29-y-position), #9385ff 0%, transparent),
                radial-gradient(100% 100% at var(--30-x-position) var(--30-y-position), #6c00f0 31%, transparent),
                #ffffff;
    animation-name: main;
    animation-iteration-count: infinite;
    animation-duration: 4s;
    transition-timing-function: ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

@property --28-x-position {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 20%;
}

@property --28-y-position {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 80%;
}

@property --29-x-position {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 80%;
}

@property --29-y-position {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 20%;
}

@property --30-x-position {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 80%;
}

@property --30-y-position {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 80%;
}

:root {
    --28-x-position: 20%;
    --28-y-position: 80%;
    --29-x-position: 80%;
    --29-y-position: 20%;
    --30-x-position: 80%;
    --30-y-position: 80%;
}

@keyframes main {
    25% {
        --28-x-position: 15%;
        --28-y-position: 15%;
        --29-x-position: 85%;
        --29-y-position: 80%;
    }
    50% {
        --28-x-position: 80%;
        --28-y-position: 15%;
        --29-x-position: 15%;
        --29-y-position: 85%;
        --30-x-position: 20%;
        --30-y-position: 20%;
    }
}
iframe {
    width: 100%;
    height: 100%;
    border: none;
}
footer {
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-weight: bold;
    border: 2px solid black;
    border-radius: 50px;
}
.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 40px;
    object-fit: cover;
    margin-bottom: 30px;
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 4px solid white;
}
#particles-container-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* responsive design for smaller screens */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
    }

    .logo img {
        height: 30px; /* smaller logo */
    }

    nav {
        margin-top: 10px;
    }

    nav a {
        margin: 0 10px;
        font-size: 14px;
    }

    .container {
        width: 90vw;
        height: 70vh;
    }

    h1 {
        font-size: 50px; /* adjust font size for readability */
    }

    footer {
        font-size: 14px;
        padding: 8px;
        border-radius: 30px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 25px; /* even smaller logo for mobile */
    }

    nav a {
        font-size: 12px;
        margin: 0 5px;
    }

    .container {
        width: 95vw;
        height: 65vh;
    }

    h1 {
        font-size: 40px;
    }

    footer {
        font-size: 12px;
        padding: 6px;
    }
}