/* Global variables */
:root {
    --hover-button-color: #f6aa1c;
    --button-color: #621708;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    height: 100%;
}

body {
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
}

.page-container {
    flex: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    background-color: #222;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.logo {
    font-size: 1.5rem;
}

.nav a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-radius 0.3s ease, padding 0.3s ease;
}

.nav a:hover {
    background-color: var(--hover-button-color);
    color: black;
    border-radius: 5px;
    padding: 0.5rem 0.5rem;
}

/* Index Page */

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #222;
    color: white;
}

.hero h2 {
    padding: 0.7rem;
    font-size: 4rem;
}

.hero p {
    font-size: 1.75rem;
}

.hero button {
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    background-color: #621708;
    color: white;
    cursor: default;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero button:hover {
    background-color: var(--hover-button-color);
    color: black;
}

/* Games */
.games {
    padding: 2rem;
}

.search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
}

.search > h2 {
    font-size: xx-large;
}

.search-elements {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0.5rem;
    justify-content: flex-end;
}

.search-elements input {
    flex: 1;
    min-width: 250px;
    max-width: 50%;
}

.search-elements > * {
    padding: 0.5rem;
}

.search-elements > button {
    border: none;
    border-radius: 5px;
    background-color: var(--hover-button-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.search-elements > button:hover {
    background-color: var(--button-color);
    color: white;
    cursor: pointer;
}

.filter-button.active {
    background-color: var(--button-color);
    color: white;
    padding: 0.75rem 1rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-items: center;
    padding: 2rem;
}

.oops-error {
    padding: 0.5rem 1rem;
    align-items: center;
}

.oops-error h2 {
    font-size: 2rem;
    padding: 0 1rem;
}

.oops-error p {
    font-size: 1.75rem;
    padding-top: 1rem;
}

.oops-error img {
    max-width: 200px;
}
 
.game-card {
    width: 100%;
    max-width: 300px;
    background-color: #222;
    color: white;
    text-align: center;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 15px rgba(0,0,0,1);
}

.game-card img {
    width: 100%;
    height: 250px;
    display: block;
    padding-bottom: 1rem;
    border-radius: 12px;
    filter: grayscale(50%);
}

.game-card button {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--button-color);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.game-card button:hover {
    background-color: var(--hover-button-color);
    color: black;
}

.info-container {
    padding-bottom: 1.5rem;
}

.info-container > h3, p {
    padding-bottom: 1rem;
}

.info-container > p {
    font-size: x-large;
}


/* About Us Page */
.section-container {
    height: 92%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
    padding: 5rem 15rem;
}

.mission {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.mission-text-container {
    text-align: center;
    padding: 0 1rem;
}

.mission-text-container h1 {
    padding: 1rem;
}

.mission-img {
    width: 100%;
    max-width: 350px; /* adjust this */
    height: auto;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/*  Contact Us Page */
.contact-section {
    max-width: 600px;
    margin: 6em auto;
    padding: 3rem;
    background-color: #ffffff; 
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-section h2 {
    margin-bottom: 0.5rem;
}

.success-message {
    display: none;
}

.success-message h3 {
    margin-bottom: 0.5rem;
    padding: 2rem 2rem;
    background-color: lightgreen;
    border-radius: 5px;
    text-align: center;
}

.failure-message {
    display: none;
}

.failure-message h3 {
    margin-bottom: 0.5rem;
    padding: 2rem 2rem;
    background-color: #FFCCCB;
    border-radius: 5px;
    text-align: center;
}

.contact-section p {
    margin-bottom: 2rem;
    color: #555;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

button {
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    background-color: #4f46e5;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #4338ca;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem;
    background-color: #222;
    color: white;
}