@font-face {
  font-family: "Old School Adventures";
  src: url("/fonts/OldSchoolAdventures.ttf")
}

body {
  margin: 0;
  font-family: calibri;
  font-size: 1.5rem;
  color:#402060;
  background-color: #E6E6FA;
  text-align: center;
}

footer {
  text-align: left;
  margin: 10px;
}

.bodyContainer {
  margin: 10px;
}

.banner-container {
    display: flex;
    height: 25vh;
    overflow: hidden;
    margin: 0;
  }
  
  .banner {
    background-image: url(space.webp);
    background-repeat: repeat;
    height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

.responsive {
  max-width: 75%;
  height: auto;
}
  
  #header {
    color: white;
    font-size: 36px;
    text-shadow: 1px 1px black;
    font-family: "Old School Adventures", calibri;
  }

  nav {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5vh;
    background-color: #402060;
    padding: 5px;
  }
  
  #navbarList {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25%;
  }

  .devlog-list {
    text-align: left;
    list-style-position: inside;
    padding-left: 0;
    margin: 0 auto;
    display: table;
}

#cont, #about {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}


  #blog {
    display: grid;
    max-width: 300px;
    margin: 10px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 20px;
  }

 #devlogs-body {
    display: flex;
    flex-direction: row;
    position: relative;
    left: 3%;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px;
  }

  #cardimg {
    max-width: 200px;
  }
  
.post-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    max-width: 20%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

.primary-navigation[data-visible="true"] {
  transform: translateX(0%);
}

.mobile-nav-toggle {
 display: none;
}

.mobile-nav-toggle[aria-expanded="true"] {
  background-image: url("/Assets/x.svg");
}

@media screen and (max-width: 560px) {
  .primary-navigation {
    position: fixed;
    z-index: 1000;
    inset: 0 0 0 30%;
    background: #402060f4;
    flex-direction: column;
    padding: min(30vh, 30px) 15px;
    transform: translateX(100%);
    transition: transform 350ms ease-out;
  }
  
  .mobile-nav-toggle {
    display: block;
    position: absolute;
    z-index: 9999;
    background-image: url("/Assets/menutoggle.svg");
    background-repeat: no-repeat;
    width: 2rem;
    aspect-ratio: 1;
    top: 25.5%;
    right: 2rem;
  }

  .mobile-nav-toggle[aria-expanded="true"] {
    top: 5%;
  }

  #navbarList {
    gap: 5%;
  }

  #cont, #about {
    left: 0;
    margin: 10px;
  }

  #devlogs-body {
    flex-direction: column;
  }

  .post-card {
    max-width: 85%;
  }

  code, pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    position: relative;
    margin: 0;
    padding: 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }

}
  
  @media screen and (max-width: 768px) {
    #blog {
      grid-template-columns: 1fr;
    }
  }
  

iframe {
    display: block;
    margin: 0 auto;
 }

img {
    display: block;
    margin: 0 auto;
 }

code, pre {
  text-align: left;
  font-size: 1rem;
}

figcaption {
  font-size: 1rem;
}

button {
  border: none;
  background-color: transparent;
  outline: none;
}

#body {
  text-align: center;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    background-color: #402060;
    color: #fff;
    cursor: pointer;
    transition: 2s;
}

#back-to-top a:link {
  color: white;
  text-decoration: none;
}

#back-to-top a:visited {
  color: white;
  text-decoration: none;
}

#back-to-top a:hover {
  color: white;
  text-decoration: none;
}

#back-to-top a:active {
  color: white;
  text-decoration: none;
}

.navLink a:link {
  color: white;
  text-decoration: none;
}

.navLink a:visited {
  color: white;
  text-decoration: none;
}

.navLink a:hover {
  color: white;
  text-decoration: none;
}

.navLink a:active {
  color: white;
  text-decoration: none;
}


.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  max-width: 300px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropbtn {
  background-color: transparent;
  color: white;
  font-family: calibri;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  margin-top: -50px;

}

.dropdown {
  position: relative;
}

.bsky-icon {
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ccc;
}

.formbox {
    border-radius: 5px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    font-family: calibri;
    background-color: transparent;
}

#message {
  font-family: calibri;
  font-size: 16px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: bold;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="message"], 
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    resize: none;
    height: 150px;
}


input[type="submitBtn"] {
    background-color: #402060;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
  background-color: #36184d;
}

input[type="submit"]:disabled {
  background-color: #7a5fa0;
  cursor: not-allowed;
}

input[type="submit"] {
  background-color: #402060;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

#container {
  position: relative;
  left: 10%;
  text-align: center;
  margin: 10px;
  max-width: 75%;
}

#picture-flex {
  position: relative;
  left: 25%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 50%;
}

.gamesGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 10px;
}

.gridItem {
  flex: 0 1 calc(15% - 2rem);
  text-align: center;
}


/* Feed container styling */
#bluesky-feed-container {
    width: 100%;
    height: 600px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    scrollbar-width: thin;
    scrollbar-color: #888 #f9f9f9;
}

/* Custom scrollbar styles */
#bluesky-feed-container::-webkit-scrollbar {
    width: 8px;
}

#bluesky-feed-container::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 8px;
}

/* Post styling */
.bluesky-post {
    display: block;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Styling for images inside posts */
.post-images {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Focus styles for feed container and posts */
#bluesky-feed-container:focus {
    outline: 2px solid #0077cc;
    outline-offset: -2px;
}

.bluesky-post:focus {
    outline: 2px solid #0077cc;
    outline-offset: 2px;
    transition: outline 0.2s ease;
}

/* Bluesky logo link styling */
.bluesky-logo-link {
    display: inline-block;
    position: absolute;
    top: 10px; 
    right: 10px;
    text-decoration: none;
}

.bluesky-logo {
    border-radius: 50%;
    width: 20px;
    height: auto;
}

.g-recaptcha {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Media Query for smaller screens */
@media (max-width: 600px) {
    #bluesky-feed-container {
        width: 90%;
        max-width: 100%;
        max-height: 60vh;
    }
}