@charset "utf-8";

/* HTML background */
html {
    background-color: rgb(20, 20, 30);
}

/* Body styles */
body {
    font-family: Verdana, Geneva, sans-serif;
    background-color: rgb(40, 40, 55);
    color: white;
    width: 90%;
    margin: auto;
}

/* Header styles */
header {
    background-color: navy;
    color: white;
    text-align: center;
    padding: 25px;
}

header h1 {
    font-size: 2em;
}

header p {
    font-style: italic;
}

/* Navigation styles */
nav {
    background-color: rgb(25, 25, 40);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    width: 33.33%;
}

/* Navigation link styles */
nav a {
    display: block;
    color: white;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    transition: background-color 0.5s ease,
                color 0.5s ease;
}

/* Navigation hover styles */
nav a:hover {
    background-color: lightblue;
    color: black;
}

/* Main content styles */
main {
    padding: 25px;
    min-height: 350px;
}

/* Heading styles */
h2 {
    color: lightblue;
}

h3 {
    color: lightblue;
}

/* Paragraph styles */
p {
    line-height: 1.6;
}

/* List styles */
main ul {
    line-height: 2;
}

/* Gaming image gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Gallery image styles (CHECK) */
.gallery img {
    width: 30%;
    height: 200px;
    object-fit: cover;
    border: 2px solid lightblue;
    border-radius: 5px;
}

/* Services layout */
.services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Individual service sections */
.services section {
    flex: 1 1 40%;
    background-color: rgb(50, 50, 70);
    border: 1px solid lightblue;
    padding: 15px;
    box-sizing: border-box;
}

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

caption {
    padding: 10px;
    font-weight: bold;
    color: lightblue;
}

th, td {
    border: 1px solid lightblue;
    padding: 12px;
    text-align: left;
}

th {
    background-color: navy;
}

/* Form styles */
form {
    width: 90%;
    margin: 20px auto;
}

fieldset {
    border: 2px solid lightblue;
    padding: 20px;
}

legend {
    color: lightblue;
    font-weight: bold;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    font-family: Verdana, Geneva, sans-serif;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    background-color: lightyellow;
}

/* Submit and reset button styles */
input[type="submit"],
input[type="reset"] {
    background-color: navy;
    color: white;
    border: 1px solid lightblue;
    padding: 12px;
    margin-top: 15px;
    cursor: pointer;
}

/* Button hover styles */
input[type="submit"]:hover,
input[type="reset"]:hover {
    background-color: lightblue;
    color: black;
}

/* Footer styles */
footer {
    background-color: navy;
    color: white;
    text-align: center;
    padding: 15px;
    clear: both;
}

/* Mobile styles (COME BACK TO THIS) */
@media only screen and (max-width: 768px) {

    body {
        width: 100%;
    }

    /* Mobile navigation */
    nav ul {
        flex-direction: column;
    }

    nav li {
        width: 100%;
    }

    /* Mobile content */
    main {
        padding: 15px;
    }

    /* Mobile form */
    form {
        width: 100%;
    }

    /* Mobile table */
    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 8px;
    }

    /* Mobile gallery styles */
    .gallery img {
        width: 90%;
        height: auto;
    }

    /* Mobile services layout */
    .services {
        flex-direction: column;
    }

    .services section {
        width: 100%;
    }
}