/* General Styling */
body {
    background-image: url(Images/bg2.jpg);
    background-size: 150px;
    font-family: "Gaegu", sans-serif;
    font-weight: normal;
    line-height: 125%;
    font-size: 16px;
    color: #3E3740
}


p{padding:0px 5px}


::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Link Styling */
a:link {
    text-decoration: none;
    color: #6A4C73;
}

a:visited {
        text-decoration: none;
    color: #6A4C73;
}

a:hover {
        text-decoration: none;
    color: hotpink;
}

a:active {
        text-decoration: none;
    color: #6A4C73;
}

/* Layout */
.content {
    display: grid;
    width: 1080px;
    margin: 0 auto;
    grid-template-areas:
        'header'
        'main-content'
        'left-sidebar'
        'right-sidebar'
        'footer';
}

.content > * {
    padding: 1rem;
}

.content > .header {
    grid-area: header;
    padding-bottom: 0;
    padding-top: 40px;
}

.content > .main-content {
    padding:0;
    grid-area: main-content;
    max-height: 650px;
    overflow: scroll;
}

.content > .left-sidebar {

    grid-area: left-sidebar;
    padding: 0;
}

.content > .right-sidebar {

    grid-area: right-sidebar;
    padding: 0;
}

.content > .footer {
    grid-area: footer;
    display: flex;
    align-content: center;
    justify-content: center;
    


}

/* Media Queries */
@media (min-width: 768px) {
    .content {
        grid-template-columns: 200px 1fr 200px;
        grid-template-areas:
            'header header header'
            'left-sidebar main-content right-sidebar'
            'footer footer footer';
    }
}

@media (min-width: 1024px) {
    .content {
        grid-template-columns: 200px 1fr 1fr 200px;
        grid-template-areas:
            'header header header header'
            'left-sidebar main-content main-content right-sidebar'
            'footer footer footer footer';
    }
}

/* Added responsive CSS for mobile devices */
@media (max-width: 767px) {
    .content {
        grid-template-columns: 1fr;
        grid-template-areas:
            'header'
            'main-content'
            'left-sidebar'
            'right-sidebar'
            'footer';
        width: 100%;
    }

    .content > .left-sidebar,
    .content > .right-sidebar {
        padding: 0;
        margin: auto;
    }

    .smallbox {
        width: 95%;
        margin-bottom: 20px;
    }

    #headerimg {
        width: 95%;
        top: 0;
    }

    .adaptbox, .adaptbox2 {
        width: 100%;
    }
}

/* Component Styling */
#headerimg {
    display: block;
    margin: 0 auto;
    width: 500px;
    height: auto;
    position: relative;
    top: 4px;
        z-index: 10;
}

.smallbox {
    position: relative;
    height: fit-content;
    width: 200px;
    border: 1px solid black;
    border-radius: 5px;
    background-color: #FFFFFF90;
    margin: 0 auto 20px auto;
    border-color: #323232
}

#badges{
    height: auto;   
}

#chatbox{
    height: 350px;
}

#chatbox iframe{
    width: 100%;
    height: 330px;
}

#badgeimg{
    width: auto;
    height: 15px;
}

#navi {
    height: 200px;
    width: 200px;
}

.nav ul {
    list-style: none;
    overflow-y: scroll;
    padding: 0;
    margin-top: 0;
    height: auto;
}

.b1 {
    padding-right: 5px;
    padding-left:10px;
}

.title{font-size: 25px;
font-weight: bold;
text-align: center;
padding-top: 10px;
padding-bottom: 1px;}

.maintext{padding-top: 0;}

.titleclip {
    display: block;
    position: relative;
    top: -9px;
    left:2px;
    overflow: visible;
}

#naviimg {
width: auto;
height: 15px;
}

#climg{
width: auto;
height: 15px;
}

#chatimg{
width: auto;
height: 15px;
}

#test {
    color: red;
}

.adaptbox{    position: relative;
    height:fit-content;
    width: 95%;
    border: 1px solid black;
    border-radius: 5px;
    background-color: #FFFFFF90;
    margin: auto;
    border-color: #323232;}

.adaptbox2{    position: relative;
    height:fit-content;
    width: 95%;
    border: 1px solid black;
    border-radius: 5px;
    background-color: #FFFFFF90;
    margin: auto;
    border-color: #323232;
    margin-top: 15px;}

.squaresmall{height: 80px;
width:auto;
padding: 0 20px
}

.titles{
    display: flex;
    justify-content: center;
    align-items: center;
}

#blinkie{height: 20px;
padding-bottom: 5px;;
margin: 0;

}

.blinkies{
    overflow: hidden;
}

.scrolling-blinkies {
    display: flex;
    width: max-content;
    animation: marquee-animation 10s linear infinite;
    animation-direction: normal;
}

@keyframes marquee-animation {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.divider img {
    width: auto;;
    height: 30px;
}

.divider{display:flex;
justify-content: center;
padding: 5px;}

.hdivider{display:flex;
justify-content: center;
padding: 5px;}

#boxessplit{
display: flex;
justify-content: space-between;}

#changelog{
    height: 200px;
}

#changelog ul{
    list-style: none;
    padding: 0;
    margin-top: 0;
    height: 180px;
    overflow-y: scroll;
}

#changelog li{padding-bottom: 5px;}

#datelog{color: deeppink;
margin: 0;
padding: 0;
font-weight: bold;}

/*Resources*/
.subtitle{display: flex;
justify-content: center;}

.squaresmall2{height: 30px;
width:auto;
padding: 10px 10px 0;
}

#resourcelist h1{font-size: 16px;
margin: 0;
padding: 0;
}

/* Interests Grid */
.interests-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    text-align: center;
}

.interest-item h3 {
    margin: 0 0 10px 0;
}

.interest-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.interest-item li {
    margin-bottom: 5px;
}

.lists-container {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
}

.list-column {
    width: 45%;
}

.lists-container h3, .games-container h3{
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}

.lists-container ul, .games-container ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.lists-container li, .games-container li {
    margin-bottom: 5px;
}

.games-container {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
}

.game-column {
    width: 30%;
}


.scrolling-badges-container {
    display: flex;
    flex-direction: column;
}

.scrolling-container {
    overflow-x: auto;
}

.scrolling-badges {
    white-space: nowrap;
    margin-bottom: 10px;
}

.scrolling-stamps {
    white-space: nowrap;
    margin-bottom: 10px;
    height: 56px;
}

.badge-item {
    display: inline-block;
    height: 30px;
    padding: 0px 5px;
    flex-shrink: 0;
}

#statuscafe {
    padding: .5em;
    border: 1px solid;
    border-color: #323232;
    border-radius: 5px;
}
#statuscafe-username {
    margin-bottom: .5em;
}
#statuscafe-content {
    margin: 0 1em 0.5em 1em;
}


/*Games */
.square {height: 100px;
width: auto;}

.gsquaresmall{height: 80px;
width:auto;
padding:20px 10px 0 20px
}


/*Archive*/
.archiveimgs{width: 100%;
height: 100%;
object-fit: contain;
}

/*Gal */

.galcontain{    position: relative;
    height:fit-content;
    width: 95%;
    border: 1px solid black;
    border-radius: 5px;
    background-color: #FFFFFF90;
    margin: auto;
    border-color: #323232;
overflow: scroll;}

.gallery {
  margin: 5px;
  border: 1px solid #ccc;
  float: left;
  width: 180px;
}

.gallery:hover {
  border: 1px solid #777;
}

.gallery img {
  width: 100%;
  height: auto;
}