:root {
  /* Colors to be updated */

  /* Font */
  --text-font: 'Gowun Batang', serif;
  --color-background: hsl(0, 0%, 96%);
  --color-highlight: hsl(67,100%,50%);
  --color-textcolor: hsl(138, 12%, 21%);
  --color-secondary: hsl(48, 29%, 83%);

  /* Spacing */
  --big-gap-desktop: 80px;
  --big-gap-mobile: 40px;


}

/* 공통영역 */
html {
    font-size: clamp(16px, 2vw, 22px);
}

body {
    background: var(--color-background);
    font-family: var(--text-font);
    line-height: 1.8;
    font-weight: 400;
    font-style: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-textcolor);
    margin: 0;
}

h1 {
    font-size: 2.027rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

h2 {
    font-size: 1.802rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

h3 {
    font-size: 1.602rem;
    font-weight: 700;
    line-height: 1.4;
    padding: var(--big-gap-desktop) 0 0 0;
    margin: 0;
}

::selection {
    color: var(--color-textcolor);
    background: var(--color-highlight);
}

a {
    color: var(--color-textcolor);
    text-decoration: none;
}

a:visited {
    color: var(--color-textcolor);

}

a:hover {
    color: var(--color-textcolor);
    text-decoration: underline;
    text-decoration-color: var(--color-highlight);
    text-decoration-skip-ink: none;
    text-decoration-thickness: 1em;
    text-underline-offset: -1em;
}


.container {
    box-sizing: border-box;
    width: 46.7vw;
    padding: 5.6vw 0 0 0;

}

.mainnav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    line-height: 1.4;
}

.mainnav ul {
    list-style: none;
    padding: 0;

}


.submenu {
    display: flex;
    flex-direction: row;
    gap: 32px;
}

.tags {
    color: white;
    list-style: none;
    padding: 0;
    font-size: 0.79rem;
}

.tags li {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: var(--color-textcolor);
    border-radius: 1rem;
}

hr {
    border: none;
    border-top: .1em dashed var(--color-secondary);
}


.main-footer {
    padding: 5vw 0 5vw 0;

}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    visibility: hidden;
}

/* 미디어 쿼리 */

/* Mobile phones (portrait) */
@media (max-width: 480px) {
/* Styles for small phones */
.container {
    width: 100vw;
    padding: 20px;
}

.submenu{
    display: none;

}

h1 {
    font-size: 1.476rem;
    line-height: 1.4;
}
h2 {
    font-size: 1.383rem;
    line-height: 1.4;
}

h3 {
    font-size: 1.296rem;
    line-height: 1.4;
    padding: var(--big-gap-mobile) 0 0 0;
    margin: 0;
}

.footer-menu {
    visibility: visible;
}

}


/* Mobile phones (landscape) and small tablets */
@media (min-width: 481px) and (max-width: 768px) {
/* Styles for larger phones in landscape */
}

/* Common mobile-first approach */
@media (min-width: 320px) {
/* Base mobile styles (smallest phones) */
}

@media (min-width: 375px) {
/* iPhone SE, iPhone 12/13/14 mini */
}

@media (min-width: 414px) {
/* iPhone 6/7/8 Plus, iPhone 11 Pro Max */
}

@media (min-width: 430px) {
/* iPhone 14 Pro Max and similar large phones */
}
