body {
  font-family: 'Inter', sans-serif;
  background: #f9f9f9;
}

*, *::before, *::after {
  box-sizing: border-box;
}

header {      
  color: #333;
  background: #fff;
  padding: 15px 20px;
  font-family: 'Inter', sans-serif;      
  border: 1px solid #333;
  border-bottom: 3px solid #333;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

header .logo {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

header nav a {
  color: #333;
  text-decoration: none;
  margin-left: 20px;
  font-size: 16px;
  font-weight: 500;
}

@media (max-width: 600px) {
  header .header-container {
    flex-direction: column;
    align-items: center;
  }

  header nav {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }

  header nav a {
    margin: 0 10px;
  }
}

footer {      
  color: #333;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;        
}

footer a{
  color: #333;
  text-decoration: none;
}

.calContainer {
  max-width: 500px;
  margin: 30px auto;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 1px solid #333;
  border-bottom: 3px solid #333;
}

.calLabel {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #333;
}

.calInput {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  color: #000;
  border: 1px solid #333;
  border-radius: 5px;
  font-size: 17px;
}

.calButtons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.calButton {
  flex: 1;
  padding: 10px;
  margin: 0 5px;
  border: none;
  border-radius: 5px;
  background: #333;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.calButton[type="reset"] {
  background: #666;
}

.calButton:hover {
  background: #000;
}

@media (max-width: 600px) {
  .calButtons {
    flex-direction: column;
    gap: 10px;
  }

  .calButton {
    margin: 0;
    width: 100%;
  }
}

#calOutput {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;  
  text-align: center;        
}

#calOutput.success {
  background: #fffaed;
  color: #000;
  border: 1px solid #333;
  padding: 15px;
  border-radius: 5px;
  white-space: pre-line;    
}

#calOutput.error {
  background: #ffe5e5;
  color: #b00020;
  border: 1px solid #b00020;
  padding: 15px;
  border-radius: 5px;
}

.calText {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;    
  color: #444;
  line-height: 1.6;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border: 1px solid #333;
  border-bottom: 3px solid #333;
}

h1 {      
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 30px auto;
  color: #222;
  letter-spacing: 0.5px;        
}

.calText h2 {
  font-weight: 700;
  margin-bottom: 15px;
  color: #222;
}

@media (max-width: 600px) {
  h1 {
    font-size: 24px;
  }

  .calText h2 {
    font-size: 20px;
  }
}

#calPitch {
  display: none;  
}

#calOutput:not(:empty) + #calPitch {
  display: block;
  color: #444;
  border: 1px solid #333;
  padding: 0px 16px;
  border-radius: 5px;
  margin-top: 15px; 
}
