html {
    --background-color: #20410a;
    --container-color: #3d7020;
    font-size: 1vh;
}

body {
    display: flex;
    flex-direction: row;
    justify-content: center;
    color: white;
    margin: 0;
    background-color: var(--background-color)
}

nav {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
    gap: 3rem;
    font-size: 2rem;
}

#hero-area {
    display: flex;
    flex-direction: column;
    height: 100rem;
}

aside {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    width: auto;
    min-width: 160px;
    height: 100vh;
}

main {
    align-items: center;
    gap: 1.5rem;
}

#spacer {
    width: 2rem;
}

#quiz-area,
.example-quiz-area {
    flex-grow: 1;
    text-shadow: 0 0 1rem black;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.example-quiz-area {
    gap: 2rem;
}

#quiz-title,
.example-quiz-title {
    font-size: 3rem;
    font-weight: 600;
}

h1 {
    text-align: center;
    font-size: 4rem;
    margin: 0;
}

h2 {
    text-align: center;
    font-size: 4rem;
    margin: 1rem;
}

h3 {
    text-align: center;
    font-size: 3rem;
}

p {
    text-align: center;
    margin: 0 10rem;
    font-weight: 400;
    font-size: 2.5rem;
}

hr {
    width: 95%;
    margin: 2rem 0;
}

ul {
    max-width: 150vh;
}

li {
    font-weight: 300;
    font-size: 2.5rem;
    margin: 2rem 10rem;
}

strong {
    font-weight: 500;
}

img {
    max-width: 100rem;
}

a {
    color: lightgreen;
}

#quiz-desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer {
    text-align: center;
    font-size: 1.5rem;
    padding-bottom: 3rem;
}

.container {
    display: flex;
    padding: 1rem;
    background-color: var(--container-color);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    align-items: flex-start;
}

.indicators {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

#wind-indicator-container,
.example-wind-indicator-container {
    position: relative;
    width: 35rem;
    height: 35rem;
    padding: 0;
    justify-content: center;
    align-items: center;
}

#wind-indicator,
.example-wind-indicator {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

#bong,
.example-bong {
    top: 90%;
    height: 7%;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    position: absolute;
}

#stats {
    margin-left: 1rem;
    font-size: 2rem;
    font-weight: 600;
}

#dora-indicators,
.example-dora-indicators {
    display: flex;
    flex-direction: column;
    justify-content: end;
    width: 35rem;
    gap: 1.5rem;
}

#my-tiles-container,
.example-my-tiles-container {
    display: flex;
    align-items: end;
    width: 95rem;
}

.tile {
    flex: 1;
    width: 0;
    object-fit: contain;
}

.tile.right {
    flex: 1.333;
}

#agari-tile-container .tile,
.example-agari-tile-container .tile {
    width: 7rem;
}

#agari-tile-container,
.example-agari-tile-container {
    align-items: center;
}

#tsumoron,
.example-tsumoron {
    height: 100%;
    margin: 0 0 0 1.5rem;
    display: grid;
    place-items: center;
    font-size: 3rem;
}

#answer {
    font-size: 5rem;
    flex-direction: column;
    text-align: center;
}

#inputs-container {
    font-size: 3rem;
    margin-bottom: 1rem;
}

input {
    height: 5rem;
    width: 15rem;
    text-align: center;
    border-radius: 1rem;
    font-size: 4rem;
}

button {
    background-color: var(--container-color);
    padding: 1rem;
    color: white;
    border-radius: 1rem;
    font-size: 3rem;
}

#start-button {
    border-radius: 1rem;
    padding: 2rem;
    font-size: 7rem;
}

#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 800;
}

#modal-content {
    background: rgba(0, 0, 0, 0.7);
    padding: 5rem;
    border-radius: 2rem;
    width: 80rem;
    text-align: center;
    align-items: center;
    z-index: 900;
}

#eye-button {
    position: absolute;
    right: 3rem;
    bottom: 3rem;
}

#eye-img {
    width: 96px;
}

#modal-content h1 {
    font-size: 6rem;
    margin: 0;
}

#modal-content h2 {
    font-size: 2rem;
    margin: 1rem;
    font-weight: 300;
}

#yaku-list,
#fu-list {
    display: flex;
    flex-direction: column;
    width: fit-content;
    align-items: flex-end;
    margin: 1rem auto;
    font-size: 3rem;
    font-weight: 300;
}

.yaku,
.fu {
    white-space: pre-wrap;
}

#fu-list {
    font-size: 2rem;
}

#score-result {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

#kad-left,
#kad-right {
    position: static;
    left: 0;
}

#kad-top,
#kad-bottom {
    position: absolute;
    left: -9999px;
}

.mahjong-score-container {
    font-family: 'Noto Sans KR', sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    color: #333;
}

.score-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.score-table th {
    background-color: #2c3e50;
    color: #fff;
    padding: 12px;
    border: 1px solid #1a252f;
}

.score-table td {
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 0.95em;
}

.score-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.score-table tbody tr:hover {
    background-color: #eef2f5;
}

.fu-col {
    font-weight: bold;
    background-color: #ecf0f1;
}

.kiriage {
    background-color: #ffeaa7 !important;
    font-weight: bold;
    color: #d35400;
}

.mangan {
    background-color: #fab1a0 !important;
    font-weight: bold;
    color: #c0392b;
}

.legend {
    font-size: 0.9em;
    margin-bottom: 15px;
    color: #555;
    background: #eee;
    padding: 10px;
    border-radius: 5px;
}

.table-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    display: inline-block;
    padding-bottom: 5px;
}

/* 처음에는 안 보이게 설정 */
.hidden {
    display: none !important;
}

@media (max-aspect-ratio: 1) {
    html {
        font-size: 1vw;
    }

    body {
        flex-direction: column;
    }

    .indicators {
        justify-content: center;
    }

    aside {
        width: 100vw;
        height: auto;
        min-height: 100px;
        padding: 2rem 0;
    }

    #kad-left,
    #kad-right {
        position: absolute;
        left: -9999px;
    }

    #kad-top,
    #kad-bottom {
        position: static;
        left: 0;
    }
}