body{
    margin: 0;
    padding: 0;
    background-image: url(Bg.jpg);
    font-family: Arial, sans-serif;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
}
/* Top navigation bar */
.d {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  background-color: rgb(29, 29, 235);
  border-radius: 50px;
  padding: 0 20px;
  position: fixed; /* stays at top */
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Title inside navbar */
.d a {
  color: white;
  font-weight: bold;
  font-size: 20px;
  margin-right: 20px;
}

/* Search box inside navbar */
.d div {
  display: flex;
  gap: 10px;
}

/* Profile image section */
.d3 {
  display: flex;
  justify-content: center;
  margin-top: 80px; /* space below navbar */
}

/* Social icons row */
.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}

.social-links img {
  height: 80px;
  cursor: pointer;
  transition: transform 0.2s;
}

.social-links img:hover {
  transform: scale(1.1);
}

/* Container for calculator */
.container {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 550px;
  width: 100%;
  margin: 20px auto; /* center horizontally */
}

h2 {
  text-align: center;
  color: #333;
}

.subject {
  margin: 10px 0;
}

input {
  padding: 6px;
  margin: 4px;
  width: 100px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

button {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #4CAF50;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background: #45a049;
}

.result {
  margin-top: 15px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #222;
}
