@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro:ital,wght@0,400;0,700;1,400&display=swap');

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

body {
    background: #f5f0e8;
    color: #2c2a25;
    font-family: 'Anonymous Pro', monospace;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#card {
    max-width: 600px;
    width: 100%;
    display: grid;
    grid-template-rows: 300px auto auto;
    gap: 1.5rem;
    align-items: start;
}

#card .image-slot {
    display: flex;
    align-items: flex-end;
}

#card img {
    max-width: 100%;
    max-height: 300px;
    height: auto;
    width: auto;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

#card .text-slot p {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    line-height: 1.7;
    font-weight: 400;
}

#card .caption {
    margin-top: 0.5rem;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    line-height: 1.7;
    font-weight: 400;
    color: #2c2a25;
}

/* gap - расстояние между кнопками */
.controls {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* font size - размер кнопок */
a.reset {
    color: #2c2a25;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font-family: 'Anonymous Pro', monospace;
    font-size: clamp(2rem, 5vw, 3rem);
    background: none;
    border: none;
    padding: 0;
}

a.reset:hover {
    color: #6b6560;
}

/* font size - размер кнопок */
a.back {
    color: #6b6560;
    text-decoration: none;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
}

a.back:hover {
    color: #2c2a25;
}