/* Google Fonts import */
@import url("https://fonts.googleapis.com/css2?family=Audiowide&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");

/* CSS variables */

:root {
    --heading-font: "Audiowide", serif;
    --body-font: "Noto Sans", sans-serif;
    --primary-color: #af538c;
    --secondary-color: #3a5172;
    --text-color: #fff;
    --shadow-color: #333;
    --green: #00a887;
    --blue: #0080f9;
    --red: #d45179;
    --bold: 700;
}

/* General styles */

body {
    background: center/cover no-repeat url(../images/ball-of-energy.jpg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    margin: 0;
}

a {
    color: var(--text-color);
}

h1,
h2 {
    font-family: var(--heading-font);
}

.hidden {
    display: none;
}

/* Header styles */

header {
    width: 100%;
    margin-bottom: 2rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    box-shadow: 0 2px 2px var(--shadow-color);
}

/* Main styles */

main {
    width: 90%;
    margin: auto 0 5rem;
}

.main-card {
    border: 0.5rem solid var(--primary-color);
    border-radius: 1rem;
    box-shadow: 2px 2px 2px var(--shadow-color);
    padding: 0.25rem 1rem;
    font-family: var(--body-font);
    background-color: var(--secondary-color);
    color: var(--text-color);
}

#instructions-txt li + li {
    margin-top: 0.5rem;
}

#question-txt,
#feedback-txt,
#win-txt,
#lose-txt {
    font-weight: var(--bold);
}

#feedback-txt {
    font-style: italic;
}

#nav-btns,
#help-btns {
    display: flex;
}

.btn {
    padding: 0.75rem;
    margin: 1rem auto;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-weight: var(--bold);
    font-size: 1rem;
    box-shadow: 2px 2px 2px var(--shadow-color);
    border-radius: 1rem;
    border: 0.25rem solid var(--green);
}

.btn:active {
    box-shadow: 0 0 10px var(--green);
}

.answer-btn {
    display: block;
    width: 100%;
    text-shadow: 2px 2px 2px var(--shadow-color);
    font-size: 1.25rem;
}

.disabled {
    pointer-events: none;
    cursor: not-allowed;
}

.transparent {
    opacity: 0.33;
}

.green {
    background-color: var(--green);
}

.red {
    background-color: var(--red);
}

.blue-border {
    border-color: var(--blue);
}

/* Footer styles */

footer {
    margin-top: auto;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    font-family: var(--body-font);
    box-shadow: 0 -2px 2px 0 var(--shadow-color);
}

#footer-nav {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

#footer-nav a {
    padding: 0.5rem;
}

/* Media queries for responsiveness */

@media (hover: hover) {
    .btn:hover {
        box-shadow: 0 0 10px 0 var(--green);
    }
}

@media screen and (min-width: 576px) {
    main {
        width: 66%;
    }

    .main-card {
        padding: 2rem 1rem;
    }
}

@media screen and (min-width: 768px) {
    main {
        width: 50%;
    }
}

@media screen and (min-width: 1400px) {
    main {
        width: 33%;
    }
}
