/* Main Parent */
.introduction-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: calc(var(--base-padding) * 2);
    box-sizing: border-box;
    height: 99vh;
    margin-top: calc(var(--base-padding)*-2);
}

/* Secondary parent */
.introduction {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Introduction Image */
.introduction-image {
    width: 250px;
    height: 200px;
    overflow: hidden;
    border-radius: var(--bigger-radius); 
    margin-right: 20px; /* Space between image & text */
} .introduction-image:hover {
    transform: scale(1.05);
}
.introduction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--bigger-radius); 
}

/* Introduction Text */
.introduction-text {
    flex: 1; /* Fill the rest of the space */
    font-size: 1.2rem;
    max-width: 20vw;
}
.introduction-header, .introduction-text p {
    margin: 0; /* Remove default margin */
}

/* Wave Animation */
.wave .emoji, .backup {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: contain;
    background-repeat: no-repeat;
} .wave img {
    animation: wave 2.5s ease-in-out 1;
} .wave img:hover {
    animation: wave2 2.5s ease-in-out 1;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(15deg); }
    40% { transform: rotate(-5deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}
/* for some fucking reason, the animation doesn't play on hover if it already played before, so a duplicate is needed */
/* don't ask me, i dont understand either */
@keyframes wave2 { 
    0% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(15deg); }
    40% { transform: rotate(-5deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.introduction-text button {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1.2rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: var(--default-radius);
    cursor: pointer;
    transition: background-color var(--transition-duration);
} .introduction-text button:hover {
    background-color: #555;
} .introduction-text button:disabled {
    opacity: 50%;
} .introduction-text button:disabled:hover {
    background-color: #333;
}

@media screen and (orientation: portrait) {
    .introduction-container {
        height: 25vh;
        margin: var(--base-padding);
    }
    .introduction-image {
        width: 36vw;
        max-height: 25vh;
        height: 36vw;
    }
    .introduction-text {
        max-width: 50vw;
        font-size: 2.3rem;
    }
    .introduction-text button {
        display: none;
    }
}