:root {
    --font-main: 'Patrick Hand', cursive;
    --color-text: #333;
    --color-dark-border: #2c2c2c;
    --color-white-outline: #ffffff;
    --pfp-bob-height: 4px;

    /* Sticker Effect Properties */
    --sticker-dark-border-thickness: 2px;
    --sticker-white-outline-thickness: 3px;
    --sticker-shadow-offset: 5px;
    --sticker-shadow-blur: 8px;
    --sticker-shadow-color: rgba(0, 0, 0, 0.25);

    /* Background Stripes Properties */
    --color-bg-base: rgb(237, 253, 181);
    --color-bg-stripe: rgb(208, 222, 155);
    --bg-stripe-angle: 75deg;
    --bg-stripe-width: 60px;
    --bg-dim-amount: 0.35;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg-base);
    background-image:
        linear-gradient(rgba(0, 0, 0, var(--bg-dim-amount)), rgba(0, 0, 0, var(--bg-dim-amount))),
        repeating-linear-gradient(
            var(--bg-stripe-angle),
            var(--color-bg-stripe) 0,
            var(--color-bg-stripe) var(--bg-stripe-width),
            var(--color-bg-base) var(--bg-stripe-width),
            var(--color-bg-base) calc(var(--bg-stripe-width) * 2)
        );
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem 1rem;
    max-width: 737px;
    margin: 0 auto;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  width: 100%;
}

@keyframes bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(calc(-1 * var(--pfp-bob-height)));
    }
}

@keyframes sway {
    from {
        transform: rotate(-4deg);
    }
    to {
        transform: rotate(4deg);
    }
}

@keyframes slow-sway {
    0%, 100% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(-5deg);
    }
}

.sticker-effect {
    box-shadow: 
        0 0 0 var(--sticker-dark-border-thickness) var(--color-dark-border),
        0 0 0 calc(var(--sticker-dark-border-thickness) + var(--sticker-white-outline-thickness)) var(--color-white-outline),
        var(--sticker-shadow-offset) var(--sticker-shadow-offset) var(--sticker-shadow-blur) var(--sticker-shadow-color);
}

.profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    animation: bob 3s ease-in-out infinite;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: bolder;
    paint-order: stroke fill;
    -webkit-text-stroke: 5px white;
}

.description-card {
    background-color: #fff;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.4;
    width: 100%;
    max-width: 400px;
}

.hot-buttons-container,
.grid-buttons-container {
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 0 0 0;
}

.button-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease-out;
}

.hot-button {
    width: 100px;
    height: 100px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
}

.hot-button .icon {
    width: 50%;
    height: 50%;
    transform: rotate(0deg);
    transition: transform 0.3s ease-out;
}

.hot-buttons-count-4 {
    max-width: 200px;
}

.hot-buttons-count-5 {
     max-width: 300px;
}

.hot-buttons-count-6 {
    max-width: 300px;
}

.grid-buttons-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 450px;
    justify-items: center;
}

.grid-buttons-container .grid-button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
}

.grid-button {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    width: 180px;
    height: auto;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
}

.grid-button .icon {
    width: auto;
    height: 1.2em;
    margin-bottom: 0;
}

.grid-button .label {
    color: var(--color-white-outline);
    font-size: 1rem;
    white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
    .hot-button:hover {
        transform: scale(1.1);
    }
    
    .hot-button:hover .icon {
        animation: sway 0.8s ease-in-out infinite alternate;
    }

    .grid-button:hover {
        transform: scale(1.05);
    }
}

.decorations-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 300px;
    padding-top: 1rem;
}

.decoration-image {
    width: 60px;
    height: 60px;
    animation: slow-sway 5s ease-in-out infinite alternate;
}

.decoration-image:nth-child(2) { animation-delay: -1.2s; }
.decoration-image:nth-child(3) { animation-delay: -2.5s; }
.decoration-image:nth-child(4) { animation-delay: -3.8s; }