/* =============================== */
/*       GOOGLE FONT               */
/* =============================== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* =============================== */
/*       GENERAL PAGE STYLE        */
/* =============================== */
html, body {
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
    background-color: #0b0c10;
    color: #e5e5e5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    width: 85%;
    margin: auto;
    padding: 20px;
    background-color: #15171e;
    border-radius: 12px;
    box-shadow: 0 0 20px #000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =============================== */
/*       NAVIGATION BAR            */
/* =============================== */
header nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background-color: #1f2833;
    border-bottom: 3px solid #c3073f;
}

header nav a {
    color: #c5c6c7;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 10px;
    transition: 0.3s;
}

header nav a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #c3073f;
}

/* =============================== */
/*          HEADINGS               */
/* =============================== */
h1, h2, h3, h4 {
    color: #ffae00;
    text-shadow: 0 0 8px #ffae00;
}

blockquote {
    border-left: 4px solid #c3073f;
    padding-left: 12px;
    color: #ffffff;
    font-style: italic;
}

/* =============================== */
/*        LINKS GENERAL            */
/* =============================== */
a {
    color: #c3073f;
    transition: 0.3s;
}

a:hover {
    color: #ff4668;
}

/* =============================== */
/*        IMAGES / VIDEOS          */
/* =============================== */
img, iframe, video {
    border-radius: 10px;
    max-width: 100%;
}

/* =============================== */
/*       LISTS (OL + UL)           */
/* =============================== */
ul, ol {
    background-color: #11131a;
    padding: 15px 25px;
    border-radius: 10px;
}

ul li, ol li {
    padding: 5px 0;
}

summary {
    cursor: pointer;
}

/* =============================== */
/*            TABLES               */
/* =============================== */

table {
    border-collapse: collapse;
    width: 80%;
    margin: 20px auto;
    background-color: #1f2833;
    color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    table-layout: fixed;
}

caption {
    caption-side: top;
    font-size: 1.3em;
    padding: 10px;
    font-weight: bold;
    color: #ffae00;
}

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

tbody tr:nth-child(even) {
    background-color: #15171e;
}

tbody tr:nth-child(odd) {
    background-color: #0f1117;
}

tbody tr:hover {
    background-color: #c3073f;
    cursor: pointer;
}

/* =============================== */
/*            FOOTER               */
/* =============================== */

footer {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    background-color: #1f2833;
    border-top: 3px solid #c3073f;
}

/* ========================================================= */
/*                        FORMS                              */
/* ========================================================= */

form {
    background-color: #1a1c22;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

fieldset {
    border: 2px solid #c3073f;
    padding: 15px;
    border-radius: 10px;
}

legend {
    padding: 5px 10px;
    font-weight: bold;
    color: #ffae00;
}

/* Inputs, selects, textarea */
input, select, textarea {
    width: 100%;
    padding: 10px;
    background-color: #0f1117;
    color: #ffffff;
    border: 2px solid #c3073f;
    border-radius: 8px;
    outline: none;
    resize: none;
    background-image: linear-gradient(to right, #1f2833, #0f1117);
    background-position: left;
    transition: 0.3s;
}

input:hover, select:hover, textarea:hover {
    border-color: #ff4668;
    cursor: pointer;
}

input:focus, select:focus, textarea:focus {
    border-color: #ffae00;
    box-shadow: 0 0 10px #ffae00;
}

/* Placeholder style */
input::placeholder {
    color: #999;
    opacity: 0.7;
}

/* Radio and checkbox */
input[type="radio"],
input[type="checkbox"] {
    width: auto;
    accent-color: #c3073f;
    cursor: pointer;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    outline: 2px solid #ffae00;
}

/* Submit button */
input[type="submit"],
input[type="button"],
button {
    background-color: #c3073f;
    border: none;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

input[type="submit"]:hover,
button:hover {
    background-color: #ff4668;
    transform: scale(1.05);
}