@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bytesized&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Butterfly+Kids&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: 'Poppins', sans-serif;
    cursor: url(./images/pointercursor.png), auto;
}

@font-face {
    font-family: MC;
    src: url("./fonts/minecraft-font/MinecraftRegular-Bmg3.ttf");
}
@font-face {
    font-family: MCBold;
    src: url("./fonts/minecraft-font/MinecraftBold-nMK1.otf");
}
@font-face {
    font-family: MCItalics;
    src: url("./fonts/minecraft-font/MinecraftItalic-R8Mo.otf");
}

html {
    scroll-behavior: smooth;
}

body {
    background-image: url("../images/bg5.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

p {
    font-size: 1.2rem;
    margin: 5px;
}

header {
    justify-content: center;
    align-items: center;
}

header .top{
    text-align: left;
    margin: 20px;
}

header a {
    font-family: MC;
    font-size: large;
    color: #fff2f2;
    text-decoration: none;
}

header a button {
    text-decoration: none;
}

header a button:hover {
    text-decoration: underline;
}

header button {
    font-family: MC;
    letter-spacing: 1px;
    position: relative;
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 400;
    border-radius: 20px;
    background-color: transparent;
    border: none;
    transition: 0.3s ease all;
    text-decoration: underline;
}

header button:hover {
    text-decoration: none;
    transition: 0.3s ease all;
}

/*.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
    letter-spacing: 1px;
    position: relative;
    color: #ffffff;
    align-items: center;
    justify-content: center;

}

.hero-content {
    color: #f0f0f0;
    width: 30%;
    padding: 1em 2em;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 400;
    border-radius: 20px;
    background-color: transparent;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, .2);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    transition: 0.3s ease all;
}*/


.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding-top: 0px;
    padding-left: 20px;
    padding-right: 20px;
    color: #ffffff;
    letter-spacing: 1px;
    position: relative;
}

.hero img {
    margin: 20px;
    width: 25%;
}
  
.hero-content {
    background-color: transparent;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, .2);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    border-radius: 20px;
    padding: 2em;
    width: 100%;
    max-width: 500px;
    margin: 0 auto; /* Center horizontally */
    font-size: 18px;
    font-weight: 400;
    transition: 0.3s ease all;
}
  
/* Make responsive for smaller screens */
@media (max-width: 600px) {
.hero-content {
    padding: 1.5em;
    width: 100%;
    font-size: 16px;
}
  
.hero img {
    width: 50%;
}
  
p {
    font-size: 1rem;
}
  
.copy-btn, .retry-btn {
    width: 100%;
    font-size: 1rem;
    margin-top: 10px;
}
  
.button-group {
    flex-direction: column;
    align-items: center;
}
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.5em 1em;
    border-radius: 999px;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1rem;
    animation: fadeIn 2s;
    min-width: 120px;
}

.online {
    background-color: #28a745;
    color: white;
    box-shadow: 0 0 15px #4d9e22;
}

.offline {
    background-color: #dc3545;
    color: white;
    box-shadow: 0 0 15px #dc3545;
}

.loading {
    background-color: #ffc107;
    color: black;
    box-shadow: 0 0 15px #ffc107;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: black;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.copy-btn, .retry-btn {
    font-family: MC;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: rgb(55, 59, 95);
    border: none;
    border-radius: 10px;
    color: white;
    transition: background 0.3s;
    margin: 10px;
}

.copy-btn:hover, .retry-btn:hover {
    background-color: rgb(39, 41, 71);
}

.button-group {
    display: flex;
    gap: 0px;
    justify-content: center;
    flex-wrap: wrap;
}

.toast {
    position: absolute;
    bottom: 30px;
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    animation: fadeIn 0.5s, fadeOut 0.5s 3.5s forwards;
}

#live-dot {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}


@keyframes fadeOut {
    to { opacity: 0; transform: translateY(20px); }
}

#latency-status {
    margin-top: 5px;
  }
  

/*Footer*/

footer {
    z-index: 999;
    bottom: auto;
    background: rgb(6, 8, 19);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    height: auto;
}

.footer-content {
    text-align: center;
}

.footer-content h1 {
    font-family: MC;
    font-size: 18px;
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-content .dofii {
    font-family: MC;
}


.footer-content .dofii:hover {
    text-decoration: underline;
}

.footer-content p {
    font-family: MC;
    font-size: 15px;
    color: #ffffff;
}