:root {
--bg-light: #f5f9ff;
--bg-dark: #1e3c72;
--text-light: #1c1c1c;
--text-dark: #ffffff;
--accent: #2a88ff;
}

body {
margin: 0;
font-family: 'Segoe UI', sans-serif;
background-color: var(--bg-dark);
color: var(--text-dark);
display: flex;
justify-content: center;
align-items: center;
text-align: center;
height: 100vh;
transition: all 0.4s ease;
}

.container {
padding: 20px;
max-width: 600px;
}

.logo {
width: 100px;
margin-bottom: 20px;
}

h1 {
font-size: 32px;
margin-bottom: 10px;
}

p {
font-size: 18px;
margin-bottom: 0px;
}

a:link {
color: silver;
}

a:visited {
color: lightgreen;
}

a:hover {
color: hotpink;
}

a:active {
color: lightblue;
}

.loader {
border: 6px solid #f3f3f3;
border-top: 6px solid var(--text-dark);
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
margin: 20px auto;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.wifi-animation {
margin: 0px auto;
width: 60px;
height: 60px;
}

.wifi-animation span {
position: absolute;
border: 4px solid var(--accent);
border-radius: 50%;
opacity: 0;
animation: wave 2s infinite;
}

.wifi-animation span:nth-child(1) { width: 50px; height: 50px; top: -30px; left: 0px; animation-delay: 0s;}
.wifi-animation span:nth-child(2) { width: 120px; height: 120px; top: -65px; right: -32px; animation-delay: 0.3s;}
.wifi-animation span:nth-child(3) { width: 200px; height: 200px; top: -105px; right: -72px; animation-delay: 0.6s;}

@keyframes wave {
0% { transform: scale(0.5); opacity: 0.6; }
100% { transform: scale(1.5); opacity: 0; }
}

@keyframes pulse-dark {
0%, 100% {
box-shadow: 0 0 10px rgba(0,0,0,0.5), 0 0 30px rgba(42,136,255,0.2);
}
50% {
box-shadow: 0 0 25px rgba(0,0,0,0.9), 0 0 60px rgba(42,136,255,0.4);
}
}

.wifi-animation {
animation: pulse-dark 4s infinite ease-in-out;
}

.footer {
margin-top: 20px;
font-size: 14px;
color: #ccc;
}
/*
.toggle-mode {
margin-top: 0px;
background: none;
border: 2px solid var(--accent);
color: var(--text-dark);
padding: 10px 20px;
border-radius: 20px;
cursor: pointer;
transition: all 0.3s ease;
}
*/

body.light {
background-color: var(--bg-light);
color: var(--text-light);
}

body.light .loader {
border-top-color: var(--text-light);
}

body.light .toggle-mode {
color: var(--text-light);
border-color: var(--accent);
}

body.light .wifi-animation span {
border-color: #2a88ff;
}

.bouncing {	
animation: bounce 2.5s infinite ease-in-out;
transition: transform 0.5s;	 
}

.logo {
width: 140px;
border-radius: 20px;
filter: drop-shadow(0 0 12px rgba(42, 136, 255, 0.8));
}

@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(-20px);
}
60% {
transform: translateY(-10px);
}
}

.logo-wrapper {
padding: 0px;
border-radius: 50%;
display: inline-block;
transition: box-shadow 0.5s ease-in-out;	  
position: relative;
}

body.dark-hover-mode {
background: radial-gradient(circle at center,
rgba(0, 0, 0, 0.3) 0%,
#141e30 60%,
#0a0f1a 100%) !important;
color: var(--text-dark);
}

body.dark-hover-mode .toggle-mode {
color: var(--text-dark);
border-color: var(--accent);
}

body.dark-hover-mode .logo-wrapper {
box-shadow: none;
}

body.glow-mode {
background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, #1e3c72 60%, #0e203f 100%);
}

body.light {
background: radial-gradient(circle at center,
rgba(255, 255, 255, 0.9) 0%,
#eaf2ff 60%, 
#cfdfff 100%);
color: var(--text-light);
}

body.light .toggle-mode {
color: var(--text-light);
border-color: var(--accent);
}

body.light .wifi-animation span {
border-color: #2a88ff;
}

body.light .logo-wrapper {
box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

body.light .bouncing {
filter: drop-shadow(0 0 12px rgba(42, 136, 255, 0.3));
}

.container h1,
.container h2,
.container p,
.tbox {
background: transparent !important;
color: inherit !important;
box-shadow: none !important;
text-shadow: none !important;
}

.container h1, .container h2 {
color: rgba(255, 255, 255, 0.95); 
}

body.light h1, 
body.light h2 {
color: rgba(0, 0, 0, 0.85);
}

.logo-wrapper:hover ~ .container h1,
.logo-wrapper:hover ~ .container h2 {
text-shadow: 0 0 15px rgba(255,255,255,0.7);
}

.container {
background: transparent !important;
box-shadow: none !important;
}


body.dark-default {
background: radial-gradient(circle at center,
#1e3c72 0%,
#0e203f 100%);
transition: background 0.8s ease-in-out, color 0.5s ease;
}

body.light.glow-mode .container h1,
body.light.glow-mode .container h2,
body.light.glow-mode .container p,
body.light.glow-mode .footer,
body.light.glow-mode .toggle-mode,
body.light.glow-mode a {
color: #444 !important;
text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

body.light.glow-mode {
background: radial-gradient(circle at center,
rgba(0, 255, 255, 0.6) 0%,
#f5f9ff 50%,
#dbe8ff 100%) !important;
transition: background 0.8s ease-in-out;
}

.badge {
transition: all 0.4s ease-in-out;
width: 120px;
height: auto;
display: inline-block;
}


.logo-wifi-wrapper {
position: relative;
display: flex;
justify-content: center;
align-items: center;
margin-top: 30px;
}

.logo-wrapper {
z-index: 2;
}

.wifi-animation {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%) translateY(120%);
z-index: 3;
pointer-events: none;
}

.toggle-mode {
position: fixed;
top: 15px;
right: 15px;
z-index: 1000;
background: none;
border: 2px solid var(--accent);
color: var(--text-dark);
padding: 10px 20px;
border-radius: 20px;
cursor: pointer;
transition: all 0.3s ease;
}