/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */


    
         
         
body {
  background-image: url('https://sadhost.neocities.org/images/tiles/ornate.png');
}

        
            /* user styles */

            /* styles are what change the color and sizes of stuff on your site. */

            /* these are variables that are being used in the code
    these tended to confuse some people, so I only kept 
    the images as variables */

            :root {
                --header-image: url('/header2.png');
                --body-bg-image: url('https://sadhost.neocities.org/images/tiles/ornate.png');

                /* colors */
                --content: #6e2525;
            }
            :body {
                background-image: url('https://sadhost.neocities.org/images/tiles/ornate.png')
                background-repeat: repeat;
                cursor: url(/cursor.png); auto
            }

            /* if you have the URL of a font, you can set it below */
            /* feel free to delete this if it's not your vibe */

            /* this seems like a lot for just one font and I would have to agree 
    but I wanted to include an example of how to include a custom font.
    If you download a font file you can upload it onto your Neocities
    and then link it! Many fonts have separate files for each style
    (bold, italic, etc. T_T) which is why there are so many!
    
    */

            @font-face {
                font-family: ACharmingFont;
                src: url('a_charming_font/Achafsex.ttf');
            }

            @font-face {
                font-family: ACharmingFont;
                src: url('a_charming_font/Achafexp.ttf');
                font-weight: bold;
            }

            @font-face {
                font-family: ACharmingFont;
                src: url('a_charming_font/Achafita.ttf');
                font-style: italic;
            }

            @font-face {
                font-family: ACharmingFont;
                src: url('a_charming_font/Achaflft.ttf');
                font-style: italic;
                font-weight: bold;
            }
            @font-face {
                font-family: RomanceFatalSerif;
                src: url('RomanceFatalSerif/romance fatal serif JC Fonts.ttf');
            }
            @font-face{
                font-family: Zachary;
                src: url('Zachary/Zachery.otf');
                
            }
            

  
           h1 {
                font-family: 'ACharmingFont';
                margin: 0;
                background-color: none;
                /* you can delete the line below if you'd prefer to not use an image */
                background-size: 65px;
                color: #fceaff;
              
            }
            
           h2 {
             font-family: 'RomanceFatalSerif';
             margin: 0;
             background-color: none;
             background-size: 65px;
             color: #fceaff
             background-image: var(--body-bg-image);
           }
           p {
             font-family: 'Zachary';
             margin: 0;
             background-color: none;
             background-size: 65px;
             color: #bc1212
             background-image: var(--body-bg-image);
           }
           li {
             font-family: 'Zachary';
             margin: 0;
             background-color: none;
             background-size: 65px;
             color: inherit
             background-image: var(--body-bg-image);
           }
  

            * {
                box-sizing: border-box;
            }

            /* below this line is CSS for the layout */

            /* this is a CSS comment
    to uncomment a line of CSS, remove the * and the /
    before and after the text */


             #site-logo {
               position:absolute;
                top:0; margin:0;
                left:0;
                
                
             }
             #header {
                
                width: 100%;
                background-color: #5e4e8c;
                /* header color here! */
                height: 150px;
                /* this is only for a background image! */
                /* if you want to put images IN the header, 
      you can add them directly to the <div id="header"></div> element! */
                background-image: var(--header-image);
                background-size: 100%;
            }
            /* the "container" is what wraps your entire website */
            /* if you want something (like the header) to be Wider than
    the other elements, you will need to move that div outside
    of the container */
            #container {
                max-width: 1000px;
                /* this is the width of your layout! */
                /* if you change the above value, scroll to the bottom
      and change the media query according to the comment! */
                margin: 60px auto;
                /* this centers the entire page */
            }

            /* the area below is for all links on your page
    EXCEPT for the navigation */
            #container a {
                color: #e01111;
                font-weight: bold;
                /* if you want to remove the underline
      you can add a line below here that says:
      text-decoration:none; */
            }

            

            /* navigation section!! */
            #navbar {
                height: 40px;
                background-color: #000000;
                /* navbar color */
                width: 100%;
            }

            #navbar ul {
                display: flex;
                padding: 0;
                margin: 20px;
                list-style-type: none;
                justify-content: space-evenly;
            }

            #navbar li {
                padding-top: 10px;
            }

            /* navigation links*/
            #navbar li a {
                color:  #b81d13 ;
                /* navbar text color */
                font-weight: 800;
                text-decoration: none;
                /* this removes the underline */
            }

            /* navigation link when a link is hovered over */
            #navbar li a:hover {
                color: #b9b3b1;
                text-decoration: underline;
            }

            #flex {
                display: flex;
            }

            /* this colors BOTH sidebars
    if you want to style them separately,
    create styles for #leftSidebar and #rightSidebar */
            #aside {
                background-color:   #1f1d1d ;
                width: 200px;
                padding: 20px;
                font-size: smaller;
                margin: 20px;
              
                /* this makes the sidebar text slightly smaller */
            }


            /* this is the color of the main content area,
    between the sidebars! */
            main {
                background-color:  #0e0d0d ;
                flex: 1;
                padding: 20px;
                order: 2;
                margin: 20px
            }

            /* what's this "order" stuff about??
    allow me to explain!
    if you're using both sidebars, the "order" value
    tells the CSS the order in which to display them.
    left sidebar is 1, content is 2, and right sidebar is 3! */

             #leftSidebar {
                order: 1;
            }

            #rightSidebar {
                order: 3;
            }

            footer {
                background-color: #000000;
                /* background color for footer */
                width: 100%;
                height: 40px;
                padding: 10px;
                text-align: center;
                /* this centers the footer text */
            }

            h1,
            h2,
            h3 {
                color:  #c61004 ;
            }

            h1 {
                font-size: 25px;
            }

            strong {
                /* this styles bold text */
                color: #c61004 ;
            }

            /* this is just a cool box, it's the darker colored one */
            .box {
                background-color: #2d0d09;
                border: 1px solid #c62424;
                padding: 10px;
            }

            .button {
                  background-color: #952b1d; 
                  border: 1px solid #551911
                }/* CSS for extras */

            #topBar {
                width: 100%;
                height: 30px;
                padding: 10px;
                font-size: smaller;
                background-color: #13092D;
            }
            /* Source - https://stackoverflow.com/a/71548147
/Posted by Abdelaziz Alsabagh
/Retrieved 2026-05-03, License - CC BY-SA 4.0 */

#const :field = document.querySelector('textarea');
#const :backUp = field.getAttribute('placeholder')
#const :btn = document.querySelector('.btn');
#const :clear = document.getElementById('clear')
#const :submit = document.querySelector('#submit')
/* const comments = document.querySelector('#comment-box') */
#const comments = document.getElementById('comment-box');

/*array to store the comments */
const comments_arr = [];

// to generate html list based on comments array
#const display_comments = () => {
  let list = '<ul>';
   comments_arr.forEach(comment => {
    list += `<li>${comment}</li>`;
  })
  list += '</ul>';
  comments.innerHTML = list;
}

clear.onclick = function(event){
  event.preventDefault();
  /* reset the array  */
   comments_arr.length = 0;
  /* re-genrate the comment html list */
  display_comments();
}

submit.onclick = function(event){
    event.preventDefault();
    const content = field.value;
    if(content.length > 0){ // if there is content
      // add the comment to the array
      comments_arr.push(content);
      /* re-genrate the comment html list */
      display_comments();
      /* reset the textArea content */
      field.value = '';
    }
}


            /* BELOW THIS POINT IS MEDIA QUERY */

            /* so you wanna change the width of your page? 
    by default, the container width is 900px.
    in order to keep things responsive, take your new height,
    and then subtrack it by 100. use this new number as the 
    "max-width" value below
    */

            @media only screen and (max-width: 900px) {
                #flex {
                    flex-wrap: wrap;
                }

                aside {
                    width: 100%;
                }

                /* the order of the items is adjusted here for responsiveness!
      since the sidebars would be too small on a mobile device.
      feel free to play around with the order!
      */
                main {
                    order: 1;
                    
                }

                #leftSidebar {
                    order: 2
                    
                }

                #rightSidebar {
                    order: 3;
                }

                #navbar ul {
                    flex-wrap: wrap;
                    
                }
            }
          
        </style>
