.slide-in {
      opacity: 0.01;
      transform: translateY(-5vh);
      transition: opacity 0.8s ease-in-out , transform 0.8s ease-in-out ;
}

.slide-in.active {
      opacity: 1; 
      transform: translateY(0);
}
 
body {
    font-family: Arial, sans-serif, Times New Roman;
    background: #14130e;
    color: #D8CFBC;
    text-align: center;
    position: relative; 
    
}

.extras_title{
    font-size: clamp(10rem, 40vw, 20rem);

}

main{
    padding-top: 100px;
}

.island_nav {
    position: fixed;
    height: 40px;
    border-radius: 10px;
    background: #1c1a14;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;

}

.home, .hobbies, .guestbook, .blog {
    font-size: 0.9rem;
    margin: 10px;
    margin-top:auto;
    margin-bottom: auto;
    font-weight: bold;
    cursor: pointer;
    color: #bbb2a1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home:hover, .hobbies:hover, .guestbook:hover, .blog:hover {
    color: #635745;
    transform: translateY(-0.7vh);
}

.opener_image {
    width: 100%;
    position: relative;
    max-height: 350px;
    object-fit: cover;
}

h1 {
    font-size: 36px;
    margin: 10px 0;
    padding: 3px;
    
}

.header{
    font-weight: bold;
    margin: 20px 0;
    border-bottom: 2px solid #D8CFBC;
    padding: 10px;
    max-width: 900px;
    text-align: center;
    margin: auto;
}

.main_p {
    font-size: 25px;
    font-family: Times;
    line-height: 1.6;
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
    padding: 2px 2px;
}

#index_p {
    color:#d3cab6ce;
}

u, em {
    color:#D8CFBC;
}

.guestbook-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.guestbook-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #d6d5d38c;          
  text-align: center;
}

.intro-text {
  text-align: center;
  color: #d8cfbc98;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Form styling */
.note-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-input,
.form-textarea {
  max-width: 100%;
  padding: 0.9rem;
  border: 1px solid #d1d9e0;
  border-radius: 8px;
  font-size: 1rem;
  color:#bbb2a1;
  background-color: #1d1c16;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #635745;    /* Your soft blue accent? */
  box-shadow: 0 0 0 3px rgba(167, 199, 231, 0.2);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.submit-btn {
  align-self: flex-start;
  padding: 0.9rem 1.8rem;
  background-color: #bbb2a1;
  color: #14130e;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: #635745;
}

/* Hide honeypot from humans (bots might fill it) */
.honeypot {
  display: none;
}

/* Extra breathing room before footer */
.guestbook-section {
  margin-bottom: 4rem;     /* Prevents footer overlap/crowding */
}


.grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px);
    padding: 10px 10px;
    gap: 1rem;
    justify-content: center; 
    grid-auto-flow: dense;
    
}

.grid-item-small,
.grid-item-large {
    background: #1d1c16;
    border-radius: 1rem;
    height: 350px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.grid-item-small {
    flex: 0 1 300px;
    min-width: 200px;
    max-width: 300px;
}

.grid-item-large {
    flex: 1 1 100%;
    width: 100%;
}

.grid-item-small img,
.grid-item-large img{
    width: 100%;
    height: 80%;
    border-radius: 1rem;
    object-fit: contain;
    object-position: center;


}

.grid-text {
    font-weight: bold;
    margin: 30px;
    text-align: left;
    left: auto;
    color: #D8CFBC;
    opacity: 0.7;
    transition: opacity 0.5s ease-in-out;
}

.grid-item-small:hover,
.grid-item-large:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgb(29, 28, 28);
}

.hover-text{
    position: absolute;
    left: 5%;
    width: 90%;
    color: #D8CFBC;
    opacity: 0;
    visibility: hidden;
    z-index: 11;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

.blog-grid-title {
    position: absolute;
    font-family: 'Times New Roman', Times, serif;
    bottom: 10%;
    text-align:left;
    left: 5%;
}
.blog-grid-date {
    position: absolute;
    bottom: 3%;
    left: 5%;
    text-align: left;
    opacity: 0.7;
}

/* large screens */
@media (min-width: 1000px) {
    .island_nav{
        margin-left: 50px
    }
    
    .grid{
        grid-template-columns: repeat(3, 300px);
        max-width: 1000px;
        margin: 0 auto;
    }

    .grid-item-small {
        grid-column: span 1;
        width: 100%;
        max-width: 500px;
        min-width: unset;
    }


     .grid-item-large {
        grid-column: span 2;
    }

    .tap-hint {
        display: none;
        visibility: hidden;
    }

    .grid-item-small:hover img, 
    .grid-item-small:hover .grid-text,
    .grid-item-small:hover .blog-grid-title,
    .grid-item-small:hover .blog-grid-date,
    .grid-item-large:hover img,
    .grid-item-large:hover .grid-text,
    .grid-item-large:hover .blog-grid-title,
    .grid-item-large:hover .blog-grid-date{
        opacity: 0;
        transition: opacity 0.5s ease-in-out !important;
    }
    
    .grid-item-small:hover .hover-text,
    .grid-item-large:hover .hover-text {
        opacity: 1;
        visibility: visible;

    }
}

/* mobile/tablet - cards stack */
@media (max-width: 999px) {
    .island_nav{
        margin-left: 50px
    }

    .grid{
        grid-template-columns: 1fr;
        padding: 10px 20px;
        justify-items: center;
    }
    
    
    .grid-item-small {
        grid-column: span 1;
        width: 100%;
        max-width: 500px;
        min-width: unset;
    }

    .grid-item-large {
        grid-column: span 1;
        max-width: 500px;
        min-width: unset;
    }


    .grid-item-small.clicked img, 
    .grid-item-small.clicked .grid-text,
    .grid-item-small.clicked .blog-grid-title,
    .grid-item-small.clicked .blog-grid-date,
    .grid-item-large.clicked img,
    .grid-item-large.clicked .grid-text,
    .grid-item-large.clicked .blog-grid-title,
    .grid-item-large.clicked .blog-grid-date{ 
        opacity: 0 !important;
        transition: opacity 0.5s ease-in-out !important;

    }

    .grid-item-small.clicked .hover-text,
    .grid-item-large.clicked .hover-text {
        opacity: 1;
        visibility: visible;


    }
    
    .grid-item-small.clicked .tap-hint,
    .grid-item-large.clicked .tap-hint {
        display: none;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}


.tap-hint {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #D8CFBC;
    font-size: 0.85rem;
    font-weight: bold;
    animation: pulse 2s infinite;
    z-index: 10;
}

.in_progress {
    border: 5px solid #bbb2a1;
    margin-top: 50px;
    max-width: 100%;
    max-height: 100%;
}

.socials_links {
    width: 45px;
    height: 40px;
    margin: 10px;
    transition: transform 0.3s ease;
}

#instagram_link {
    width: 50px;
    height: 40px;
}
.socials_links:hover {
    transform: scale(1.2);
}