@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    --dark-colour: #409;
    --light-colour: #dcf;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background: #eee;
    min-width: 340px;
}

header {
    margin: 0;
    padding: 30px;
    background: var(--dark-colour);
    background-image: url('../images/back3.jpg');
    background-repeat: no-repeat;
    background-position: center;
    color: white;
}

header h1 {
    color: white;
    text-align: center;
    font-size: calc(1rem + 2vw);
}

h2 {
    font-size: 1.5rem;
    margin: 10px 0 -10px 0;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 1em 0;
}

li {
    list-style: none;
    color: var(--dark-colour);
}

table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}
  
td, th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}
  
tr:nth-child(odd) {
background-color: #eef;
}

.faded {
    color: #aaa;
}

nav {
    background: var(--light-colour);
    width: 100%;
    font-size: 1.1rem;
    /* Change nav font size HERE */
    font-weight: bold;
    top: 0;
    position: sticky;
}

nav ul {
    margin-right: 10px;
    text-align: center;
    padding: 10px 0;
}

nav ul li {
    display: inline-block;
    margin: 0 5px;
}

nav li {
    padding-right: 20px;
    border-right: 1px solid #777;
    line-height: 30px;
}

nav li:last-child {
    border-right: none; /* Remove right border from the last item */
}

nav ul li a {
    color: var(--dark-colour);
    font-size: 1em;
    /* DO NOT CHANGE NAV FONT SIZE HERE! */
    padding: 7px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

nav a {
    text-decoration: none;
}

nav a:hover {
    color: black;
    transition: .1s;
}

nav span {
    display: none;
    color: white;
}

.checkbtn {
    font-size: 30px;
    color: white;
    float: right;
    line-height: 60px;
    margin-right: 20px;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}

.main-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    font-size: 1.4rem;
    gap: 1.5rem;
    line-height: 1.8rem;
}

.main-wrapper li {
    padding: 10px;
}

.main-left {
    background: #fff;
    padding: 20px;
    flex-grow: 1;
}

.main-left span {
    font-size: 1rem;
    line-height: 2rem;
}

.main-left img {
    max-width: 98%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
  }

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

pre {
    font-size: 1rem;
    line-height: 1.2rem;
}

hr {
    border: 0;
    margin: 20px 0 20px 0;
    height: 1px;
    background-image: linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}

.articles {
    font-size: 1.2rem;
}

.sidebar {
    background: #fff;
    flex-shrink: 0;
    flex-basis: 20ch;
    padding: 0 20px;
    text-align: center;
}

.sidebar img {
    padding-top: 10px;
}

.sidebar p {
    margin-bottom: 0;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.bottom-solar {
    background: white;
    padding-top: 10px;
    display: none;
}

.bottom-solar img {
    max-width: 95vw;
}

footer {
    background: var(--dark-colour);
    color: white;
    font-size: 1.5rem;
    text-align: center;
    padding: 10px;
}

@media screen and (max-width: 800px) {

    pre {
        font-size: 2.8vw;
        line-height: 3vw;
    }

    .checkbtn {
        display: block;
        padding-top: 5px;
    }

    nav ul {
        padding: 0;
        position: fixed;
        width: 100%;
        background: var(--dark-colour);
        top: 70px;
        left: -100%;
        text-align: center;
        transition: all .5s;
    }

    nav ul li {
        display: block;
        margin: 0;
        padding: 0;
        line-height: 50px;
        border-bottom: 1px solid #777;
    }

    nav ul li a {
        font-size: 1.2em;
        color: #fef;
    }

    nav li:last-child {
        border: none;
    }

    nav span {
        display: inline-block;
        max-width: 5ch;
        padding: 5px 10px;
        font-size: 3rem;
    }

    #check:checked~ul {
        left: 0;
    }

    header {
        display: none;
    }

    nav {
        height: 70px;
        background: var(--dark-colour);
        background-image: url('../images/back3.jpg');
        background-repeat: no-repeat;
        background-position: center;
    }

    nav a:hover {
        color: white;
    }

    .main-wrapper {
        flex-direction: column;
    }

    .bottom-solar {
        display: block;
    }

    .sidebar {
        display: none;
    }
}