* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    background-color: #e5e5e5;
    color: #000000;
    font-family: "Cousine", monospace;
    font-size: 14px;
    line-height: 1.7;
}



a {
    color: blue;
    text-decoration: underline;
}

a:visited {
    color: purple;
}



.wiki-page {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
}



.wiki-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000;
    padding-bottom: 15px;
}


.wiki-logo {
    font-size: 22px;
    font-weight: bold;
}


.wiki-search {
    display: flex;
    gap: 5px;
}


.wiki-search input {
    font-family: inherit;
    font-size: 12px;
    padding: 5px;
    border: 1px solid #000;
    background: #fff;
}


.wiki-search button {
    font-family: inherit;
    font-size: 12px;
    padding: 5px 8px;
    border: 1px solid #000;
    background: #d5d5d5;
    cursor: pointer;
}


.wiki-nav {
    padding: 10px 0;
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #999;
    font-size: 12px;
}


.wiki-content p {
    margin-top: 25px;
    text-align: justify;
}


.wiki-content h1 {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 10px;
}


.wiki-content h2 {
    font-size: 20px;
    font-weight: 400;
    border-bottom: 1px solid #999;
    margin-top: 35px;
    margin-bottom: 15px;
}


.wiki-content p {
    margin-bottom: 15px;
}


.wiki-intro {
    margin-top: 20px;
}



.infobox {
    width: 260px;
    float: right;
    margin: 0 0 20px 25px;
    border: 1px solid #555;
    padding: 12px;
    background: #ddd;
    text-align:justify;
}


.infobox h2 {
    border: none;
    margin: 0 0 10px 0;
    text-align: justify;
    font-size: 17px;
}


.infobox-image {
    height: 150px;
    border: 1px solid #555;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}


.infobox p {
    font-size: 12px;
    margin-bottom: 10px;
}



.wiki-content ul {
    margin-left: 25px;
}


.wiki-content li {
    margin-bottom: 5px;
}


.next-container {
    text-align: center;
    margin: 50px 0 30px;
}


.next-button {
    display: inline-block;
    color: #000;
    background: #d5d5d5;
    border: 1px solid #000;
    padding: 7px 15px;
    text-decoration: none;
    font-size: 12px;
}


.next-button:visited {
    color: #000;
}


.next-button:hover {
    background: #ccc;
}


.wiki-footer {
    border-top: 1px solid #999;
    padding-top: 15px;
    margin-top: 40px;
    font-size: 11px;
}



.chat-page {
    width: 90%;
    max-width: 700px;
    margin: 40px auto;
}


.chat-header {
    border-bottom: 1px solid #000;
    padding-bottom: 15px;
    margin-bottom: 30px;
}


.chat-header h1 {
    font-size: 20px;
    font-weight: 700;
}


.chat-header p {
    font-size: 11px;
}


#chat {
    min-height: 400px;
}


.message {
    margin-bottom: 25px;
}


.message-name {
    font-weight: bold;
    margin-bottom: 3px;
}


.message-text {
    margin: 0;
}


.chat-controls {
    margin-top: 30px;
    text-align: center;
}


#next-btn {
    font-family: inherit;
    font-size: 12px;
    color: #000;
    background: #d5d5d5;
    border: 1px solid #000;
    padding: 7px 15px;
    cursor: pointer;
}


#next-btn:hover {
    background: #ccc;
}

.note-page {
    width: 90%;
    max-width: 700px;
    min-height: 500px;

    margin: 60px auto;
    padding: 50px;

    background-color: white;
    color: black;

    font-family: "Cousine", monospace;
    font-size: 14px;
    line-height: 1.7;
}


.note-page h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 35px;
}


/* Note paragraphs */

.note-page p {
    margin-bottom: 20px;
    text-align: justify;
}


/* Links inside notes */

.note-page a {
    color: blue;
    text-decoration: underline;
}



.note-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}


.note-buttons a {
    color: black;
    text-decoration: none;

    border: 1px solid black;

    padding: 6px 12px;

    font-family: "Cousine", monospace;
    font-size: 12px;
}


.note-buttons a:hover {
    background-color: #e5e5e5;
}


.note-buttons a:visited {
    color: black;
}



@media (max-width: 600px) {

    .note-page {
        width: 92%;
        padding: 30px 25px;
        margin: 30px auto;
    }

    .note-page h1 {
        font-size: 18px;
    }

    .note-page p {
        text-align: justify;
    }

    .note-buttons {
        margin-top: 40px;
    }

    body {
        font-size: 13px;
    }


    .wiki-page,
    .chat-page {
        width: 92%;
        margin-top: 20px;
    }


    .wiki-header {
        display: block;
    }


    .wiki-logo {
        margin-bottom: 16px;
    }


    .wiki-search {
        width: 100%;
    }


    .wiki-search input {
        width: 100%;
    }

    .wiki-page{
        text-align: justify;
    }
    
    .wiki-nav {
        flex-wrap: wrap;
        gap: 10px;
    }


    .infobox {
        float: none;
        width: 100%;
        margin: 18px 0;
    }


    .wiki-content h1 {
        font-size: 18px;
    }


    .wiki-content h2 {
        font-size: 16px;
    }

}