@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.rainbow-link {
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(270deg, red, orange, yellow, green, blue, indigo, violet, red);
    background-size: 400%;
    -webkit-background-clip: text;
    color: transparent;
    animation: rainbow-animation 8s linear infinite alternate;
}
.rainbow-link:hover {
    opacity: 0.8;
}
@keyframes rainbow-animation {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}
body {
    background: linear-gradient(45deg, #ff1e56, #1e90ff);
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    overflow: hidden;
}
.container {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border: 3px solid #fff;
    border-radius: 10px;
    animation: fadeIn 1s ease-in-out;
}

h1 {
    font-size: 2em;
    height: 1.2em;
    color: #ffdc00;
    text-shadow: 3px 3px #ff4136;
}

p {
    font-size: 1em;
    margin-bottom: 20px;
}

.retro-button {
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background: #0074d9;
    border: 3px solid #001f3f;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 3px 3px #001f3f;
}
.retro-button:hover {
    background: #ff4136;
    transform: scale(1.1);
}

.footer {
    position: fixed !important;
    bottom: 0;
    width: 100%;
    background: #000;
    padding: 10px 0;
    text-align: center;
    color: #7fdbff;
    font-size: 0.8em;
    border-top: 1px solid #7fdbff;

}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #7fdbff;
    text-align: center;
    width: 300px;
}

.close-button {
    color: #ff4136;
    font-size: 1.5em;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #7fdbff;
    border-radius: 5px;
    font-family: 'Press Start 2P', cursive;
}

button[type="submit"] {
    margin-top: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #000;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    z-index: 1000;
    color: #000;
    border-bottom: 1px solid #7fdbff;
}

.sidenav {
  height: 100%;
  width: 160px;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  padding-top: 20px;
}

.sidenav a {
  padding: 6px 8px 6px 16px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.main {
  margin-left: 160px; 
  font-size: 28px;
  padding: 0px 10px;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}
.retro-button {
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background: #0074d9;
    border: 3px solid #001f3f;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 3px 3px #001f3f;
}

.retro-button:hover {
    background: #ff4136; 
    color: #fff; 
    transform: scale(1.1); 
    box-shadow: 5px 5px #ff4136;
}

.dropdown-menu {
    display: block !important;
    position: absolute;
    top: 55px;
    right: 0;
    background: rgba(50, 50, 50, 0.9);
    border: 2px solid #7fdbff;
    border-radius: 10px;
    padding: 10px;
    width: auto;
    z-index: 999;
    text-align: left;
    transition: opacity 0.1s ease 0s, pointer-events 2.5s ease 0s;
}
.settings-wrapper:hover .dropdown-menu {
    pointer-events: auto;
    opacity: 1;
}

.settings-wrapper:not(:hover) .dropdown-menu {
    opacity: 0;
    pointer-events: none;
    transition-delay: 0.4s;  
}
.dropdown-menu ul {
    list-style: none;
    padding: 0;
}

.dropdown-menu li {
    margin: 10px 0;
}

.dropdown-menu a {
    color: #7fdbff !important;
    text-decoration: none !important;
    font-family: 'Press Start 2P', cursive !important;
}

.sidebar {
    width: 200px;
    height: 100vh;
    background-color: #2a2a2a;
    padding: 20px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1999;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar li {
    margin: 2px 0;
}

.sidebar a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar a:hover {
    background-color: #444;
}
.dropdown-menu a:hover {
    color: #ff4136 !important;
}

.container {
    margin-top: 80px; 
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border: 3px solid #fff;
    border-radius: 10px;
    animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #000;
    padding: 10px 0;
    text-align: center;
    color: #7fdbff;
    font-size: 0.8em;
    border-top: 1px solid #7fdbff;
}
