:root {
    --background: #FBFBFB;
    --main-color: #191919;
    --main-text: #FF785A;
}

html,
body {
    background: var(--background);
    margin: 0;
    font-family: 'Karla', sans-serif;
}

/*typography*/

h1,
h2,
h3 {
    text-align: center;
}

h1,
h2 {
    color: var(--main-text);
    margin: 0;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

h3 {
    margin: 32px;
}

/* layout */

header {
    background-color: var(--main-color);
}

.header-inner {
    display: flex;
    align-items: center;
    margin: 0 auto;
    width: 370px;
    gap: 15px;
    padding: 24px 0 0 0;
}

.pumpkin-img {
    width: 80px;
}

.controls-container {
    display: flex;
    flex-direction: column;
    width: 280px;
    margin: 0px auto;
}

/* controls */

.emotion-radios {
    display: flex;
    flex-direction: column;
    border: 2px solid #bcbcbc;
    border-radius: 6px;
}

.radio {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #bcbcbc;
    padding: 8px 8px;
}

.radio:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.radio:last-child {
    border-bottom: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

label {
    font-size: 14px;
    padding: 3px;
    width: 100%;
    cursor: pointer;
}

.highlight {
    background-color: #ff785a26;
    color: #FF785A;
    font-weight: bold;
    accent-color: #191919;
}

input[type="radio"] {
    cursor: pointer;
}

.gifs-check {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px;
}

.gifs-check-label {
    width: unset;
    margin-right: 5px;
}

.get-image-btn {
    background-color: var(--main-color);
    color: var(--main-text);
    padding: 15px 19px;
    font-size: 24px;
    border: none;
    border-radius: 5px;
    margin-bottom: 8px;
}

.additional-images {
    display: flex;
    justify-content: space-between;
    margin-top: 20px; /* 이미지와 컨텐츠 사이의 간격 조정 */
}

.additional-images img {
    width: 45%; /* 이미지 크기 조절 */
    height: auto;
}

/* modal */
.meme-modal {
    display: none;
    /*flex when displayed*/
    position: fixed;
    margin: auto;
    top: 80px;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    width: 440px;
    height: 490px;
    background-color: #191919;
    border: 2px solid #FF785A;
}

.cat-img {
    max-width: 340px;
    max-height: 420px;
    border-radius: 6px;
}

.meme-modal-close-btn {
    position: absolute;
    top: 2%;
    right: 2%;
    background-color: transparent;
    border: 2px solid #555;
    color: #555;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 14px;
}

.meme-modal-close-btn:hover {
    color: white;
    background-color: #FF785A;
    border: 2px solid #FF785A;
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .header-inner {
        width: 100%;
    }

    .meme-modal {
        width: 300px;
    }

    .cat-img {
        max-width: 280px;
    }
}
