@import url("https://fonts.googleapis.com/css2?family=Inclusive+Sans:ital,wght@0,300..700;1,300..700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #222121;
  background-color: #fae5e1;
  font-family: "Inclusive Sans", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  font-size: 2.5rem;
  display:flex;
}

h2{
    display:flex;

}
h4 {
  margin: 8px 0;
}

p,
li {
  max-width: 600px;
}

p a,
li a,
.post a,
h1 a,
h2 a {
  margin: 0;
  padding: 2px 8px;
  background-color: #e8c5c5;
  box-shadow: none;
}

ul {
  padding: 16px 24px;
}

nav {
  padding: 24px;
  display: flex;
  /* justify-content: space-between; */
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

nav a {
  border: none;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  /* flex:1; */
}

nav img {
  width: 24px;
  height: 24px;
}

main {
  display: flex;
  flex-direction: column;
  padding: 24px;
  /* min-height: calc(100vh - 99px); */
  gap: 16px;
  flex: 1;
}



iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

a {
  text-decoration: none;
  color: #222121;
  transition: all 0.3s ease-in-out;
  margin: 8px;
  padding: 16px 24px;
  border-radius: 8px;

  background-color: #e7a8a8;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

img{
  max-width: 100%;
}

.home {
  display: flex;
  flex-direction: column;
  /* align-self: flex-start; */
  /* justify-content: center; */
  gap: 32px;
  padding: 48px;
  border-radius: 8px;
  /* width:50vw; */
  box-sizing: border-box;
  background-color: white;
  min-height:100vh;
}

.garden-title{
  display:flex;
  flex-direction:column;

}

.home .intro {
  display: flex;
  flex-direction: column;
}

.intro {
  display: flex;
  gap: 24px;
}

.intro-items {
  display: flex;
  gap: 64px;
}

.interests {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.links {
  display: flex;
  flex-direction: column;
}

.research {
  display: flex;
  /* flex-direction: column; */
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 24px;
}

.research .current {
  display: flex;
  flex-direction: column;
  /* gap: 48px; */
  width: 100vw;
  /* flex-wrap: wrap; */
}

.game-research,
.tech-research {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.research-section {
  display: flex;
  flex-direction: column;
  /* background-color: #f7e9f3; */
  align-self: stretch;
  flex: 1;
  padding: 16px 0;
  border-top: 1px solid #222121;
  gap: 16px;
  /* min-width: 40%; */
  flex-wrap: wrap;
}

.research-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* margin: 8px; */
  padding: 16px;
  border-radius: 8px;
  background-color: #fffdfa;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  min-width: 250px;
}

.research-item p {
  margin: 8px;
}

.research .past {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  display: none;
}

.past .projects {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
}

.project-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px;
  padding: 16px 0;
  border-radius: 8px;

  max-width: 250px;
}

.project-item a {
  background-color: #eee1f8;
  padding: 8px 16px;
  box-shadow: none;
  margin: 0;
}

.past p {
  margin: 0;
}

.note {
  display: flex;
  flex-direction: column;
  margin: 8px;
  padding: 16px;
  background-color: #f5edbf;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  max-width: 320px;
  position: relative;
  /* left:24px;
  top:24px; */
}

.note p {
  margin: 0;
}

.games {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.games .intro-items,
.games .timeline {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  justify-content: center;
  gap: 16px;
  padding: 48px;
  border-radius: 8px;
  background-color: #f6f4f2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.games .timeline {
  background-color: #edfde7;
}

main.drawings {
  padding: 0;
}

.diary{
  background-color: #fef4f2;
}

.drawing-diary-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 48px;
}

.drawing-diary {
  display: flex;
  flex-direction: column;
  padding: 48px;
}

.drawing-diary h1 {
  margin: 24px 0;
  font-size: 2rem;
}

.drawing-diary details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid black;
}

.drawing-diary .img-container {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.drawing-diary img {
  width: 100%;
  max-width: 400px;
  margin: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline li {
  margin: 8px 0;
}

.pageList li{
  margin:8px 0;
}

.homepage .bg-img img,
.researchNews .bg-img img,
.bg-img img {
  opacity: 0.6;
  position: fixed;
  top: 0;

  bottom: 0;
  right: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#date-moon {
  position: fixed;
  top: 24px;
  right: 24px;
  /* padding: 16px; */
  /* background: #fffdfa;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
  max-width: 320px;
  text-align: right;
  z-index:-1;
}

.post {
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.panels {
  display: flex;
  /* width: 100vw; */
  gap: 16px;
  margin:0 24px 24px;
  flex:1;
}
.left-panel,
.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;

}


.left-panel {
  background: #fffdfa;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  /* padding: 16px; */
}

.left-panel iframe,
.right-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.statusUpdates{
  background-color: #b8bedd;
}

.research24{
  background-color: #faf3ff;
}

.art{
  background-color: #fbdbd0;
}

.favTheory{
  background-color: #b8d4dd;
}

.navProb{
  background-color: #cae4fd;
}

.diaryData{
  background-color: #f8e6bb;
}

.gardens{
  background-color: #d4f4dd;
}

.about{
  background-color: #dee6db;
}
.pageList{
  background-color: #f0ffcc;
}

@media (max-width: 568px) {

  nav{
    padding:8px;
  }

  .panels {
    margin: 0 8px 8px;
    gap:08px;
  }

  .home {
    padding: 16px;
    gap: 24px;
  }

  .intro, .intro-items{
    flex-direction: column;
  }

    .games .intro-items, .games .timeline {
    flex-direction: column;
    gap: 16px;
    padding:16px;
  }

  h1{
    font-size: 1.5rem;
  }

  h2{
    font-size:1.3rem;
  }

  ul{
    padding: 8px 16px;
  }

  main{
    padding:16px;
  }

  .drawing-diary-header{
    padding:16px;
    gap:8px;
  }

  .drawing-diary{
    padding:16px;
  }

  details, .drawing-diary details{
    padding:8px;
  }

  .drawing-diary img{
    margin:0;
  }

}