 /* Reset and global styling */
 body {
    margin: 0;
    font-family: "Oxygen mono", monospace;
    font-size: 1.3rem;
}

/* Color variables */
:root {
    --black: #171321;
    --hotmag: #ff17e4;
    --magenta: #e310cb;
    --aqua: #86fbfb;
    --white: #f7f8fa;
    --font-size: 1.3rem;
    --mono: "Oxygen mono", monospace;
    --sans: Oxygen, sans-serif;
}

/* Box model */
html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* Body styling */
body {
    padding: 0;
    margin: 0;
    font-family: var(--mono);
    background-color: var(--black);
    color: var(--white);
    font-size: var(--font-size);
    background-color: transparent;
}

/* Navigation styling */
nav {
    font-size: 80%;
    padding: 4rem 1rem;
    position: relative; /* Add this line */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: transparent;
    
}

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-weight: bold;
}

nav li:first-child {
    flex-basis: 100%;
    text-align: center;
}

nav [class*="fa-"] {
    font-size: 150%;
    color: var(--aqua);
}

nav h1 [class*="fa-"] {
    font-size: 100%;
    color: var(--aqua);
}

nav a {
    color: rgb(12, 6, 6);
    text-decoration: none;
    display: block;
    position: relative;
}

nav a:hover {
    color: var(--magenta);
}

nav li a:hover::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 23, 228, 1) 0%, rgba(134, 251, 251, 1) 100%);
}

/* Media query for larger screens */
@media (min-width: 850px) {
    nav {
        max-width: 1200px;
        margin: 0 auto;
    }

    nav li:first-child {
        flex-basis: auto;
        text-align: left;
        margin-right: auto;
    }
}

/* Button styling */
.button {
    background-color: rgb(135, 145, 236); /* Green */
    border: none;
    border-radius: 40px;
    color: rgb(255, 253, 253);
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    
  }
  
.button:hover {
  color: rgb(255, 246, 246); 
  border: 2px solid #f44336;
    opacity: 1;
    transform: scale(1.1); /* Increase the size on hover */
}


.articles {
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      .features {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;

        max-width: 70rem;
        column-gap: 2rem;
        row-gap: 2rem;
      }
      .articles h1 {
    color: #000000;
    margin-bottom: 50px;
    position: relative;
}

.articles h1::after {
    content: '';
    background: #7177d4;
    width: 300px;
    height: 5px;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);

}
      
/* Smaller item size */
.item {
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(to right bottom, #1f2022, #000000);
    box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.507);
    overflow: hidden;
    border-radius: 15px; /* Smaller border radius */
    transition: all 0.3s;
    position: relative;
}

.item:hover {
    transform: translateY(-0.6rem); /* Smaller transformation on hover */
}

.item-photo {
    width: 100%;
    align-self: center;
}

.item-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 1rem; /* Smaller margin */
    gap: 0.5rem; /* Smaller gap */
}

.item-icon {
    width: 1.6rem; /* Smaller icon size */
    height: 1.6rem;
}

.item-title {
    font-size: 1.8rem; /* Smaller font size */
    font-weight: 400;
}

.item-text {
    font-size: 1.4rem; /* Smaller font size */
    font-weight: 300;
    line-height: 1.3;
    padding: 0 1rem; /* Smaller padding */
    margin-bottom: 1.5rem; /* Smaller margin */
}

.item-link:link,
.item-link:visited {
    display: inline-block;
    font-size: 1.4rem; /* Smaller font size */
    padding: 1.2rem 1.6rem; /* Smaller padding */
    text-decoration: underline #099268;
    color: #099268;
    margin-top: auto;
}

      /* TABLETS */
      @media (max-width: 950px) {
        h1 {
          font-size: 2.8rem;
        }

        .features {
          grid-template-columns: 1fr 1fr;
          max-width: 60rem;
        }

        .item1 {
          grid-column: span 2;
        }

        .item-title {
          font-size: 3rem;
        }

        .item-text {
          font-size: 2rem;
        }

        .item-link:link,
        .item-link:visited {
          font-size: 2rem;
        }
      }

      /* Canvas styling */
canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
