html {
    text-align: center;
    font-size: 22px;
}

body {
    background-color: black;
    color: limegreen;
    position: relative;
    font-family: "Ubuntu Mono", serif;
    font-weight: 400;
    font-style: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#overlay{
  position: fixed; 
  display: none; 
  width: 100%; 
  height: 100%; 
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 50; 
}
.random {
    font-size: 30px;
    cursor: pointer;
    color: limegreen;
}
.ad {
    background-color: black;
    align-items: center;
    display: block;
    border: limegreen solid 3px;
    border-radius: 15px;
    padding: 5px 80px 10px 80px;
    z-index: 99999;
    position:fixed;
    /* centers */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: fit-content;
    height: fit-content;
    max-width: 400px;
    overflow: hidden;
    display: none;
}
.ad #timer{
    background-color: limegreen;
    color: black;   
    border-radius: 5px;
    padding: 5px 0px 5px 0px;
    margin-bottom: 10px;
    }
.ad img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

.ad button{
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: limegreen;
    border: none;
    color: black;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
}
.ubuntu-mono-regular {
    font-family: "Ubuntu Mono", serif;
    font-weight: 400;
    font-style: normal;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 980px;
}

.nav-button{
    font-size: 35px;
    cursor: pointer;
    color: limegreen;
    position: absolute;
    top: 20px;
    left: 20px;
}
.search-container {
    display: flex;
    justify-content: center;
    width: 100%;
}


.footer {
    position: fixed;
    text-align: center;
    font-size: 15px;
    bottom: 0px;
    width: 100%;
}

a {
    color: lightseagreen;
    text-decoration: none;
}

a:visited {
    color: lightseagreen;
}

a:hover, a:active {
    color: lightskyblue;
}

table, tr, th, td, caption {
    text-align: center;
    vertical-align: middle;
    border: 1px solid navajowhite;
    font-family: 'Courier New', 'Courier', monospace;
    border-collapse: collapse;
    padding: 0.5rem;
}

.icon-library {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
    padding-bottom: 80px;
}

.icon {
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s;
}

.icon img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.overlay-container {
    position: relative;
    display: inline-block;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: limegreen;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    white-space: nowrap;
}

.icon:hover .overlay-text {
    opacity: 1;
}

.icon:hover img {
    transform: scale(1.1);
}

.special-sections-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin: 20px 20px 20px 20px;
}

.featured-game-section {
    text-align: center;
    padding: 20px;
    margin-left:20px;
    margin-right:20px;
    border: 3px solid limegreen;
    border-radius: 15px;
    background-color: #0a0a0a;
    width: 200px;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.6);
}

.featured-game-section h2 {
    color: limegreen;
    margin-bottom: 25px;
    font-size: 22px;
    text-shadow: 0 0 10px limegreen;
}

.featured-game-box .icon img {
    width: 160px;
    height: 160px;
    border: 3px solid lightseagreen;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.featured-game-box .overlay-text {
    font-size: 18px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.85);
    color: lightskyblue;
}

#searchInput {
    font-family: "Ubuntu Mono", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    border: 2px solid limegreen;
    background-color: black;
    color: limegreen;
    border-radius: 20px;
    outline: none;
    width: 400px;
    max-width: 90%;
    height: 40px;
    padding: 0 15px;
    margin: 0 auto;
}

#searchInput::placeholder {
  font-family: "Ubuntu Mono", serif;
  font-weight: 400;
  font-style: normal;
  color: limegreen;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #f1f1f1;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
}

#openMenuBtn {
    font-size: 30px;
    cursor: pointer;
    color: limegreen;
    top: 20px;
    left: 20px;
#scroll-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: limegreen;
    color: black;
    padding: 10px 24px;
    border-radius: 10px;
    font-family: "Ubuntu Mono", serif;
    font-size: 16px;
    font-weight: 400;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.scroll-highlight {
    outline: 3px solid limegreen;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

.scroll-highlight img {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

.scroll-highlight .overlay-text {
    opacity: 1;
}
