:root {
    /* Australian Independent Colour Standard AS 2700 */
    --royalblue: #2c3563	; /* B12 Royal Blue */
    --ultramarine: #2c5098; /* B21 Ultramarine */
    --basalt: #585c63;  /* N54 Basalt */
    --lightgreyblue: #c0c0c1; /* B44 Light Grey Blue */
    --black: #2a2a2c; /* N61 Black */
    --white: #ffffff; /* N14 White */
    --ghostgum: #e8dad4; /* R33 Ghost Gum */
}

body {
    background: var(--royalblue);
    background: linear-gradient(90deg, var(--royalblue) 0%, var(--ultramarine) 90%);

    user-select: none;

    width: calc(100vw - (100vw - 100%));
    min-height: 100vh;
    margin: 0;

    color: var(--white);
    font-size: 2.1rem;
    font-family: "Roboto", sans-serif;
}

#card {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.06);
    padding: 2rem;
    margin-bottom: 2rem;
    width: 80%;
    margin: auto;
    margin-top: 2rem;
}

p {
    margin: 0;
    padding: 1rem;
    /* text-align: justify; */
}

a {
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    flex: 1 1 0;
    text-align: center;
}

a:hover {
    color: var(--lightgreyblue);
}

#header {
    width: 100%;
    position: sticky;
    top: 0;

    background: var(--royalblue);
    background: linear-gradient(90deg, var(--royalblue) 0%, var(--ultramarine) 90%);

    border-bottom: 0.2rem var(--basalt) solid;

    z-index: 5;
}

#title {
    padding-bottom: 0.2rem;

    font-size: 2.1rem;
    text-align: center;
}

#subtitle {
    padding-top: 0rem;

    color: var(--lightgreyblue);
    font-size: 0.8rem;
    text-align: center;
}

#menu {
    padding: 1.5rem;

    display: flex;
    justify-content: space-around;

    font-size: 1.2rem;
}

#content {
    background-color: #e8dad4;

    width: 100%;

    color: var(--black);
    font-size: 1.2rem;

    padding-top: 1rem;
    padding-bottom: 3rem;
}

#tickers > p {
    font-size: 2.1rem;
    text-align: center;
    padding-bottom: 0.2rem;
}

#desc {
    padding-top: 0rem !important;
    font-size: 0.8rem !important;
    color: var(--basalt);
}

#content > p {
    padding: 2rem 4rem;
    line-height: 3rem;
}

#brief {
    padding-bottom: 0rem !important;

    font-size: 1.5rem;
    font-weight: bold;
}

#subheading {
    padding-bottom: 0rem !important;

    font-size: 1.2rem;
    font-weight: bold;
}

#quiz {
    display: block;
    text-align: center;
    margin: auto;
    color: var(--royalblue);
    padding: 2rem;
    line-height: 3rem;
    font-size: 1.5rem;
    width: 30%;
}

#quiz:hover {
    color: var(--basalt);
}

#quizBtn, #quizBtnAlt {
    text-align: center;
    background: var(--royalblue);
    background: linear-gradient(90deg, var(--royalblue) 0%, var(--ultramarine) 90%);
    padding: 2rem;
    color: var(--white);
    border: none;
    font-family: "Roboto", sans-serif;
    font-size: 1.2rem;
    border-radius: 0.75rem;
    display: block;
    margin: auto;
    margin-top: 1rem;
    cursor: pointer;
}

#quizBtnAlt {
    background: var(--white);
    color: var(--royalblue);
    border: 0.2rem var(--royalblue) solid;
    padding: 1.8rem;
}

#quizBtn:hover {
    color: var(--lightgreyblue);
}

#quizBtnAlt:hover {
    color: var(--basalt);
    border: 0.2rem var(--basalt) solid;
}

#quizBtn:active {
    transform: scaleX(0.99) scaleY(0.99);
}

span {
    color: var(--royalblue);
}

span:hover {
    cursor: pointer;
    color: var(--basalt);
}

#label {
    padding-top: 1rem !important;
    padding-bottom: 0.2rem;
}

#contact > #desc {
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
}

#contact > input, #contact > textarea {
    background-color: var(--white);
    border: none;
    border-bottom: 0.2rem var(--lightgreyblue) solid;
    margin-left: 1rem;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 1rem;
    font-family: "Roboto", sans-serif;
    min-width: calc(50% - 2rem);
}

textarea {
    resize: none;
}

#contact > input:focus, #contact > textarea:focus {
    outline: none;
    appearance: none;
    border-bottom: 0.2rem var(--royalblue) solid;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    box-shadow: 0 0 0 1000px white inset !important;
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #000 !important; /* Optional: reset font color */
    transition: background-color 5000s ease-in-out 0s;
}

#footer {
    padding-top: 2rem;
    height: 100%;
    border-top: 0.2rem var(--basalt) solid;
}

#footer > p {
    text-align: right;
    font-size: 0.8rem;
    padding-bottom: 0.2rem;
    padding-top: 0.2rem;
}

#logo_head {
    left: 1rem;
    top: 1rem;
    position: fixed;
}

@media (max-width: 800px) {
    #logo_head {
      display: none;
    }
}

#logo {
    float: left;
    padding-bottom: 1rem;
}

@media (max-width: 800px) {
    #logo {
      display: none;
    }
}

#copyright {
    display: block;
    margin: auto;
    text-align: center !important;
    clear: both;
    padding-bottom: 0.5rem !important;
}

#byline {
    font-size: 0.8rem;
    color: var(--basalt);
    padding-top: 0.2rem;
    padding-bottom: 0.5rem;
}

#backBtn {
    color: var(--ultramarine);
    font-size: 1.2rem;
    padding: 1rem;
}

#backBtn:hover {
    color: var(--basalt);
}

ul {
    margin-top: 0.2rem;
    margin-left: 2rem;
}

#question {
    width: 100%;
}

#question > input {
    margin-left: 2rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    display: none;
}

#question > input:checked {
    background-color: var(--royalblue);
}

label {
    display: block;
    padding-left: 4rem;
    text-indent: -4.2rem;
    position: relative;
}

label:hover {
    cursor: pointer;
    font-weight: bold;
}

#question > input:hover {
    cursor: pointer;
}

#buttons {
    margin-top: 2rem;
    display: flex;
    margin-bottom: 2rem;
}

#quizBtn:disabled {
    cursor: not-allowed;
    background: var(--basalt);
    color: white !important;
    transform: scaleX(1) scaleY(1) !important;
}

label::before {
    content: "";
    width: 0.8rem;
    height: 0.8rem;
    border: 0.2rem solid var(--royalblue);
    border-radius: 0.75rem;
    background-color: var(--white);
    margin-bottom: 0.2rem;
    vertical-align: middle;
    display: inline-block;
    margin-left: 2rem;
    margin-right: 0.8rem;
}

input[type="checkbox"] + label::before {
    content: "";
    width: 0.8rem;
    height: 0.8rem;
    border: 0.2rem solid var(--royalblue);
    border-radius: 0;
    background-color: var(--white);
    margin-bottom: 0.2rem;
    vertical-align: middle;
    display: inline-block;
    margin-left: 2rem;
    margin-right: 0.8rem;
}

label:hover::before, input[type="checkbox"] + label:hover::before {
    background-color: var(--ultramarine);
    border: 0.2rem solid var(--ultramarine);
}

input:checked + label::before, input[type="checkbox"] + input:checked + label::before {
    background-color: var(--royalblue) !important;
    border: 0.2rem solid var(--royalblue) !important;
}

input:checked + label {
    font-weight: bold;
}

#icon {
    display: block;
    margin: auto;
}
