@charset "UTF-8";
body {
	background: #D6F8D6;
    color: #92bbf0;
    font-size: medium;
	text-align: center;
    font-family: 'Alkatra', cursive;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Place canvas behind content */
}


.navbar {
	font-family: 'Alkatra', cursive;
	overflow: hidden;
	background-color:#D6F8D6;
	width: 100%;
	height: 25%;
	display: flex;
}


.navbar a {
	float: left;
	font-size: 28px;
	color: #7FC6A4;
	text-align: center;
	padding: 1px 50px;
	text-decoration:underline;
	margin-top:40px;
	margin-left:20px;
    margin-right:20px;
}


.text1 {
    text-align: center;
    background-color: transparent;
    color: #7FC6A4;
    font-family: 'Alkatra', cursive;
    font-weight: 500;
    font-size: 48px;
    padding-top: 5vh;
    padding-bottom: 48px;
    padding-right: 4vh;
    height: 30vh;
    width: 35vh;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    -webkit-transform: translate3d(0, 0, 0);
    display: inline-block;
    white-space: nowrap;
  }
  
  .text1:first-of-type {
    animation: showup 7s infinite;
  }
  
  .text1:last-of-type {
    width: 0px;
    animation: reveal 7s infinite;
  }
  
  .text1:last-of-type span {
    margin-left: -355px;
    animation: slidein 7s infinite;
  }
  
  /* Keyframes for animation */
  @keyframes showup {
    0% { opacity: 0; transform: translateY(100%); }
    100% { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes reveal {
    0% { width: 0; }
    100% { width: 100%; }
  }
  
  @keyframes slidein {
    0% { margin-left: -355px; }
    100% { margin-left: 0; }
  }

@keyframes reveal {
    0% {opacity:0;width:0px;}
    20% {opacity:1;width:0px;}
    30% {width:355px;}
    80% {opacity:1;}
    100% {opacity:0;width:355px;}
}

h1{
    font-size: 36px;
    text-align: center;
    color: #7FC6A4;
    font-weight: bold;
    margin-top:-150px;
    
}


p {
  font-size:24px;
  color:#55505C;
  margin-top:24px;
  margin-left:200px ;
  margin-right: 200px;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(2fr,1fr));
    gap: 20px;
    padding: 20px;
}

.post {
    background-color: #a2ec95;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.5s;
}

.post:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Hover animation */
}

a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    img {
        width: 100%; /* Make images responsive */
    }

    .navbar a {
        font-size: 20px; /* Adjust navbar font size for smaller screens */
    }

    .text1 {
        font-size: 36px; /* Adjust font size for text1 on smaller screens */
    }
}
