/** Self hosting Open Sauce font **/
@font-face {
  font-family: "Open Sauce One";
  src: url("../fonts/OpenSauceOneVF.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html {
    font-size: 16px;
}

body {
    /* min-height: 100vh; */
    font-family: "Open Sauce One", sans-serif;
    /* border: 2px solid red; */
    font-size: 1rem;
    background-color: #1e1e1e;
    margin: 0;
}
#reload-heading {
    cursor: pointer;
}
.render{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    flex-direction: column;
    /* border: 2px solid rgb(251, 255, 27); */
}

h1 {
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    color: #eaff82;
    font-size: 4rem;
}
.headerTextTrivia {
    color: #ef601e;
}

p {
    font-size: 1rem;
}

.categories {
    display: flex;
    flex-direction: row;
    gap: 15px;
    /* border: 2px solid blue; */
    padding: 10px;
}

.loadingQuestionsMessage {
    color: #eaff82!important;
    font-style: italic!important;
    margin: 0.5rem 0;
}

.categories > div {
    /* border: 2px solid rgb(112, 209, 0); */
    padding: 10px;
    background-color:#eaff82;
    text-shadow: black 1px 1px 2px;
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 56px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: transform 120ms ease, background-color 120ms ease;
}

@media (hover: hover) {
    .categories > div:hover {
        background-color: #717b42;
        cursor: pointer;
        transform: translateY(-3px);
    }
}

.categories > div.clicked {
    background-color: #717b42;
    cursor: pointer;
}

/* Category button answered states */
.categories > div.answered-correct {
    background-color: #8eec5f !important;
    color: white;
}

.categories > div.answered-incorrect {
    background-color: #ff5757 !important;
    color: white;
}
.selectCategoryMessage {
    color: white !important;
    font-size: .8rem;
    font-weight: 100;
    font-style: italic;
    font-family: "Open Sauce One", sans-serif;
}
/* Simple borders for questions layout */
.questions {
    /* border: 1px solid #1ba300; */
    padding: 8px;
    /* margin: 12px auto 0; */
    width: min(95%, 50rem);
}
.question {
    display: none;
    /* border: 1px solid #810000; */
    padding: 8px;
    margin: 8px 0;
    
}

.question p {
    color: #0d0630;
    /* border: 1px solid #091806; */
    background-color: white;
    border-radius: 2rem;
    padding: 2em;
    line-height: 1.5;
    font-family: "Open Sauce One", sans-serif;   
}

@media (max-width: 600px) {
    .question p {
        font-size: 1.05rem;
        line-height: 1.65;
        padding: 1.25em;
    }
}

/* Option buttons inside questions: make options equal-sized */
.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    /* border: 1px solid blue; */
    

}
.option {
    flex: 1 1 140px; /* grow/shrink, base width 140px */
    min-width: 120px;
    height: 48px; /* fixed height so all buttons match */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0; /* spacing handled by .options gap */
    padding: 0 12px; /* horizontal padding only; height controls vertical space */
    background: #ff7f4c;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: background-color 120ms ease, transform 80ms ease;
    font-family: "Open Sauce One", sans-serif;
    color: #0d0630 !important;
}
@media (hover: hover) {
    .option:hover:not([disabled]) {
        background: #ff5b1a;
        transform: translateY(-2px);
    }
}
.option[disabled] {
    opacity: 1 !important;
    cursor: default;
}
.option.correct {
    background: #8eec5f;
}
.option.incorrect {
    background: #ff5757;
}

/* Final score UI */
.final-score {
    background: #eaff82;
    padding: 0.2rem;
    margin: 1rem;;
    border-radius: 2rem;
    text-align: center;
    width: min(95%, 30rem);
    margin-inline: auto;
    font-family: "Open Sauce One", sans-serif;
}
.quizCompleteText {
    color: #1d3322;
    font-size: 0.8rem;
    font-weight: 500;

}
.score-text {
    font-size: 2.4rem;
    font-weight: bold;
    color: #1d3322;
    margin: unset;
}
.score-details {
    color: #1d3322;
    font-style: italic;
}
.score-time {
    color: #1d3322;
    /* font-style: italic; */
}
.share-btn button{
    background-color: #ef601e;
    border: none;
    border-radius: 0.2rem;
    padding: 0;
    font-size: 1.5rem;
    text-shadow: 0 0 black;
}
@media (hover: hover) {
    .share-btn button:hover {
        background-color: #d14f1a;
        cursor: pointer;
    }
}
.reset-btn {
    padding: 10px 18px;
    background: #2b7bcf;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
@media (hover: hover) { .reset-btn:hover { background: #2467a8; } }

.bottomRow > *{
    color: white!important;
}
.archiveText {
    font-weight: normal;
}
.bottomRow{
  display: flex;
  align-items: center; /* normal alignment */
  justify-content: center;
  font-style: normal;
}
.bottomRow a{
    text-decoration: none;
    color: white!important;
    margin: 0 0.5rem;
}
.bottomRow img {
  align-self: flex-end; /* pushes image down */
}
@media (hover: hover) {
    .bottomRow span:hover {
        font-weight: bold;
    }
}
.logo{
  width: 40px;  
  height: 40px;
  filter: drop-shadow(0 0 0.75rem rgb(0, 0, 0));
}
@media (hover: hover) {
  .logo:hover {
    filter: drop-shadow(0 0 1rem rgb(255, 162, 0));
    cursor: pointer;
  }
}

body > * {
    text-align: center;
}
