* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}

body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
}


.ribbon {
  width: 100%;
  height: 44.25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: gray;
  color: whitesmoke;
}

.bg-container {
  position: relative;
  width: 100vw;
  /* height: 500px; */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* semi-transparent overlay */
  z-index: 2;
}

.content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: #fff;
  text-align: center;
}


.paragraph {
  margin-top: 20px;
  font-size: 1.2rem;
  max-width: 600px;
}

.grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border: 2px solid #0066CC;
  padding: 25px;
}

.calculator {
  display: flex;
  align-items: center;

  padding: 20px;
}

input {
  width: 100%;
}

/* Link button */
a {
  margin-top: 50px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  color: #0066CC;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, 0.2s ease-in-out;

  /* background-color: white; */
  font-size: 1.3rem;
  border-radius: 5px;
}

a:hover {
  transform: scale(1.05);
  /* Slight scale up */
  border: 2px solid #0066CC;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background-color: #f5f5f5;
  color: #000000;
}

button {
  background-color: #0066CC;
  border: none;
  border-radius: 5px;
  color: #f5f5f5;
  padding: 15px 20px;
  margin: 40px 0;
  cursor: pointer;
}



@media (max-width: 600px) {
  .content {
    font-size: 1rem;
    padding: 1rem;
  }

  h1 {
    font-size: 1.2rem;
  }

  .grid {
    grid-template-columns: 1fr;

  }

  p {
    font-size: 1rem;
  }
}