/* ===== Base ===== */
* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(#016764, #005958, #014848, #00312F, #001E1E);
  min-height: 100vh;
  margin: 0;
  background-repeat: no-repeat;
  line-height: 1.4;
  color: #abeeff;
}

/* ===== Top Row (Images Only) ===== */
.top-row {
  position: relative;
  height: 120px;
  margin-bottom: 3rem;
}

.penguin {
  position: absolute;
  right: 70%;
  top: 20px;
  width: 140px;
}

.matrix {
  position: absolute;
  right: 30%;
  top: 20px;
  width: 160px;
}

/* ===== Header (Text Only) ===== */
.page-header {
  text-align: center;
  padding: 1rem;
  background: #154a46;
  color: white
}

.main-heading {
  font-family: Merriweather, serif;
  font-size: 2.75rem;
  margin: 0px;
  padding: 0px;
}

.subheading {
  font-family: Merriweather, serif;
  font-size: 1.25rem;
  margin-top: -3px;
}

/* ===== Main Layout ===== */
.content {
  max-width: 940px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ===== Solver Section ===== */
.solver {
  margin-top: 2rem;
  margin-left: 0;
}

.solver-title {
  font-family: Merriweather, serif;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.solver-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.solver-form label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.solver-form input {
  width: 120px;
  font-size: 1rem;
  padding: 0.25rem;
  border-radius: 6px;
}

.solver-form button {
  font-size: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
}

.matrix-cell {
  .width: 120px;
  font-size: 1rem;
  padding: .25rem;
  border: 1px solid #ccc;
  text-align: center;
  border-radius: 6px;
}

#input-grid {
  display: grid;
  gap: 10px;
  margin-top: 1.5rem;
}

.buttons {
  font-size: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
}

/* ==== Computation ==== */
#computation {
  margin-top: 50px;
}

.is-hidden {
  visibility: hidden;
}

.hbox-container {
  display: flex; 
  gap: 10px;    
  justify-content: center; /* Centers items horizontally */
  align-items: center;     
  height: 200px;           /* Example height for visibility */
  padding: 10px;  
}

#ref-matrix {
  font-size: 40px;
  color: white;
  margin: 20px;  
}

#rref-matrix {
  font-size: 40px;
  color: white;
  margin: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .content {
    max-width: 728px;
  }
}

@media (max-width: 767px) {
  .solver-form {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 479px) {
  .content {
    max-width: none;
  }

  .top-row {
    display: none;
  }
}
