/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

header {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
}

header p {
    font-size: 1rem;
    font-weight: 300;
    margin: 10px 0 0;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}

nav ul li a:hover {
  text-decoration: underline;
}

.container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.ad-left, .ad-right {
    width: 150px;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

main {
    flex: 1;
    margin: 0 20px;
}

.speed-test {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Speedometer Gauge */
.speedometer {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.gauge {
    width: 50%;
    height: 100%;
    background: conic-gradient(
        #6a11cb 0%,
        #2575fc 50%,
        #00c6ff 100%
    );
    border-radius: 50%;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.needle {
    width: 2px;
    height: 100px;
    background: #333;
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom;
    transform: translateX(-50%) rotate(-90deg);
    transition: transform 1s ease;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}


.speedometer {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.speed-results {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.result-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 30%;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.result-card p {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    color: #666;
}

.result-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 10px 0 0;
    color: #333;
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 10px;
    margin: 15px 0;
    overflow: hidden;
    position: relative;
}

.progress {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    height: 100%;
    border-radius: 10px;
    width: 0;
    transition: width 1s ease;
}

button {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 30px;
    transition: background 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.ad-bottom {
    margin-bottom: 10px;
}

.ad-bottom img {
    max-width: 100%;
    height: auto;
}