@font-face {
    font-family: 'Generic Pixel Font #1990';
    src: url('/assets/fonts/GenericPixelFont1990.woff2') format('woff2'),
         url('/assets/fonts/GenericPixelFont1990.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: monospace;
    font-size: 16px;
    background: url(/assets/DatakrashBanner2.png) center center/cover no-repeat fixed;
    background-color: #000;
    color: #f4f2ff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    font-family: 'Generic Pixel Font #1990';
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: white;
    width: 80%;
    max-width: 900px;
}

header h1 {
    font-family: 'Generic Pixel Font #1990';
    text-shadow: 3px 3px 0 #000;
}

header p {
    text-shadow: 2px 2px 0 #000;
}

header img {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

header div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

nav {
    font-family: 'Generic Pixel Font #1990';
    text-align: center;
    padding: 20px;
    background: black;
    background: #ffffff url(/assets/navbarbg.gif) center center/auto repeat local;
    border-top: 1px solid #4b3852;
    border-right: 1px solid #4b3852;
    border-left: 1px solid #4b3852;
    border-bottom: none;
    width: 80%;
    max-width: 900px;
    position: sticky;
    top: 0;
    z-index: 2;
}

nav img {
    vertical-align: middle;
    margin-right: 5px;
}

nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #4b3852;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Generic Pixel Font #1990', sans-serif;
}

.content, .additional-content {
    display: flex;
    flex-direction: column;
    align-items: left;
    padding: 20px;
    word-wrap: break-word;
    background-color: #1c1616;
    border: 1px solid #4b3852;
    width: 80%;
    max-width: 900px;
    margin-bottom: 15px;
}

.content img {
    width: 100%;
    border: 1px solid #4b3852;
}

.content a {
    color: white;
    text-decoration: underline;
    transition: color 0.3s;
}

.content a:hover {
    color: #4b3852;
}

.additional-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.left-box, .right-box {
    flex: 1 1 48%;
    padding: 10px;
    background: #282424;
    border: 1px solid #4b3852;
    margin: 1%;
}

.additional-content a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.additional-content a:hover {
    color: #4b3852;
}

button, input[type="submit"] {
    font-family: 'Generic Pixel Font #1990', sans-serif;
    background-color: #1c1616;
    color: white;
    border: 1px solid #4b3852;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none; 
    display: inline-block;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    box-shadow: 2px 2px 0 #000;
}

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

button:active, input[type="submit"]:active {
    background-color: #282424;
    color: #ffffff;
    box-shadow: 1px 1px 0 #000; 
    transform: scale(1.02);
}

footer {
    font-family: 'Generic Pixel Font #1990';
    background: black;
    border-top: 1px solid #4b3852;
    border-right: 1px solid #4b3852;
    border-left: 1px solid #4b3852;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    max-width: 900px;
    bottom: 0;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #4b3852;
}

input[type="text"], select, textarea {
    font-family: 'Generic Pixel Font #1990', sans-serif;
    background-color: #1c1616;
    color: white;
    border: 1px solid #4b3852;
    padding: 10px;
    margin: 10px;
    width: calc(100% - 40px); 
    box-shadow: 2px 2px 0 #000;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus, select:focus, textarea:focus {
    background-color: #4b3852;
    color: #ffffff;
    box-shadow: 1px 1px 0 #000;
    outline: none;
}

hr {
    border: none; 
    border-top: 2px solid #4b3852; 
    height: 1px; 
    background: #1c1616; 
    margin: 20px 0; 
    box-shadow: 1px 1px 0 #000; 
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    cursor: pointer;
}

@media (max-width: 900px) {
    header, nav, .content, .additional-content, footer {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .left-box, .right-box {
        flex-basis: 100%;
    }

    body {
        padding: 0;
    }
}