html {
  scroll-behavior: smooth;
}

.maincontent {
    margin-left: 8px;   
}

* {
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

body {
    margin-top: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    background-color: #f0f0f0;
    z-index: 100;
    top: 0;
    width: 100%;
    overflow: hidden;
    padding: 3px;
}

.navlogo a{
    margin-left: 10px;
    color: #000000;
    font-family: 'Dohyun', sans-serif;
    font-size: 1.3em;
}

li {
    display: inline-block;
    margin: 0 10px;
}

h1, h3 {
    font-size: 2.5em;
    color: #333333;
    text-align: center;
    font-family: 'SeoulNamsan', sans-serif;
}

h2 {
    font-size: 1.2em;
    text-align: center;
}

.moveto {
    padding: 10px 20px;
    background-color: #d6d6d6;
    color: white;
    border-radius: 5px;
}

.hrefdiv {
    background-color: white;
    border-radius: 10px;
    width: auto;
    height: auto;
    color: #000000;
    padding: 15px;
    margin: 5px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.hrefdiv:hover {
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
    background-color: #f0f0f0;
    color: #1e2d49;
}

.game {
    background-color: #f6f6f6;
    display: inline-block;
    width: 90%;
    height: 100%;
    max-width: 600px;
    min-width: 280px;
    vertical-align: top;
}

a {
    font-family: 'SeoulNamsan', sans-serif;
    color: #2f6fac;
    text-decoration: none;
    font-size: 1.1em;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0;
    padding: 0;
}

.slider {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.slider img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.8s ease-in-out;
    opacity: 0;
    z-index: 1;
}

.slider img.active {
    opacity: 1;
    z-index: 2;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);   
    border-radius: 50%;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    width: 40px;
    height: 40px;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.nav-btn:hover {
    transition: background-color 0.3s;
    background-color: rgba(0, 0, 0, 0.6);
}

.prev {left: 0;}

.next {right: 0;}

.slider-container:hover .prev,
.slider-container:hover .next {
    opacity: 1;
}

.slider img {
    border-radius: 10px;
    width: 100%;
    height: 100%;
}

footer {
    margin-top: 30px;
    border-radius: 10px;
    background-color: #f0f0f0;
}

.footer-content {
    padding: 20px;
    display: inline-block;
    text-align: center;
}


@font-face {
    font-family: 'SeoulNamsan';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/SeoulNamsanM.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Dohyun';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/BMDOHYEON.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}