/* -------------------- Global Styling -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f5f5;
    line-height: 1.6;
}

/* -------------------- Navbar -------------------- */
header {
    background: #222;
    padding: 20px 0;
    border:#fafafa 2px solid;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

nav a:hover {
    color: #ffcc00;
}

/* -------------------- Sections -------------------- */
section {
    padding: 50px 15%;
    background: white;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

h1, h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    text-shadow: #444 1px 1px 2px;
    text-transform: uppercase;
}

/* -------------------- Home Section -------------------- */
#home p {
    font-size: 18px;
    text-align: center;
}

/* -------------------- Trivia Section -------------------- */
.trivia-item {
    background: #fafafa;
    margin: 20px 0;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.trivia-item img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.trivia-item p {
    font-size: 17px;
    color: #444;
}

/* -------------------- Categories -------------------- */
#categories ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

#categories li a {
    background: #222;
    padding: 12px 20px;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

#categories li a:hover {
    background: #ffcc00;
    color: black;
}

/* -------------------- Scores Table -------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead {
    background: #333;
    color: white;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

tbody tr:nth-child(even) {
    background: #f2f2f2;
}

/* -------------------- Contact Form -------------------- */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input, textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #bbb;
    border-radius: 6px;
}

textarea {
    height: 120px;
}

button {
    width: 160px;
    padding: 12px;
    background: #222;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #ffcc00;
    color: black;
}

/* -------------------- Contact Info -------------------- */
.Contact-info {
    margin-top: 25px;
    text-align: center;
}

.Contact-info img {
    width: 25px;
    margin-right: 10px;
    vertical-align: middle;
}

.Contact-info p {
    font-size: 17px;
    margin-bottom: 8px;
}

/* -------------------- Responsive Design -------------------- */
@media(max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    section {
        padding: 30px 8%;
    }

    .trivia-item {
        flex-direction: column;
        text-align: center;
        
    }

    .trivia-item img {
        width: 100%;
        height: auto;
        
    }

    button {
        width: 100%;
    }
}


/* // New styles for back to home link */
#bkto { 
    display: inline-block;
    width: 500px;
    margin: 20px;
    margin-left: 500px;
    padding: 10px 15px;
    background-color: #37eeb1;
    color: rgb(73, 68, 68);
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    border-bottom: #336088 5px solid;
    
}
img {
    border-radius: 2px solid rgb(245, 45, 178);
    box-shadow: #333 0px 0px 5px;
}
