html {
    box-sizing: border-box;
    font-family: "Source Sans Pro", sans-serif;
    --orange-protec: #FF7F30;
    --blue-protec: #002D74;
    --purple-protec: #AB0093;
    --red: #da3633;
    --dark-red: #be2f2c;
    text-align: center;
}

h1 {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 10px auto;
    border: 1px solid #ddd;
    background-color: #f2f2f2;
}

tr {
    border-bottom: 1px solid #ddd;
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    color: #333;
    text-transform: uppercase;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.button,
input[type="submit"]{
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px auto;
    width: fit-content;
}

.button > img {
    height: 24px;
    width: 24px;
}

.button > span {
    margin-top: 2px;
}

.btn-primary,
input[type="submit"] {
    background: var(--blue-protec);
    color: white;
    border: var(--blue-protec) solid 2px;
    font-size: 15px;
}

.btn-primary:hover,
input[type="submit"]:hover {
    background: var(--orange-protec) !important;
    box-shadow: 0 0 .3em 0 grey;
}

.btn-danger {
    background: var(--red);
    color: white;
    border: var(--red) solid 2px

}

.btn-danger:hover {
    border: var(--dark-red) solid 2px;
    box-shadow: 0 0 .3em 0 grey;
}

.allExceptHeader {
    margin: 0 auto;
    min-height: 90vh;
    width: 80vw;
}


.frame, .sticks {
    fill: #ccc;
}

.winIndicator {
    fill: #ccc;
}

.wheelMiddle {

}

.luckywheel {
    margin-top: 20px;
    aspect-ratio: 1;
    width: calc( min( 100vh - 60px - 3em - 60px , 100vw - 2em , 300px ) );
}

.corvee{
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 30px;
}

.corvee-results,
#wheel-form-complete{
    opacity: 0;
    animation: opacity 0,3s ease-in-out forwards;
}


@media screen and (max-width: 600px) {
    .luckywheel {
        max-width: 200px;
    }

    .corvee{
        flex-direction: column;
        gap: 0;
    }
}

#luckywheelform {
  width: fit-content;
  margin: 2em auto;
  text-align: left;
}

#luckywheelform > div {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

label {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}

#search, #target {
  margin-top: 10px;
  padding: 0 0 0 10px;
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  background: #EEE;
  border: 1px solid #000;
  border-radius: 5px;
}

#target {
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  min-width: 100%;
}

#search {
  border-radius: 5px 5px 0 0;
  background-color: white;
}


input[type="text"],
input[type="number"],
input[type="email"] {
    padding: 10px;
    border: 2px solid var(--blue-protec);
    border-radius: 5px;
    background-color: white;
    color: var(--blue-protec);
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-weight: bold;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--orange-protec);
}

textarea {
    padding: 10px;
    border: 2px solid var(--blue-protec);
    border-radius: 5px;
    background-color: white;
    color: var(--blue-protec);
    font-size: 12px;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--orange-protec);
}


.form-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.form-vertical * {
    width: fit-content;
}

/* Layout */

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: sans-serif;
}
div.allExceptHeader {
  max-width: 600px;
  margin-inline: auto;
  min-height: 80vh;
  padding: 5px;
  flex-grow: 1;
}
div.footer {
  background-color: #444;
  padding: 10px;
  color: white;
  font-weight: bold;
  overflow: hidden;
  margin-top: 2em;
  text-align: center;
  font-size: 10pt;
}
div.footer a {
  color: white;
}

input[disabled] {
  width: 100%;
}
