
@media (max-width: 768px)
{
    nav ul
    {
        flex-direction: column;
    }

    .entry
    {
        flex-direction: column;
    }
}
/* Entire page */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f5f5f5;
}

/* Header */

header {
    width: 80%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;

    /* Semi-transparent white */
    background-color: rgba(255, 255, 255, 0.75);

    /* Optional border */
    border: 2px solid black;

    /* Border corner */
   border-radius: 0;
}

/* Website title */

header h1 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 48px;
    color: black;
}

/* Navigation list */

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Each navigation item */

nav li {

    width: 130px;

}

/* Navigation boxes */

nav a {
    display: block;
    width: 120px;
    padding: 15px 0;

    background-color: #4058a0;
    color: white;

    text-decoration: none;
    font-weight: bold;

    border: 2px solid black;
    border-radius: 0;

    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #5c74c0;
}

nav a.active {
    background-color: cyan;
    color: black;
}

/* Main content */

main {

    display: flex;

    justify-content: center;

    margin-top: 40px;

}

/* Article */

article {
    width: 80%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;

    background-color: rgba(255, 255, 255, 0.85);
}

/* Footer */

footer
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;

    margin-top: 20px;
}

footer img
{
    width: 100px;
    height: auto;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    text-align: center;

    /* Background image */
    background-image: url("../Images/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    /* Makes the background fill the entire page */
    min-height: 100vh;
}

/* Contact form */

form {
    width: 450px;
    margin: 0 auto;
    text-align: center;
}

form p {
    margin: 20px 0;
}

input,
select,
textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

input[type="checkbox"] {
    width: auto;
}

input[type="submit"] {
    width: 180px;
    cursor: pointer;
    background-color: #4058a0;
    color: white;
    border: 2px solid black;
}

input[type="submit"]:hover {
    background-color: #5c74c0;
}

.reference-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reference-list li {
    margin: 15px 0;
}

.entry
{
    display: flex;
    align-items: center;

    margin-bottom: 30px;
    padding: 15px;

    border: 1px solid #000000;
    background-color: #ffffff;
}

.entry img
{
    width: 180px;
    height: auto;

    margin-right: 20px;
}

.entryText
{
    text-align: left;
}

.entryText h3
{
    margin-top: 0;
}

.terms-container{
    display:flex;
    flex-direction:column;
    gap:15px;
    margin-top:20px;
}

.term-btn{
    padding:15px;
    font-size:18px;
    cursor:pointer;
    background:#5868b3;
    color:white;
    border:none;
    transition:0.3s;
}

.term-btn:hover{
    background:#44dcdc;
}

.modal{
    display:none;
    position:fixed;
    z-index:1000;
    left:0;
    top:0;
    width:100%;
    height:100%;

    background:rgba(0,0,0,.45);
    backdrop-filter:blur(6px);
}

.modal-content{
    background:white;
    color:black;

    width:60%;
    max-width:600px;

    margin:10% auto;
    padding:30px;

    border-radius:10px;

    text-align:center;
}

.close-btn{
    float:right;
    font-size:30px;
    cursor:pointer;
}

.media-list{
    display:flex;
    flex-direction:column;
    gap:15px;
    margin-top:20px;
}

.media-item{
    background:#ffffff;
    border-left:6px solid #5868b3;
    padding:15px;
    text-align:left;
    transition:.3s;
}

.media-item:hover{
    transform:translateX(5px);
    border-left-color:#44dcdc;
}

.media-item h3{
    margin-bottom:8px;
}

.character-tabs{
    margin:20px 0;
}

.tab-btn{
    padding:12px 24px;
    margin:0 10px;
    cursor:pointer;
    border:none;
    background:#5868b3;
    color:white;
    font-size:16px;
    border-radius:5px;
    transition:.3s;
}

.tab-btn:hover{
    background:#44dcdc;
}

.character-section{
    margin-top:20px;
}

.character-section ul{
    list-style:none;
    padding:0;
}

.character-section li{
    padding:10px;
    margin:8px 0;
    background:#f4f4f4;
    border-left:5px solid #5868b3;
}