body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, #33C4FF, #33A8FF);
    background-size: 200% auto;
    animation: gradientAnimation 5s infinite;
}
@keyframes gradientAnimation {
    0% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}
#notification {
    color: red;
    font-weight: bold;
}
.container {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease-in-out;
    animation: fadeIn 1s;
}
h1 {
    color: #333;
    margin-top: 0;
    font-size: 24px;
    animation: fadeIn 2s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 20px;
}
button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin: 5px;
    box-sizing: border-box;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    transition: background-color 0.3s, transform 0.3s;
    animation: fadeIn 2s;
}
button:hover {
    background-color: #45a049;
}
.input-container {
    display: flex;
    align-items: center;
    margin: 5px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    animation: fadeIn 2s;
}
.input-container input {
    flex-grow: 1;
    padding: 10px;
    font-size: 16px;
    border: none;
    outline: none;
}
.input-container button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #333;
    color: #fff;
    outline: none;
    transition: background-color 0.3s;
}
.input-container button:hover {
    background-color: #555;
}
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
    animation: popupFadeIn 0.5s;
}
.popup.active {
    display: block;
}
@keyframes popupFadeIn {
    from { transform: translate(-50%, -60%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}
#popupHeader, #popupResult, #packetLoss {
    color: white;
}
#networkStatus {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
}
#popupResult {
    max-height: 200px;
    overflow-y: auto;
}
#stopButton {
    background-color: #FF0000;
    color: white;
    font-weight: bold;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}
#stopButton:hover {
    background-color: #e60000;
    transform: translateY(-2px);
}
#loading, #notification {
    margin-top: 20px;
    font-style: italic;
    display: none;
    animation: fadeIn 2s;
}
.footer {
    color: #666;
    text-align: center;
    margin-top: 20px;
    animation: fadeIn 2s;
}
.separator {
    border-top: 1px solid white;
    margin-top: 10px;
    margin-bottom: 10px;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

#loading {
    animation: fadeInOut 3s infinite;
}
