:root {
  --background-color: #0a192f;
  --text-color: white;
  --container-background-color: rgba(255, 255, 255, 0.1);
  --button-background-color: #247ba0;
  --result-background-color: rgba(255, 255, 255, 0.17);
  --result-text-color: #5a9;
  --hover-background-color: rgba(255, 255, 255, 0.4);
}

body {
  background: var(--background-color);
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

.container {
  width: 80%;
  max-width: 800px;
  margin: 20px auto 0;
  background: var(--container-background-color);
  backdrop-filter: blur(5px);
  border-radius: 25px;
  padding: 20px;
  box-shadow: 0px 10px 30px -5px rgba(0, 0, 0, 0.3);
}

.title {
  text-align: center;
  font-weight: 700;
  font-size: 2em;
  margin-bottom: 20px;
}

.input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.input-box {
  width: 90%;
  padding: 10px 20px;
  margin-bottom: 10px;
  border: none;
  border-radius: 25px;
  background: var(--container-background-color);
  color: var(--text-color);
  font-size: 1.2em;
  outline: none;
}

.convert-button {
  width: 85%;
  padding: 10px 20px;
  margin-top: 10px;
  border: none;
  border-radius: 25px;
  background: var(--button-background-color);
  color: var(--text-color);
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.convert-button:active {
  transform: scale(0.97);
}

.result-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.unit-category h2 {
  color: var(--result-text-color);
  font-size: 1.2em;
  margin-bottom: 10px;
  text-align: center;
}

@media (max-width: 750px) {
  .result-container {
    display: flex;
    flex-wrap: wrap;
  }
  
  .unit-category {
    width: 100%;
  }
}




@media (min-width: 750px) {
  .result-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.result {
  padding: 0px;
  margin: 10px;
  border-radius: 10px;
  background: var(--result-background-color);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
  height: 2em;
}

.result span {
  color: var(--text-color);
  font-weight: 700;
}

.unit {
    padding-left: .25em;
      color: var(--result-text-color);
}


.styleContainer {
  display: flex;
  justify-content: center;
}

#change-style-button {
  min-width: 225px;
  width: 25%;
  padding: 10px 20px;
  margin-top: 30px;
  border: none;
  border-radius: 25px;
  background: var(--button-background-color);
  color: var(--text-color);
  font-size: 1.2em;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

/* Hero Section */
section {
  text-align: center;
  margin-bottom: 15px;
}

section h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

section p {
  font-size: 1.2em;
  color: var(--text-color);
}

.hero-image {
  width: 80%; /* Adjust the width to your desired value */
  height: auto; /* Maintain the original aspect ratio */
  border-radius: 8px;
}
.hero {
  margin-top: 20px;
}


/* CSS for Navigation */
nav {
  display: flex;
  flex-direction: column; /* Display elements in a column */
  align-items: center;
  background: var(--background-color);
  backdrop-filter: blur(5px);
  padding: 10px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

#navName {
  color: var(--text-color);
  font-size: 2em;
  font-weight: bold;
  margin: 0; /* Remove margins */
  padding-bottom: 10px;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin-left: 20px;
}


nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-right: 20px;
}

nav ul li {
  margin-left: 20px;
}

nav ul li:first-child {
  margin-left: 0;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.2em;
}

/* By default, the dropdown is hidden */
/* Style for the mobile navigation dropdown */
#mobileNav {
    max-width: 90%; /* Full width */
    padding: 10px 15px; /* Padding to make it larger */
    font-size: 1.4em; /* Increase font size */
    margin: 10px 0; /* Add some margin */
    border: 2px solid #333; /* Add border */
    border-radius: 5px; /* Rounded corners */
    appearance: none; /* Remove default appearance */
    -webkit-appearance: none; /* Remove default appearance for Safari */
    -moz-appearance: none; /* Remove default appearance for Firefox */
    background-color: #f8f8f8; /* Background color */
    color: #333; /* Text color */
    cursor: pointer; /* Cursor style */
}

/* Add a custom dropdown arrow using a background image */
#mobileNav {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M31.3 192l128 128c9.4 9.4 24.6 9.4 33.9 0l128-128c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 289.9 59.5 135.5c-9.4-9.4-24.6-9.4-33.9 0L2.9 158c-9.2 9.4-9.2 24.6 .4 34z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center; /* Position the arrow on the right side with some padding */
    background-size: 20px; /* Size of the arrow */
    padding-right: 45px; /* Adjust padding to prevent text overlap with the arrow */
}

/* On focus styles for better accessibility */
#mobileNav:focus {
    outline: none; /* Remove default outline */
    border-color: #007BFF; /* Change border color */
    box-shadow: 0 0 5px #007BFF; /* Add a glow effect */
}



.blurb p {
  text-align: center;
}

section .image-and-blurb {
  display: flex;
  flex-direction: column; /* Stack on top of each other */
  align-items: center;
  width: 100%;
}

section .image-and-blurb img {
  width: 100%; /* Take full width */
  max-width: 600px;
  height: auto;
  box-shadow: 0px 10px 30px -5px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  margin-bottom: 20px; /* Add space between image and blurb */
}

section .image-and-blurb .blurb {
  width: 100%; /* Take full width */
  padding: 10px;
  text-align: left;
}
.blurb p {
  margin-bottom: 30px;
}

/* Updated Additional CSS */

/* Updated code for mobile layout */
@media only screen and (max-width: 768px) {
  section .image-and-blurb img,
  section .image-and-blurb .blurb {
    margin-bottom: 20px; /* Add space between image and blurb */
  }
}


section a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: 0 auto;
  margin-top: 10px;
  border: none;
  border-radius: 25px;
  background: var(--button-background-color);
  color: var(--text-color);
  font-size: 1.2em;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0px 10px 30px -5px rgba(0, 0, 0, 0.3);
  max-width: 600px;
}

section a.button:hover {
  background: var(--hover-background-color);
}

section a.button:active {
  transform: scale(0.97);
}
/* Updated Additional CSS */

.card-container .card a.button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blurbImage {
  width: 100px; /* Adjust the width to your desired value */
  height: 100px; /* Maintain the original aspect ratio */
}

footer {
  text-align: center;
}


#patreonImage {
  width: 600px;
  max-width: 70%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
}
