:root {
    --primary-lightblue: #aabfe9; /* Light Blue */
    --secondary-lightpink: #ffddedb9; /* Light Pink */
    --accent-fuschia: #a923b8; /* Fuschia */
    --transparent-darkblue: rgba(80, 62, 125, 0.7); /* Semi-transparent Dark Blue */
    --black: #333; /* Dark Text */
}

* {
    cursor: url('https://img.icons8.com/doodle-line/60/cursor.png'), auto;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: hidden;
    background-image: url('https://thumbs.dreamstime.com/b/vibrant-pixel-art-depiction-sky-filled-fluffy-clouds-bathed-warm-hues-sunset-transition-soft-whites-396296860.jpg');
    background-size: cover;
}

/* General area */
main {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1rem;
}

/* Both the left bar and the main content*/
section {
    background-image: linear-gradient(to bottom, var(--primary-lightblue), var(--transparent-darkblue));
    border-radius: 8px;
    padding: 1rem;
    height: 69vh;
}


/* Typography */
h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-family: "Rubik Iso", system-ui;
    font-weight: 400;
    font-style: normal;
    padding: 0;
    margin: 0;
}

h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-family: "Jacquard 12", system-ui;
    font-weight: 400;
    font-style: normal;
    width: 30vw;
    text-align: center;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 1.5rem);
    font-family: "DotGothic16", sans-serif;
    font-weight: 700;
    font-style: normal;
}

p, li {
    font-family: 'Arial', sans-serif;
    color: var(--black);
    line-height: 1.25;
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-family: "DotGothic16", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding: 0.5rem;
}

/* Links */
a {
    color: var(--black);
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bolder;
    padding: 0.25rem;
    border-radius: 5px;
    font-family: "DotGothic16", sans-serif;
    font-weight: 600;
    font-style: normal;
    transition: background-color 0.3s, color 0.3s;
    cursor: url('https://img.icons8.com/fluency/48/pixel-heart.png'), auto;
}

a:hover {
    text-decoration: underline;
    color: var(--accent-fuschia);
}

/* Header */
header {
    padding: 1rem;
    text-align: center;
}



/* Left Sidebar */
section.left-bar {
    width: 100%;
    max-width: 15vw;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

/* Navigation inside the left bar */
section.left-bar nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
}

section.left-bar nav a:hover{
    background-color: var(--accent-fuschia);
    color: var(--primary-lightblue);
}

section.left-bar .visitors-box a {
    font-size: 0.25rem;
    padding: 0.5rem;
    color: var(--primary-lightblue);

}



/* Main content */
section.main-content {
    width: 100%;
    max-width: 75vw;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: scroll;
/* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-lightblue) var(--transparent-darkblue);
}

div.welcome, div.about-preview {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

div.welcome img {
    max-width: 8vw;
    height: auto;
}


div.about-preview img {
    max-width: 10vw;
    height: auto;
}

div.about-preview .textbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

div.about-preview .textbox a {
    background-color: var(--accent-fuschia);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--primary-lightblue);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

div.about-preview .textbox a:hover {
    color: var(--accent-fuschia);
    background-color: var(--primary-lightblue);
}


/* Updates section */
.updates {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

div.updates h2{
    width: 100%;
}


div.boite-updates {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap-reverse;
    justify-content: space-around;
    align-items: stretch;
    gap: 1rem;
}


/* Update items */
.update-item {
    flex: 1 1 300px;
    max-width: 400px;
    background-color: var(--secondary-lightpink);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.update-item p {
    padding: 1rem;
}

span.update-date {
    font-size: 0.875rem;
    color: var(--transparent-darkblue);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}


/*iFrame chatbox*/
.chatbox {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

div.chatbox h2 {
    width: 100%;
}

iframe {
    border: none;
    border-radius: 8px;
    width: 100%;
    height: 300px;
}

/* Footer */

footer > .visitors-box,
footer > .social-box {
    display: none;
}


/* media queries for responsiveness */

@media (max-width: 500px) {
 .update-item {
        flex: 1 1 80vw;
        width: 80vw;
        max-width: none;
    }


}



@media (max-width: 768px) {

    body {
        overflow-y: scroll;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-lightblue) var(--transparent-darkblue);
    }

    main {
        flex-direction: column;
        align-items: center;
    }

    section.left-bar, section.main-content {
        max-width: 90vw;
        width: 100%;
    }

    /* Left bar */
    section.left-bar {
        justify-content: space-around;
        height: auto;
        align-items: center;
        position: sticky;
        top: 0;
        background-image: none;
        background-color: var(--primary-lightblue);
    }

    section.left-bar nav {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-around;
        padding: 0.5rem;
    }

    section.left-bar nav .bar-title {
        display: none;
    }

    section.left-bar .visitors-box,
    section.left-bar .social-box {
        display: none;
    }


    /* Main content */
    section.main-content {
        max-height: none;
        height: auto;
        overflow-y: visible;
    }

    .boite-updates {
        flex-direction: column;
        align-items: center;
    }

    .update-item {
        width: 90%;
        max-width: none;
    }


    /* Footer */
    footer > .visitors-box,
    footer > .social-box {
    display: inline-block;
    }

    footer {
        margin-top: 2rem;
        padding: 1rem;
        background-color: var(--transparent-darkblue);
        display: flex;
        justify-content: space-around;
    }

    footer .visitors-box a {
        font-size: 0.25rem;
        color: var(--transparent-darkblue);
    }
}

@media (max-width: 880px) {

    .update-item {
        max-width: 320px;
    }
}


@media (max-width: 1000px) {

    .update-item {
        max-width: 265px;
    }
}



