<script setup lang="ts">
defineProps<{
    title?: string;
    blurb?: string;
}>();
</script>

<template>
    <div class="glass-box glass glass-border">
        <h2 v-if="title">{{ title }}</h2>
        <p v-if="blurb">{{ blurb }}</p>
        <slot />
    </div>
</template>

<style scoped>
.glass-box {
    width: clamp(280px, 100%, 700px);
    gap: 1em;
    padding: 2em;
}

h2 {
    font-size: 2rem;
    text-align: center;
}

p {
    text-align: center;
    width: 100%;
    opacity: 0.7;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .glass-box {
        padding: 1.25em;
        min-height: unset;
    }
}
</style>
