:root {
    --light-green: #00b200;
    --green: #008b00;
    --dark-green: #004400;
    --grey: #aaa;
}

body {
    background-color: #111;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.topbar {
    width: 100%;
    padding: 0 1vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.topbar > img{
    height: 8vh;
}

.topbar > h1 {
    width: fit-content;
    margin: 0.5rem 0 0 0;
}

nav {
    flex: 1;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0 3vw;
    height: fit-content;
}

.button,
nav > button {
    background: none;
    border: 1px solid var(--green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    height: fit-content;
    transition: 0.2s;
    cursor: pointer;
}

a {
    text-decoration: none;
    font-family: inherit;
    color: inherit;
    font-size: inherit;
}

.button:hover,
nav > button:hover {
    background-color: var(--green);
    color: black;
    transform: scale(1.15, 1.15);
}

.form {
    border: 2px solid white;
    border-radius: 1rem;
    padding: 2rem;
    transition: height 1s ease-in;
}

.form > h3 {
    text-align: center;
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
}

.form-input {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.form-input > label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    background-color: #111;
    margin-left: 0.5rem;
    padding: 0 0.5rem;
    box-sizing: border-box;
    pointer-events: none;
    color: #999;
    font-size: 1rem;
    transition: 0.2s;
    
}

.form-input > input {
    background: none;
    font-size: 1.25rem;
    color: white;
    border: 1px solid white;
    border-radius: 1rem;
    padding: 0.5rem;
    transition: 0.2s;
}

.form-input > input:focus {
    border: 1.5px solid white;
}

.form-input:has(input:focus) label,
.form-input:has(input:not(:placeholder-shown)) label {
    top: 0;

}

.back {
    float: left;
    padding: 0.5rem 2rem;
}
.submit {
    float: right;
    padding: 0.5rem 2rem;
    margin-bottom: 1rem;
}

hr {
    margin: 1rem 0;
    width: 100%;
}

.form-wrapper {
    width: 100%;
    height: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

.scanner .dash {
    fill: none;
    stroke: var(--green);
    stroke-width: 2;
    stroke-linejoin: miter;
    stroke-dasharray: 5% 95%;
    animation: scan 8s linear infinite;
    filter: drop-shadow(0 0 2rem #0f0);
}

@keyframes scan {
    to {
        stroke-dashoffset: 100%;
    }
}

.popup-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
    background-color: #000;
    opacity: 0.5;
    z-index: 2;
    pointer-events: auto;
}

.popup {
    z-index: 4;
    background-color: #111;
    position: fixed;
    top: 40%;
    left: 50%;
    translate: -50% -50%;
    text-align: center;
    border: 2px solid var(--green);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    width: 30vw;
}

.popup > div {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.popup > h1 {
    margin-top: 0.5rem;
}

.main-img {
    width: 40%;
}

.home > h2 {
    margin: 0;
    font-size: 3rem;
    color: var(--dark-green);
}

.home .button {
    margin-top: 2rem;
    font-size: 2rem;
}

.home {
  margin: 0 3rem 3rem 3rem;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.home-titleBox {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-titleBox > div {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.home-titleBox img {
  width: 6rem;
}

.home-titleBox h1 {
  font-size: 3rem;
}
.home-titleBox h3 {
    color: var(--grey);
}

.home-featureBox {
    margin: 2rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 15rem;
    gap: 2rem;
}

.home-featureBox h2 {
  font-size: 2.25rem;
  color: var(--green);
}

.home-featureBox > div {
    width: 50%;
}

.home-featureBox img {
  flex: 2;
  max-width: 40%;
  border: 5px solid var(--green);
  border-radius: 1rem;
}