* {
    scroll-behavior: smooth;
}

html {
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

body {
    background-color: #191b18;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    text-decoration: none;
    min-height: 100vh;
}










header {
    font-family: 'Roboto', sans-serif;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #20221e;
    position: sticky;
    box-shadow: 1px 10px 5px 3px #151614;
    border-radius: 9px;
    display: flex;
    justify-content: space-between;
    transition: 700ms;
    z-index: 1000;
}

footer {
    display: flex;
    background-color: #20221e;
    width: 100%;
    height: 160px;
    border-radius: 9px;
    margin-top: auto;
    justify-content: center;
    align-items: center;
}

.FooterHolder {
    background-color: #20221e;
    height: 100%;
    width: 100%;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    
}

.SocialButton {
    align-items: center;
    width: fit-content;
    padding: 5px;
    margin: 5px;
    display: flex;
    justify-content: center;
    gap: 20%;
    





}

 .socialButton {
    background-color: #272925;
    
    border: none;
    padding: 2px;
    border-radius: 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    scale: 1;
    display: flex;
    overflow: hidden;
    
}

 .socialButton:hover {
    outline: 2px solid #86f38c;
 }


#SocialDiv {
    
    display: flex;
    
    justify-content: center;
    
    
    width: auto;
    margin: 1%;
    border-radius: 12px;
}

#h1Footer {
    
    margin: 0;
    font-size: 80%;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    color: white;
    text-align: center;
}

#FooterLeft {
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #272925;
    height: 75% ;
    width: 260px;
    margin: 1%;
    border-radius: 12px;
}

#announcementsDiv {
    box-shadow: none;
    display: flex;
    flex-direction: column;
    
  
    
    align-items: center;
    margin-top: 20  px;
    margin-left: 5%;
    margin-right: 5%;
    border-radius: 12px;
}



a {
    font-size: 120%;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    color: white;
    margin-inline: 6px;
    padding: 10px 50px;
    transition: color 600ms;
}

a:hover {
    color: #dcffde;
    transition: color 0.6s;
}

h3 {
    font-size: 150%;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    color: white;
    text-align: center;
}

h1 {
    font-size: 120%;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    color: white;
    text-align: center;
}

h2 {
    font-size: 120%;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    color: white;
    text-align: center;
}

#DescriptionText {
    font-size: 100%;
    text-align: left;
    padding: 1%;
    background-color: #1d1f1b;
    border-radius: 10px;
    box-shadow: 1px 5px 5px 2px #151614;
    
}

.description {
    font-size: 100%;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    color: white;
    text-align: center;
    margin: 3%;
    margin-left: 2%;
    margin-right: 2%;
    margin-top: 6%;
    background-color: #191b18;
    height: fit-content;
    padding-bottom: 1%;
    border-radius: 10px;
    box-shadow: 1px 5px 5px 2px #151614;
    
}

#DescriptionPar {
    margin: 3%;
}

.Game-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: 5px;
    padding-bottom: 20px;
    box-shadow: 1px 10px 5px 3px #151614;
    border-radius: 15px;
    margin-inline: 6px;
    font-family: 'Roboto', sans-serif;
    gap: 6px;
}

.game {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 5px 20px;
    width: auto;
    min-width: 7%;
    min-height: 175px;
    content-visibility: auto;
    contain-intrinsic-size: 0px 175px;
    height: auto;
    margin-inline: 6px;
    align-items: end;
    margin-block: 6px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 1px 10px 5px 3px #151614;
    color: white;
    border-radius: 15px;
    text-align: center;
    outline: 3px solid #171b14;
    font-family: 'Roboto', sans-serif;
    background-color: #151614;
    overflow: hidden;
    z-index: 1;
    transition: outline 0.6s;
}

.game_sidebar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 5px 20px;
    width: auto;
    min-width: 25%;
    min-height: 150px;
    height: auto;
    margin-inline: 6px;
    align-items: end;
    margin-block: 6px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    image-rendering: optimizeSpeed;
    color: white;
    border-radius: 15px;
    text-align: center;
    outline: 3px solid #171b14;
    font-family: 'Roboto', sans-serif;
    background-color: #151614;
    overflow: hidden;
    z-index: 1;
    transition: outline 0.6s;
}

.game:hover {
    outline: 3px solid #86f38c;
    z-index: 3;
}

.game_sidebar:hover {
    outline: 3px solid #86f38c;
    z-index: 3;
}

.fullscreen-btn {
    background-color: #26ff1e6b;
    border: none;
    padding: 8px;

    border-radius: 6px;
    cursor: pointer;
    display: flex;
    
    align-items: center;
    justify-content: center;
    scale: 1.25;
}
.fullscreen-btn:hover {
    background-color: rgba(38, 255, 30, 0.507);
}
.fullscreen-btn img {
    width: 20px;
    height: 20px;
    display: block;
}



.game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #191b18;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    padding: 6px 0;
    text-align: center;
    z-index: 2;
    
}

.announcementsText1 {
    display: flex;
    width: 100%;
    margin-top: 20px;
    background-color: #262924;
    border-color: #86f38b48;
    border-width: 1px;
    border-style: dashed;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    padding: 6px 0;
    text-align: center;
    z-index: 2;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
}

.Aboutus {
    width: 50%;
    justify-content: center;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #191b18;
    box-shadow: 1px 10px 5px 3px #151614;
    padding: 20px;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 45px;
    background-color: #20221e;
}


#audioControl {
  display: flex;
    align-items: center;
    width: 120px;         /* adjust width as needed */
    padding: 2px;
    margin-left: auto;     /* pushes it to the right side */
    justify-content: flex-start; /* aligns content inside */
    flex-grow: 0;
    margin-right: 2%;
}
#audioSlider { width: 100%; }


canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.banner {
    padding-bottom: 20px;
    padding-top: 20px;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 9px;
    margin: 0;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
}

.Holder {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.left, .center, .right {
    background-color: #20221e;
    border: 2px solid #151614;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 1px 10px 5px 3px #151614;
    color: white;
    max-height: fit-content;
    
}

#list-right, #list-left {
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    
}

.left, .right {
    flex: 1;
    width: 250px;
    
}



.center {
    flex: 4;
    
}

.qualityWrapper {
    position: relative; /* dropdown positioned relative to button */
    display: inline-block;
}

#qualityMenu {
    display: none;            /* hidden initially */
    position: absolute;       /* relative to .qualityWrapper */
    top: 100%;                /* directly below button */
    left: 0;
    flex-direction: column;
    background: #222;
    padding: 5px;
    border-radius: 5px;
    z-index: 1000;
    
}

#qualityMenu button {
    margin: 2px 0;
    padding: 5px 10px;
    color: white;
    background: #444;
    border: none;
    cursor: pointer;
}

#qualityMenu button:hover { background: #666; }

#ruffle-container {
    width: 100%;
    height: 620px; /* will scale dynamically with canvas */
    overflow: hidden; /* keeps canvas inside container */
    position: relative;
}


.BottomHolder {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 5px 10px;
  height: 50px;
  z-index: 500;
  background-color: #1d1f1b;
  border-radius: 0 0 10px 10px;
}


#game-frame {
    width: 100%;
    height: auto;
    border: none;
    display: block;
    
}



#BackLink {
    color: #f1f1f1;
     position: absolute;
      background: rgba(0, 0, 0, 0.5);
       font-size: 20px;
    padding: 20px;
     text-align: center;
      margin: 5px;
       z-index: 1000;
        font-family: 'Roboto', sans-serif;
         border-radius: 7px;
     text-decoration: none;
}

.error {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
    background-color: #2c2f33;
    border-radius: 10px;
    margin: 20px;
}

.error a {
    color: #4da6ff;
    display: block;
    margin-top: 15px;
}

#emulator-container {
    background-color: #000;
}

#emulator-container {
    width: 100%;
    height: 750px;
    background-color: #000;
}

#Holder1 {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}

#Watermelon {
    text-align: left;
    font-size: 20px;
    text-shadow: 0 0 25px #86f38c;
}

#WatermelonFooter {
    text-align: center;
    font-size: 20px;
    text-shadow: 0 0 25px #86f38c;
    
}

#fullscreenBtn{
    max-width: 25px;
    height: 25px;
    padding: 5px;
    
    
    justify-content: center;
}



#audioBtn {
    max-width: 25px;
    height: 25px;
    padding: 5px;
    margin: 5px;
    
    justify-content: center;
}

#Request-games {
    text-align: right;
    text-shadow: 0 0 15px #86f38c;
}

p {
    font-size: 100%;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    color: white;
    text-align: center;
}

h4 {
    font-size: 100%;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    color: white;
    text-align: center;
}


.search-wrapper {
    padding: 0 6px 8px 6px;
    width: 100%;
    box-sizing: border-box;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background-color: #20221e;
    border: 2px solid #2a2d27;
    border-radius: 12px;
    padding: 0 14px;
    
    gap: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-bar:focus-within {
    border-color: #86f38c;
    box-shadow: 0 0 18px rgba(134, 243, 140, 0.18);
}

.search-icon {
    width: 18px;
    height: 18px;
    color: #5a5f55;
    flex-shrink: 0;
    transition: color 0.3s;
}

.search-bar:focus-within .search-icon {
    color: #86f38c;
}

#searchInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e8ffe9;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    padding: 13px 0;
    caret-color: #86f38c;
}

#searchInput::placeholder {
    color: #4a4f45;
    font-size: 13px;
}

.search-clear {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    border-radius: 4px;
    color: #5a5f55;
}

.search-clear:hover {
    color: #86f38c;
    background-color: rgba(134, 243, 140, 0.08);
}

.search-clear svg {
    width: 16px;
    height: 16px;
}

/* No results message */
.search-no-results {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
    width: 100%;
}

.search-no-results span {
    font-size: 48px;
    line-height: 1;
}

.search-no-results p {
    color: #5a5f55;
    font-size: 15px;
    margin: 0;
}

.search-no-results p span {
    font-size: inherit;
    color: #86f38c;
}