/*import font*/
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;700&display=swap');

/*styles for the whole page*/
body{
    font-family: 'Public Sans', sans-serif; /*sans-serif if the imported font doesn't work*/
    background-color: #121212;
    color: #e0e0e0;
    margin: 0; /*removes default margin*/
    padding: 20px; /*manual margin*/
}

/*styles for main content area*/
main{
    max-width: 800px; /*prevents the content from being too wide on large screens*/
    margin: 0 auto; /*centres the element horizontally - 0 sets the top/bottom margin, auto calculates left/right in order to centre*/
}

.title-icon { /*title icon*/
    width: 36px;
    height: 36px;
}
header{ /*styles for header*/
    display: flex; /*uses Flexbox for alignment, meaning all children will line up side by side*/
    justify-content: center;
    align-items: center;
    gap: 16px; /*creates gap between text and image*/
    margin-bottom: 30px;
}
h1{ /*styles all h1 text*/
    color: #e0e0e0;
}

/*styling for cards*/
.card{
    background-color: #1e1e1e; /*slightly lighter than background, to look layered*/
    border-radius: 12px; /*rounded corners*/
    padding: 16px; /*ensures text doesn't touch borders*/
    margin-bottom: 40px; /*space between each card*/
    border: 1px solid rgba(255, 255, 255, 0.1); /*border line */
    transition: border-color 0.3 ease; /*transition for hover effect*/
}
/*hover effect for cards*/
.card:hover{
    border-color: rgba(255, 255, 255, 0.2); /*border slightly more visible on hover*/
}
.card > h3 { /*this rule only targets h2s that are direct children of a .card*/
    margin-top: 0;
}

/*RULES*/
/*specific styling for the rules card to remove excess padding when dropdown is closed*/
.card-rules {
    padding: 0;
}
.card-rules summary {
    cursor: pointer; /*shows that it's clickable*/
    outline: none; /*remove the focus ring in some browsers*/
    padding: 16px; /*reintroduce padding to the clickable part*/
}
.card-rules details[open] > summary { /*removes padding between Rules title and actual rules when dropdown is open*/
    padding-bottom: 0;
}
.card-rules summary h3 {
    margin: 0; /*removes the default margin for h3 inside cards, so it follows same padding rules as .card{}*/
    display: inline; /*aligns the title with the arrow*/
}
.card-rules .rules-content {
    padding: 0 16px 16px 16px; /*add padding to content, only a small amount at the top*/
    margin: 0;
}



/*BELOW NOT CURRENTLY APPLICABLE ON STATIC PAGE*/

/*styling for form*/
.form-group{
    margin-bottom: 16px; /*adds space between each inputer field*/
    display: flex; /*stacks the label and input vertically*/
    flex-direction: column; /*stacks label on top of input*/
}
.form-group label {
    margin-bottom: 6px; /*space between label and input box*/
    font-weight: bold;
    color: #c0c0c0;
}

input[type="date"], /*changes all date and number inputs to this styling*/
input[type="number"] {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px;
    font-family: 'Public Sans', sans-serif;
    font-size: 1rem;
}

button[type="submit"] {
    background-color: #bb86fc;
    color: #121212;
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer; /*changes the cursor to a pointer on hover*/
    transition: background-color 0.3s ease;
    width: 100%; /*makes the buttom the full width*/
}
button[type="submit"]:hover {
    background-color: #a362f7; 
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #6c757d;
}
.version {
    font-size: 0.8rem;
    margin-top: 8px;
}

select {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px;
    font-family: 'Public Sans', sans-serif;
    font-size: 1rem; /*1xrem = 1xdefault font size*/
}