body {
  background-color: lightblue;
  font-family: Verdana, Tahoma, sans-serif;
}

h1 {
  color: white;
  text-align: center;
}

p {
  font-family: "Arial", sans-serif;
  font-size: 20px;
}

.medium-image {
  width: 100%; /* Make the image responsive */
  height: auto;
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

header,
h2,
footer {
  text-align: center;
}

main {
  margin: 0 10px; /* Adjust margins for small devices */
}

a {
  color: rgb(234, 3, 76);
  text-decoration: none;
}

a:hover {
  color: rgb(5, 255, 230);
}

img {
  max-width: 100%; /* Make the image responsive */
  height: auto;
  text-align: center;
}

figure {
  text-align: center;
}

/* Center-align the table data */
table {
  width: 100%; /* Make the table responsive */
  margin: 0 auto;
  
  /* Center the table horizontally */
}

table,
th,
td {
  border: 1px solid black;
  text-align: center;
  /* Center-align table cell content */
}

h3 {
  text-align: center;
}

figure table tr.header {
  background-color: #000;
  color: #fff;
}

/* Odd Rows Style */
tr:nth-child(odd) {
  background-color: #f2f2f2;
}

/* Even Rows Style */
tr:nth-child(even) {
  background-color: #ddd;
}

/* Footer Row Style */
tr.total {
  font-weight: bold;
}

/* Center-align the caption */
figcaption {
  text-align: center;
  font-weight: bold;
}

.reset-link {
  display: block;
  margin: 20px auto;
  padding: 10px 15px;
  background-color: #007BFF;
  color: white;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: fit-content;
}

.reset-link:hover {
  background-color: #0056b3;
}

#infoForm {
  font-family: Arial, sans-serif;
}

/* Media Query for Small Devices (576px and up) */
@media (min-width: 576px) {
  main {
    margin: 0 20%;
  }
}

/* Calculator container */
#calc-container {
  width: 300px;
  margin: 0 auto;
  background-color: #f5f5f5;
  border: 2px solid #d5d5d5;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  text-align: center;
}

/* Calculator display */
#calc-display {
  background-color: #fff;
  border: 1px solid #ccc;
  font-size: 24px;
  height: 40px;
  margin-bottom: 10px;
  padding: 5px;
  text-align: right;
  border-radius: 3px;
}

/* Calculator buttons */
.calc-button {
  width: 50px;
  height: 50px;
  font-size: 18px;
  margin: 5px;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  transition: background-color 0.2s, color 0.2s;
}

.calc-button:hover {
  background-color: #e5e5e5;
}

/* Numeric buttons */
.calc-num {
  background-color: #f0f0f0;
}

/* Operator buttons */
.calc-operator {
  background-color: #f0c040;
  color: #fff;
}

/* Clear button */
#calc-clear {
  background-color: #f04040;
  color: #fff;
}

/* Equals button */
#calc-equals {
  background-color: #40c240;
  color: #fff;
}

/* Slide Show */
* {
  box-sizing: border-box;
}

/* Position the image container (needed to position the left and right arrows) */
.container {
  position: relative;
}

/* Hide the images by default */
.mySlides img {
  height: 300px;
  width: auto;
}

/* Add a pointer when hovering over the thumbnail images */
.cursor {
  cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Container for image text */
.caption-container {
  text-align: center;
  background-color: #222;
  padding: 2px 16px;
  color: white;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Six columns side by side */
.column {
  float: left;
  width: 16.66%;
}

/* Add a transparency effect for thumnbail images */
.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}
