/* =========================
   Accessibility: Focus Styles
   ========================= */
input:not([type="radio"]):not([type="checkbox"]):focus,
textarea:focus,
select:focus {
    outline: 2px solid #D3FE3E;
    outline-offset: 2px;
    border-color: #50249d;
    background: #fffbe6;
}

button:focus {
    outline: 2px solid #D3FE3E;
    outline-offset: 2px;
    border-color: #50249d;
    background: #fffbe6;
}

/* =========================
   Responsive Design
   ========================= */
@media (max-width: 700px) {
    .wrapper {
        width: 98%;
        padding: 1rem 0.25rem;
    }
    .flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    .flex-left, .flex-right {
        flex-basis: 100%;
        width: 100%;
    }
    input:not([type="radio"]):not([type="checkbox"]),
    textarea,
    select {
        width: 100%;
        min-width: 0;
    }
    .footer-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .frame iframe {
        width: 100% !important;
        height: 180px !important;
    }
}
/* =========================
   Box Model & Reset
   ========================= */
html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* =========================
   Typography & Text
   ========================= */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url(../img/galaxy.jpg);
}

h1,
legend {
    font-family: "Orbitron", sans-serif;
}

h1 {
    -webkit-text-stroke: 5px #704db9bc;
    -webkit-text-stroke: 2px #ffffff;
}

h3 {
    margin-top: 0;
}

label {
    display: block;
    margin: 0.5rem 0;
    padding-bottom: 0.3rem;
    font-weight: bold;
}

legend {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

p,
[for="abtype"] {
    margin: 2rem 0 0 0
}

address {
    margin: 0;
    padding: 0;
}

/* =========================
   Layout & Containers
   ========================= */
.wrapper {
    width: 85%;
    margin: 2rem auto;
    padding: 3rem 0;
}

section {
    background-color: #D5C6FF;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin: 10px auto;
}

/* =========================
   Flexbox Layout
   ========================= */
.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.flex-left {
    flex-basis: 18rem;
}

.flex-right {
    flex-basis: 18rem;
}

/* =========================
   Forms & Form Elements
   ========================= */
form {
    gap: 5rem;
    padding: 1.2rem;
}

fieldset {
    border: 1px solid #000000;
    border-radius: 10px;
    margin-bottom: 2rem;
}

input:not([type="radio"]):not([type="checkbox"]),
textarea,
select {
    display: block;
    margin-bottom: 2rem;
    width: 20rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    border-radius: 10px;
    padding: 0 1rem;
}

textarea {
    height: 10rem;
    padding: 1rem;
}

select {
    font-size: 0.9rem;
}

button {
    font-size: 0.9rem;
    font-weight: bold;
    margin: 2rem 0;
    background-color: #D3FE3E;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

button:hover {
    background-color: #000;
    color: #D3FE3E;
    cursor: pointer;
}

/* =========================
   Footer & Location
   ========================= */
footer {
    background-color: #50249d;
    color: white;
    width: 50%;
    max-width: 550px;
    margin: 0 auto;
}

footer h3 {
    text-decoration: underline;
    padding: 1rem 0 0 1rem;
    margin: 0;
}

.footer-flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    padding-bottom: 1rem;
    border-radius: 10px;
    ;
}

.location {
    flex: 1;
    margin: 0;
    padding: 1rem;
    border-radius: 10px;
}

/* =========================
   Decorative Elements
   ========================= */
.frame {
    margin: 0;
    padding: 0;
    border-top: 15px solid #50249d;
    border-left: 15px solid #50249d;
}

p.indent {
    margin: 2rem auto 0 auto; /* Keeps top margin, centers horizontally */
    text-align: center; /* Also center the text itself */
}

.glow {
    font-size: 64px;
    color: #fff;
    text-align: center;
    text-wrap: balance;
    animation: glow 2s ease-in-out infinite alternate;
}

/* =========================
   Animations
   ========================= */
@keyframes glow {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #704db9bc, 0 0 40px #704db9bc, 0 0 50px #704db9bc, 0 0 60px #704db9bc, 0 0 70px #704db9bc;
    }

    to {
        text-shadow: 0 0 20px #fff, 0 0 30px #6f4db947, 0 0 40px #6f4db947, 0 0 50px #6f4db947, 0 0 60px #6f4db947, 0 0 70px #6f4db947, 0 0 80px #6f4db947;
    }
}