body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
    background-color: #f4f4f4;
}

h1 {
    color: #333;
}

#network-container {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 40px;
}

.computer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    padding: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.computer-icon {
    width: 60px;
    height: 40px;
    margin-bottom: 10px;
    background-color: #555;
    border-radius: 5px;
    position: relative;
}

.computer-icon::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 10px;
    background-color: #333;
    bottom: -12px;
    left: 10px;
    border-radius: 2px;
}

#connection-line,
#interception-line {
    position: absolute;
    width: 40%;
    height: 2px;
    background-color: #007bff;
    top: 60px;
}

#connection-line {
    left: 20%;
}

#interception-line {
    left: 40%;
    background-color: #ff4444;
}

.computer-title {
    font-weight: bold;
    margin-bottom: 15px;
}

.message-input,
.attempt-input {
    width: 80%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 15px;
}

.attack-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
}

.attack-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.timing-bar {
    width: 100px;
    height: 20px;
    background-color: lightgray;
    margin: 10px auto;
    transition: width 0.5s;
}

.timing-display,
.attempt-display {
    margin-top: 20px;
    font-weight: bold;
}

#timingChartContainer {
    max-width: 600px;
    margin: 0 auto;
    margin-top: 40px;
}

#animationBox {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    position: relative;
}

.message-bubble {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #007bff;
    border-radius: 50%;
    animation: moveToTarget 1s linear;
}

@keyframes moveToReceiver {
    0% {
        top: 0;
        left: 10%;
    }

    100% {
        top: 150px;
        left: 35%;
    }
}

@keyframes moveToAttacker {
    0% {
        top: 0;
        left: 10%;
    }

    100% {
        top: 150px;
        left: 60%;
    }
}