@font-face {
    font-family: 'HelveticaNeueMedium';
    src: url('/HelveticaNeueMedium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'HelveticaNeueMedium', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    opacity: 1; /* show immediately */
}

.header {
    margin: 20px 0 30px 0;
    padding: 0 20px;
}

h1 {
    font-family: 'HelveticaNeueMedium', Arial, sans-serif;
    font-size: 54px;
    line-height: 0.95;
    text-transform: lowercase;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.meme-container {
    margin: 0 0 30px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.meme-canvas {
    position: relative;
    width: 100%;
    display: inline-block;
    background-color: #fff;
}

.meme-image {
    width: 100%;
    height: auto;
    display: block;
}

.meme-text {
    position: static;
    width: 100%;
    padding: 10px 20px;
    font-family: 'HelveticaNeueMedium', Arial, sans-serif;
    font-size: 52px;
    line-height: 1;
    text-transform: none;
    color: black;
    text-shadow: none;
    z-index: auto;
    text-align: center;
    word-wrap: break-word;
}

.meme-top {
    background: #fff;
    min-height: 160px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    border-bottom: 3px solid #000;
}

.generator {
    margin: 0;
    padding: 0 20px 30px;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 3px solid #000;
    border-radius: 0;
    font-size: 18px;
    font-family: 'HelveticaNeueMedium', Arial, sans-serif;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

button {
    padding: 15px;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'HelveticaNeueMedium', Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #333;
}

.laugh {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    animation: floatUp 2s forwards;
    opacity: 0;
    background-color: #000;
    color: #fff;
    padding: 8px 12px;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(5deg);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 42px;
    }
    
    .meme-text {
        font-size: 38px;
    }
    
    button {
        font-size: 20px;
    }
    
    .meme-top {
        min-height: 120px;
        padding: 16px;
    }
}