@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

:root {
  --background-color: #000;
  --text-color: #fff;
  --primary-color: #007bff;
  --secondary-backgroud-color: #333;
}

/* Global styles */

html {
  font-size: 62.5%;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Code Pro', monospace;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 2rem 2rem;
  width: 80vw;
  overflow: hidden;
}

/* Calculator styles */

.inputBox {
  display: flex;
  justify-content: center;
  height: 50vh;
}

#dropArea {
  display: flex;
  padding: 1.5rem;
  margin: 0.8rem 0;
  text-align: center;
  align-items: center;
  flex-direction: column;
  font-size: 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

svg {
  height: auto;
  width: 60rem;
  margin-top: 7rem;
}

#dropArea.drag {
  background-color: var(--secondary-background-color);
  color: var(--background-color);
}

#dropArea input[type="file"] {
  display: none;
}

.popupSmall {
  width: 30rem;
  height: 20rem;
}

.popupSmall button {
  position: absolute;
  bottom: 0;
  margin-bottom: 1.6rem;
  width: 24rem;
  font-size: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
}

.popup {
  border: 0.1rem solid var(--text-color);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  background-color: var(--background-color);
  padding: 2rem;
}

.popupLarge {
  width: 80%;
  height: 70rem;
}


/* Shop styles */

.shop-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80ch, 1fr));
  gap: 1rem;
}

.shop-items h2 {
  margin: 0;
}

.shop-items article {
  padding: 1rem;
}

.shop-items button {
  font-size: 1.6rem;

  width: 100%;
}


/* Top bar styles */

.top-bar {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-evenly;
  width: 80vw;
  margin: 0 auto;
  flex-wrap: wrap;;
  z-index: 3;
}

.top-bar a {
  font-size: 4rem;
}

.top-bar button {
  margin: 0 1rem 0 1rem;
  min-width: 5rem;
  border: none;
  font-size: 1.6rem;
}

.right-buttons {
  margin-left: auto;
  display: flex;
  justify-content: space-between;
  max-width: fit-content;
  align-items: center;
}

@media (max-width: 970px) {
  .right-buttons {
    flex-direction: column;
    margin: 0;
  }

  .top-bar a {
    font-size: 3.4rem;
  }
}

/* Footer styles */

.footer {
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: auto;
}

/* General styles */

button {
  font-family: 'Source Code Pro', monospace;
  background-color: transparent;
  color: var(--text-color);
  border: 0.1rem solid var(--text-color);
  padding: 1.5rem;
  margin: 0.8rem 0;
  transition: all 0.3s ease;
  appearance: none;
  border-radius: 0;
  min-height: 3.2rem;
  justify-content: center;
  align-items: center;
}

::placeholder {
  color: #bbb;
}

input:hover, textarea:hover,
input:focus, textarea:focus {
  background-color: #222;
  outline: none;
}

button {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
}

button:hover, button:active {
  background-color: #fff;
  color: #000;
}

input:disabled, button:disabled, textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 2rem;
}

p {
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

img {
  max-width: 100%;
  height: auto;
}

@media screen and (min-width: 2400px) and (max-width: 3600px) {
  html {
      font-size: 91.75%; /* Adjusted font size for 1440p screens */
  }

}

/* Media Query for 4K screens */
@media screen and (min-width: 3601px) {
  html {
      font-size: 125%; /* Adjusted font size for 4K screens */
  }

}
