@font-face {
    font-family: 'DeFonte';
    src: url('DeFonte reduced Normale.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cedarville Cursive';
    src: url('CedarvilleCursive-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

html, body {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: fixed;
    touch-action: none;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    padding-top: 15vh;
}

.container {
    text-align: center;
    padding: 60px 40px;
    position: relative;
    z-index: 2000;
}

.title {
    font-family: 'DeFonte', serif;
    font-size: 120px;
    font-weight: normal;
    color: #000;
    margin-bottom: 50px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: transform 0.1s ease-out;
}

.title:active {
    transform: scale(0.95);
}

.hint {
    font-family: 'Cedarville Cursive', cursive;
    font-size: 20px;
    position: absolute;
    top: -5px;
    right: -15px;
    opacity: 0;
    pointer-events: none;
    transform-origin: 0 0;
}

.hint.show {
    animation: slideOut 1s ease-out forwards;
    opacity: 1;
    transform: translate(30px, -30px) rotate(30deg) scale(1);
}

.hint.show.pulse {
    animation: slideOut 1s ease-out forwards, pulse 1.5s ease-in-out 1s infinite;
}

.hint.hide {
    animation: poofQuick 0.3s ease-out forwards;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(30px, -30px) rotate(30deg) scale(1);
    }
    50% {
        transform: translate(30px, -30px) rotate(30deg) scale(1.1);
    }
}

@keyframes slideOut {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(30px, -30px) rotate(30deg) scale(1);
    }
}

@keyframes poof {
    0% {
        opacity: 1;
        transform: translate(30px, -30px) rotate(30deg) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(30px, -30px) rotate(30deg) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translate(30px, -30px) rotate(30deg) scale(0);
    }
}

@keyframes poofQuick {
    0% {
        opacity: 1;
        transform: translate(30px, -30px) rotate(30deg) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(30px, -30px) rotate(30deg) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translate(30px, -30px) rotate(30deg) scale(0);
    }
}

.little-guy {
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.1s;
}

.little-guy:active {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.links {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.link {
    font-family: 'Cedarville Cursive', cursive;
    font-size: 24px;
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.link-text {
    position: relative;
    display: inline-block;
}

.squiggle {
    position: absolute;
    left: -2%;
    bottom: -8px;
    width: 104%;
    height: 14px;
    pointer-events: none;
}

.squiggle path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 0.6s ease-in-out;
}

.link:hover .squiggle path {
    stroke-dashoffset: 0;
}

@media (max-width: 768px) {
    body {
        padding-top: 15vh;
        padding: 20px;
    }

    .container {
        padding: 60px 20px;
    }

    .title {
        font-size: 90px;
    }

    .links {
        flex-direction: row;
        gap: 30px;
    }
}
