@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
:root {
--color-1: rgb(109, 77, 168, 0.6);
  }

body{
  background: linear-gradient(160deg, hsl(263, 70%, 6%) 0%, hsl(263, 50%, 12%) 25%, hsl(263, 40%, 18%) 50%, hsl(263, 50%, 12%) 75%, hsl(263, 70%, 6%) 100%);
   
   height: 100%;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  min-height: 100%;
  margin: 0px;
}
#iframeforgames{
  background: var(--background-style);
  
}

.gameframe {
  display: inline-block;
  background: rgba(45, 27, 78, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(107, 70, 193, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  width: 242px;
  border-radius: 6px;
  margin: 10px;
  height: 322px;
}

.gameframe::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.gameframe:hover::before {
  left: 100%;
}

.gameframe:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #FF00FF;
  box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3), 0 0 50px rgba(0, 255, 255, 0.1);
}
.gameframe img{
  height: 220px;
  width: 220px;
 
  transition: transform 0.35s;
  loading: lazy;
}
.gameframe img:hover{
  transform: scale(0.97);
}
.gameframetext{
  display: none;
  clear: both;
  text-align: center;
  color: white;
  font-size: 14px;
  width: 100%;
  position: absolute;
  z-index: 2;
  margin:0;
  top:50%;
  transform:translateY(-50%);
}
  
  .gameframetext:hover {
  display: block;
  opacity: 1;
}
.topbar-navigation {
  border-bottom: 2px solid var(--color-1);
  background:  rgba(45, 27, 78, 0.6);
  overflow: hidden;
  
  position: sticky;
  padding: 4px;
  z-index: 99999;
}
.topbar-navigation a{
  
  background:  rgb(48, 30, 82, 0.6);
  float: left;
  display: flex;
  height: 3em;
  width: 8em;
  font-size: 16px;
  border-radius: 20px;
  font-weight: 400;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: 1px solid rgba(107, 70, 193, 0.3);
  margin: 3px;
  margin-left: 6px;
  margin-right: 6px;
  position: relative;
  transition: 0.2s ease
}
.topbar-navigation a:hover{
  transform: translate(0px, -4px), scale(1.1);
  
  box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3), 0 0 50px rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(107, 70, 193, 0.3);
}

.topbar-navigation a.current-page{
  
  color: rgb(29, 21, 46, 0.6);
  background-color: var(--color-1);
 
}

#closethegamegame{
  transition: 0.3s ease;
}
#closethegamegame:hover{
  transform: scale(1.1);
}
.button, button{
float: none;
  color: var(--color-1);
  background-color: rgb(29, 21, 46, 0.6);;
  align-items: center;
  justify-content: center;
  margin: 4px 2px;
  font-weight: 400;
  
  height: 3em;
  width: 8em;
  display: flex;
  transition-duration: .25s;
  text-decoration: none;
border: 2px solid var(--color-1);
}
.button:hover{
  float: none;
  color: var(--color-2);
  background-color: var(--color-1);
  align-items: center;
  justify-content: center;
  margin: 4px 2px;
  font-weight: 400;
  transform: scale(1.1);
  display: flex;
  text-decoration: none;
}
  h1 {
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
  color: #ffffff;
  font-size: 28px;
}
.rotating-text {
  animation: rotateText 2.75s linear infinite; 
  animation-fill-mode: forwards;
  width: 100%;
  white-space: nowrap;
}

@keyframes rotateText {
  0% { transform: translateX(140%); } 
  50% { transform: translateX(0); } 
  100% { transform: translateX(-140%); } 

}



p {
  font-family: monospace;
  color: #ffffff;
  font-size: 18px;
}
.gameframe p{
  padding-bottom: 10px;
}
h2 {
  font-family: monospace;
  color: #ffffff;
  font-size: 34px;
}
h3 {
  font-family: monospace;
  color: #ffffff;
  font-size: 130px;
}
h4 {
  font-family: monospace;
  color: #ffffff;
  font-size: 22px;
  padding-bottom: 6px;
}
#modebutton{
  position: fixed;
  top: 10px;
  right: 10px;
   z-index: 1000000;
}

#leftFloatAd{
  position: fixed;
      top: 75px;
      left: 15px;
      width: 120px;
      height: 610px;
      
}
#rightFloatAd{
  position: fixed;
      top: 75px;
      right: 15px;
      width: 120px;
      height: 610px;
      
}
#leftFloatAdWide{
  position: fixed;
      top: 75px;
      left: 15px;
      width: 240px;
      height: 610px;
      
}
#rightFloatAdWide{
  position: fixed;
      top: 75px;
      right: 15px;
      width: 240px;
      height: 610px;
      
}
#footer{
  bottom: 0;
  padding-top: 160px;
  align-content: center;
}
#darkMode{
  display: none;
}