/* style sheet for entire website (all 3 pages) */

/*
current main colours:
    - background:               #0d0d15
    - lighter background:       #171723
    - text:                     #e6e6f1
    - accent:                   #9414ff
    - other purple:             #520b8d
*/


/************************ elements ************************/

* {
    /* apparently you should basically add this to every project */
    box-sizing: border-box;
}

img {
    /* apparently you should also add this to every project if you plan to have images in main */
    max-inline-size: 100%;
    display: block;
}

body{
    /* set some basic defaults */
    font-family: sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-inline: 100px;
    background-color: #0d0d15;
    color: #e6e6f1;
}

header {
    /* this is to make the icon and navigation look good */
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    margin-block-end: 50px;
}

section {
    /* general page spacing */
    margin-block: 70px;
}

h1 {
    font-size: 3rem;
}

h2 {
    margin: 0px;        /* to counteract default value */
}

form {
    display: grid;
    gap: 20px;
    margin-block-start: 30px;
}

input {
    background-color: #520b8d;
    color: #e6e6f1;
    border-radius: 16px;
    padding: 10px 30px;
    accent-color: #9414ff;
}

input, button {
    font: inherit;
}

audio::-webkit-media-controls-panel {
    /* make audio players a little darker */
    background-color: #9a9aa2;
}

a {
    /* make links purple */
    color: #9414ff;
}

a:hover, a:focus-visible {
    /* change colour when you hover over a link */
    color: #520b8d;
}

footer {
    display: flex;
    justify-content: space-between;
    margin-block-start: 150px;
}


/************************ classes ************************/

.wrapper {
    /* caps the page's size horizontally (for bigger monitors) */
    max-inline-size: 1200px;
    margin-inline: auto;
}

.center {
    text-align: center;
}

.primary-nav ul {
    /* primary nav is the navigation bar at the top */
    /* some of this is to counteract defaults */
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
}

.primary-nav a {
    /* make the links in the primary navigation not look like in-text links */
    color: #e6e6f1;
    font-weight: bold;
    text-decoration: none;
}

.two-column {
    /* class that creates two-column layout */
    display: grid;
    column-gap: 50px;

    @media (width > 900px) {
        grid-template-columns: 1fr 1fr;
    }
}

.colored-bg {
    /* coloured background, used for input form and footer */
    background-color: #171723;
    padding: 30px;
    border-radius: 15px;
}

.colored-text {
    /* used for spans to change text colour */
    color: #9414ff;
}

.colored-input {
    /* used for specifically the text input that I want to be coloured like the background */
    background-color: #0d0d15;
}

.form-group {
    display: grid;
}

.no-list-style {
    list-style: none;
}

.question {
    /* for faq section */
    font-size: 1.8rem;
    margin-block-start: 50px;
    font-weight: bold;
}


/************************ descendants ************************/

.primary-nav a:hover, .primary-nav a:focus-visible {
    /* what happens when you hover over the navigation buttons */
    color: #9414ff;
}

form input {
    margin-block: 15px;
}

footer p {
    /* make footer text small */
    font-size: 0.8rem;
}

ol p {
    /* make faq answer text smaller */
    font-size: 1.1rem;
}

ol li {
    margin-block: 80px;
}
