@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,200;6..12,300;6..12,400;6..12,500;6..12,600;6..12,700;6..12,800&family=Pixelify+Sans:wght@400;500;600;700&family=Spectral+SC:wght@200;300;400;500;600;700;800&display=swap');

/* Reset */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

/* Background */
body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: #292929;
    min-height: 100vh;
}

/* Banner */
header {
    display: none;
    background-image: url('img/banner.png');
    background-size: cover;
    text-align: center;
    padding: 50px 0;
}

/* Navigation bar */
nav {
    display: flex;
    justify-content: space-around;
    text-align: center;
    font-family: 'Spectral SC', serif;
    background: #003e21;
}

nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-weight: bold;
    text-shadow: 1px 1px black;
    padding: 15px 20px;
    color: #DCBB57;
    text-decoration: none;
    transition: 0.3s;
    border: 4px outset #dcbb57;
    border-radius: 10px;
    margin: 5px;
}

nav a:hover {
    background-color: rgba(1, 128, 96, 0.5);
}

/* Main content */
.main-content {
    display: flex;
    min-height: 100vh;
}

.mb-y {
    margin-bottom: 100px;
    margin-top: 50px;
}

input:focus {
    border: 2px solid #003E21;
    outline: 2px solid #DCBB57;
}

/* Left and right sidebars */
.left-sidebar, .right-sidebar {
    background: #018060;
    background: linear-gradient(90deg,#018060 0%, #003e21 100%);
    background: -webkit-linear-gradient(90deg,#018060 0%, #003e21 100%);
    background: -moz-linear-gradient(90deg,#018060 0%, #003e21 100%);
    padding: 20px;
    flex: 0 0 10%;
}

/* Left sidebar */
.left-sidebar button {
    font-family: 'Spectral SC', serif;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px black;
    color: #E7EAEE;
    cursor: pointer;
    background-color: #003E21;
    border: 4px outset #dcbb57;
    transition: 0.1s;
}

.left-sidebar button:hover {
    color: #DCBB57;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    font-weight: bolder;
}

.login-area {
    margin-bottom: 60px;
}

.login-area form {
    display: flex;
    flex-direction: column;
}

.login-area label {
    margin-bottom: 5px;
    color: #DBDFE6;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 1px 1px black;
}

.login-area input {
    padding: 5px;
    margin-bottom: 10px;
    font-family: inherit;
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
}

.sidebarlist {
    margin-bottom: 30px;
}

.toggle-button {
    width: 100%;
    margin: 0px;
}

.list {
    display: none;
    background-color: #003E21;
    list-style: none;
    color: #E7EAEE;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 1px 1px black;
    border: 4px outset #dcbb57;
    border-top: none;
    margin: 0;
    padding: 0;
}

.list li {
    padding: 5px;
}

.list li a {
    text-decoration: none;
    color: #DBDFE6;
}

.list li a:hover {
    color: #DCBB57;
}

.social-media {
    display: flex;
    justify-content: space-evenly;
}

.social-media a {
    color: #003E21
}

.social-media a:hover {
    color: #DCBB57;
}

/* Middle section */
.middle-section {
    flex-grow: 1; /* Allow the middle section to grow and take remaining space */
    background: #333333;
    background: linear-gradient(90deg,#333333 0%, #000000 150%);
    background: -webkit-linear-gradient(90deg,#333333 0%, #000000 150%);
    background: -moz-linear-gradient(90deg,#333333 0%, #000000 150%);
    padding: 20px;
    text-align: center;
    -webkit-box-shadow: 0 0 10px #000 inset;
    box-shadow: 0 0 10px #000 inset;
    margin: 0 auto;
}

.middle-section h1 {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 64px;
    font-weight: bold;
    text-shadow: 2px 2px black;
    color: #dc143c;
    margin-bottom: 20px;
}

.middle-section h1 a {
    text-decoration: none;
}

.middle-section img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.middle-section p {
    font-size: 18px;
    line-height: 1.6;
    color: #DBDFE6;
    padding: 0 50px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Set a maximum width */
    margin: 0 auto;
}

.video-container video,
.video-container embed {
  max-width: 100%;
  height: auto;
  max-height: 450px;
}

.video-container video::-webkit-media-controls-panel {
    background-image: none !important;
}

/* Right sidebar */
.sidebar-item {
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-item img {
    max-width: 100%;
    min-width: 150px;
    height: auto;
    margin-bottom: 10px;
    border: 4px outset #dcbb57;
    filter: brightness(70%);
    -webkit-filter: brightness(70%);
    -moz-filter: brightness(70%);
    transition: 0.2s;
}

.sidebar-item img:hover {
    filter: none;
    cursor: pointer;
}

.sidebar-item p {
    color: #DBDFE6;
    text-shadow: 1px 1px black;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
}

/* Footer */
footer {
    background-color: #013220;
    color: #FFBF46;
    text-align: center;
    padding: 6px 0;
}

/* Character creation */
.createchar h1 {
    font-size: 100px;
    color: #dc143c;
    text-shadow: 4px 4px darkred;
    margin: 30px 0;
}

.createchar form {
    display: flex;
    flex-direction: column;
    max-width: 400px; /* Adjust max-width as needed */
    margin: 0 auto;
    color: #DBDFE6;
    font-size: 18px;
    font-weight: bold;
}

.createchar label {
    margin-bottom: 8px;
}

.createchar input {
    padding: 10px;
    margin-bottom: 16px;
}

.createchar button {
    font-family: 'Spectral SC', serif;
    margin-top: 50px;
    padding: 12px;
    background-color: #003E21;
    color: #DCBB57;
    border: 4px outset #dcbb57;
    cursor: pointer;
    font-size: 18px;
    transition: 0.1s;
}

.createchar button:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

/* Updates and news */
.search-bar {
    margin-bottom: 40px;
}

.search-bar input {
    padding: 10px;
    width: 70%;
    margin-right: 10px;
    font-family: inherit;
}

.search-bar button {
    font-family: 'Nunito Sans', sans-serif;
    padding: 8px;
    background-color: #003E21;
    color: #FFBF46;
    border: 2px outset #dcbb57;
    cursor: pointer;
    transition: 0.1s;
}
.search-bar button:hover {
    color: #DCBB57;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    font-weight: bolder;
}
.columns {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.column {
    flex: 1;
}

.news-container {
    margin-bottom: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.news-container h1 {
    font-family: 'Spectral SC', serif;
    font-size: 22px;
    color: #DCBB57;
    text-shadow: 2px 2px black;
}

.news-container p {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.news-container a {
    color: #DCBB57;
}

.news-container img {
    max-width: 100%;
    height: auto;
    filter: brightness(35%);
    -webkit-filter: brightness(35%);
    -moz-filter: brightness(35%);
    transition: 0.2s;
}

.news-container img:hover {
    filter: none;
    cursor: pointer;
}

.news-container img:hover + .text-overlay{
    display: none;
}

.image-container {
    position: relative;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #DBDFE6;
    font-size: 2em;
}

/* Phone stuff */
@media screen and (max-width: 1100px) {
    .columns {
        display: block;
    }

    .search-bar button {
        margin-top: 20px;
    }
}

@media screen and (max-width: 790px) {
    .main-content {
        display: block;
    }

    .right-sidebar {
        display: none;
    }

    .char-middle-section {
        height: 100vh;
    }
    .left-sidebar button:hover {
        color: #DCBB57;
        -webkit-transform: scale(1.03);
        transform: scale(1.03);
        font-weight: bolder;
    }
    
}

@media screen and (max-width: 600px) {
    .createchar h1 {
        font-size: 48px;
    }

    .middle-section p {
        padding: 0 10px;
    }

}

@media screen and (max-width: 320px) {
    .middle-section h1 {
        font-size: 28px;
    }

    nav {
        display: block;
    }

    nav a {
        margin: 0;
    }

    .middle-section {
        padding: 10px;
    }
}

