/* Reset / base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: rgb(71, 71, 71);
}

::selection {
  color: rgb(56, 24, 51);
  background: #ff61b5;
}

mark{
  background-color: rgb(166, 203, 243);
  color: rgb(255, 255, 255);
  font-weight: bold;}

body {
  min-height: 100vh;
  font-family: "Averia Sans Libre", sans-serif; 
  
background-image: url(https://file.garden/aE7eugw0EBvaQzOF/assets/CloudyDay/Chloe%CC%88_back.webp);
  background-attachment: fixed;
  background-size: cover;
  
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  max-width:1200px;
  margin: 0 auto;

}

/* Grid container */
.container {
  display: grid;
  grid-template-columns: 1fr 2fr; /* nav | main */
  grid-template-rows: auto 1fr auto; /* header | content | footer */
  grid-template-areas:
    "header header"
    "nav    main"
    "footer footer";
  min-height: 100vh;
 
}

/* Grid areas */
header {
  grid-area: header;
  padding: 1rem;
  background-image: url("/assets/images/header-chloe.webp");
  background-position: center ;
 background-size: contain;
background-repeat: no-repeat;
  color: #fff;
  min-height: 360px;
  margin-top: 10px;
}

main {
  grid-area: main;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  overflow: auto;
  border: solid 3px rgb(86, 160, 239);
  border-radius: 10px;
  margin: 10px;
  z-index: 0;
  text-align: center;
}

footer {
  grid-area: footer;
  padding: 1rem;

  background-image: url("/assets/images/cloud-long.webp");
  background-position: center ;
 background-size: contain;
background-repeat: no-repeat;
  color: #000000;
  text-align: center;
  font-size: x-small;
  a {
    color: #ff61b5;
  }
}

/* now the individual style elements in main */
h1 {
  color: rgb(86, 160, 239);
  padding-bottom: 15px;
  font-family: "DynaPuff", system-ui;
  text-align: left;
}
h2 {
  color:#e856ad;
  padding-bottom: 15px;
  font-family: "DynaPuff", system-ui;
  text-align: left;
}
h3 {
  color: rgb(86, 160, 239);
  text-align: left;
}

h4 {
  color: rgb(166, 203, 243);
  font-family: "DynaPuff", system-ui;   
  padding-top: 15px;
  padding-bottom: 5px;
  text-align: left;
}
u{
    text-decoration: rgb(86, 160, 239) wavy underline;
}

/* Rounded border */
hr.rounded {
  border-top: 8px solid rgb(166, 203, 243);
  border-radius: 5px;
  margin-top: 15px;
  margin-bottom: 15px;
}
video {
  border: rgb(86, 160, 239) dashed 2px;
  border-radius: 10px;
  margin: 10px 0;
}

 .blink {
        animation: blink 0.7s infinite;
      }

      @keyframes blink {
        0%, 49% {
          opacity: 1;
        }
        50%, 100% {
          opacity: 0;
        }
      }

/* begin p styles*/
p {
  padding: 10px 5px 5px 5px;

}
main p {
  text-align: left;
}
/* p is centered in parent and text is centered*/
.center {
  margin: 0 auto;
  text-align: center;
}
/* p fills 80% of parent */
.width80 {
  max-width: 80%;
}
/* p fills 60% of parent */
.width60 {
  max-width: 60%;
}
em {
  font-family: "DynaPuff", system-ui;
  font-size: smaller;
  color: rgb(86, 160, 239);
}

main a {
  color: #e856ad;
  text-decoration: none;
  font-weight: bold;
}
main a:hover {
  text-decoration: wavy underline;
}
/* article styling section */
content {
  display: flex;
  flex-flow: row wrap;
  max-width: 100vw;
  width: 100%;
  justify-content: center;
  align-items: stretch;
  align-content: center;
  padding: 1%;
  gap: 15px;
  margin: 0 auto;
}
article {
  background: white;
  color: black;
  outline: rgb(86, 160, 239) solid 2px;
  border-radius: 5px;
  padding: 20px;
  margin: 15px;
  max-width: 100%;
  min-width: 200px;
  flex: 1 1 100%;
  position: relative;
  overflow: auto;
  display: inline-block;
  vertical-align: top;
}
.small {
  flex: 1 2 40%;
  min-width: 250px;
}
article.center {
  text-align: center;
  margin: 15px auto;
}
article.shadow {
  box-shadow: 10px 10px rgb(166, 203, 243);
  margin-bottom: 30px;
  max-width: 100%;
}

/* LIST section */
ul {
  padding-left: 20px;
  font-weight: bold;
  list-style: none;
 
}
li {
  font-weight: 400;
}

main li::before {
  content: "";
  background-image: url("/assets/images/tiny_cloud.webp");
    background-repeat: no-repeat;
  background-size: 16px;
  width: 16px;
  height: 9px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.main-ul {
  text-align: left;
  margin-left: 20px;
  p{
    color: #e856ad;
  }
}

/* navigation to the top of the page */
.pagenav {
  font-weight: bolder;
  max-width: fit-content;
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* navigation section */
nav {
  grid-area: nav;
  padding: 1rem;
  background: none;
  z-index: 1000;

  /* Sticky behavior */
  position: sticky;
  top: 0;
  height: fit-content;
}
.navtitle {
  text-align: center;
  margin: 0 auto;
  background-image: url("/assets/images/cloud-long.webp");
  background-position: center ;
 background-size: contain;
background-repeat: no-repeat;
 h2{
    padding-top: 30px;
    font-size: larger;
    text-align: center;
  }

}

.aside {
    border-radius: 20px;
  background: #ffffff;
  text-align: center;
}

nav ul {
  list-style: none;
  font-weight: 200;
  padding-left: 0;
}

nav li {
  position: relative;
}

nav a {
  display: block;
  padding: 0.75rem;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

nav a:hover {
  background: rgb(166, 203, 243);
}

/* Dropdown */
nav ul ul {
  display: none;
  position: absolute;
  left: 100%; /* dropdown opens right */
  top: 0;
  background: rgb(166, 203, 243);
  min-width: 180px;
  z-index: 1000;
  border-radius: 20px;
}

nav li:hover > ul {
  display: block;
}

/*blog section in main*/
[id^="link"] {
  display: none;
}
[id^="link"]:target {
  display: block;
}
/* button styles */
.btn {
  display: inline-block;
  width: auto;
  text-decoration: none;
  padding: 5px;
  line-height: 1;
  border: 1px solid rgba(0, 0, 0, 0.4);
  color: rgb(86, 160, 239);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: inset 2px 2px 0px 0px rgba(255 255 255 / 20%),
    inset -2px -2px 0px 0px rgb(0 0 0 / 10%);
   
}
.btn:active {
  box-shadow: inset -2px -2px 0px 0px rgba(255 255 255 / 20%),
    inset 2px 2px 0px 0px rgba(0 0 0 / 10%);
}

/*scrolling window in main*/
.window {
  min-height: 200px;
  max-height:600px;
  max-width: 90%;
  overflow: auto;
  border: solid 3px rgb(166, 203, 243);
  border-radius: 10px;
  margin: 0 auto; /* this centers it*/
  padding: 10px;
  background-color: #ffffff;
  .window-title {
    background: rgb(166, 203, 243);
    padding: 5px;
    font-family: "VT323", monospace;
    text-align: center;
    position: sticky;
    top: 0;
    border: solid 2px rgb(166, 203, 243);
   
  }
  p {
    text-align: justify;
  }
}

/*changelog window stuff */
.changelog {
  background: none;
  max-width: 90%;
  margin: 0 auto;
  position: relative;
  padding-top: 10px;
  max-height: 150px;
  overflow: auto;
  border-radius: 10px;

  .changelog-title {
    background: rgb(255, 255, 255);
    max-height: fit-content;
    border: solid 2px rgb(166, 203, 243);
    position: sticky;
    top: 0;
    font-family: "VT323", monospace;
    padding: 10px;
  }
  .changelog-body {
    background: rgb(166, 203, 243);
    min-height: fit-content;
    border: solid 2px rgb(166, 203, 243);
    border-top: 0px;
    font-size: smaller;
    p {
      color: #ffffff;
      display: none;
    }
  }
  .dot {
    height: 12px;
    width: 12px;
    background-color: darkgrey;
    border-radius: 50%;
    display: inline-block;
  }
  .a {
    background-color: #ff61b5;;
  }
  .b {
    background-color: rgb(86, 160, 239);
  }
  .c {
    background-color: rgb(166, 203, 243);
  }
  .title {
    padding-left: 20px;
    text-transform: uppercase;
  }
}

/* START of colour pattern boxes */
.colorpalette {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.color-swatch{
  width: 100px;
  height: 100px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #333;
}


/*  START of neighborhood buttons grid gallery stuff */

  .buttons-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }
        
        .button-item {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .button-item img {
            width: 88px;
            height: 31px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
/*  END of neighborhood buttons grid gallery stuff */

/*  START OF PORTFOLIO GALLERY STUFF */
.image-button-container {
  max-width: 100%;
  min-width: 200px;
  margin: 20px auto;
  padding: 20px;
  align-items: center;
}

.image-button {
  position: relative;
  width: 40%;
    display: inline-block;
  margin-left: 10px;
}

.image-button img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

/* Style the button and place it in the middle of the container/image */
.image-button .btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  background-color: #ffffff;
  color: white;
  font-size: 16px;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  a {
    color: rgb(86, 160, 239);
  }
}

.image-button .btn:hover {
  background-color: rgb(166, 203, 243);
  a{color:#ffffff;
text-decoration: none;
}
}

 .gallery {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
      }

      .thumbnail {
        cursor: pointer;
        overflow: hidden;
        border-radius: 8px;
        transition: transform 0.3s ease;
      }

      .thumbnail:hover {
        transform: scale(1.05);
      }

      .thumbnail img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
      }

      .modal {
        display: none;
        position: fixed;
        z-index: 10000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
      }

      .modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: scroll
      }

      .modal-content {
        position: relative;
        max-width: 80%;
        max-height: 80%;
      }

      .modal-content img {
        width: 800px;
        height: auto;
        border-radius: 8px;
  
      }

      .close {
        position: absolute;
        top: 20px;
        right: 40px;
        font-size: 32px;
        font-weight: bold;
        color: white;
        cursor: pointer;
      }

      .close:hover {
        color: #ccc;
      }

      .modal-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
      }

      .modal-description {
        color: white;
        font-size: 1rem;
        max-width: 80%;
        text-align: center;
      }

      .thumbnail-description {
        margin-top: 0.5rem;
        font-size: 0.9rem;
        color: #666;
        font-style: italic;
      }

/* Brick wall layout for articles */
.brick-wall {
  column-count: 2;
  column-gap: 15px;
}

/* END of gallery and portfolio stuff */
