@font-face {
    font-family:'Nimbus Mono';
    src: url(nimbusmono-regular.otf) format('OpenType');
}

@import url('https://fonts.cdnfonts.com/css/microsoft-sans-serif');

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

body {
    background-image: url(media/bgnew.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-color: hsl(201, 26%, 13%);
    font-family: 'Microsoft Sans Serif', sans-serif;    
}
#maincontent {    
    display: flex;
    flex-direction: column;
    padding: 30px;
    
    width: 90%; 
    max-width: 800px; 
    height: fit-content;
    
    margin: 220px auto 40px auto; 
    
    position: relative; 
    overflow: visible;  }
.box {
    background-color: rgb(24, 35, 41);
    border: clamp(3px, 1vw, 8px) inset rgb(70, 93, 109);
}
.card-container {
    display: block; 
    width: 100%;
    height: 120px; 
    position: relative; 
    margin-bottom: 20px; 
}
.logo {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: -40px auto; 
}
.chibi-character {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
    position: absolute;       
    bottom: 0px;             
    left: 35%;                 
    transform: translateX(-50%); 
    z-index: 10;               
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    animation: sway 3s steps(1, end) infinite;
  transform-origin: center;
}
@keyframes sway {
  0% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
  100% { transform: rotate(-5deg); }
}

.text-content {
    width: 100%;
}
.guestbook-container {
    width: 100%;
    height: 380px;
    border: 1px solid #2e3c42;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    background: transparent;
}
.guestbook-frame {
    width: 125%;              
    height: 125%;             
    border: none;
    transform: scale(0.8);
    transform-origin: 0 0;
}
.textstyle, .links.textstyle a {
    color: rgb(255, 255, 255);
    margin: 20px 2%;     
    font-size: clamp(16px, 1.2vw, 20px); 
    line-height: 1.5;       
    font-style: normal;
}
.links.textstyle a {margin: 20px 0.5%; }
.textstyle em, 
.textstyle i, 
.textstyle strong, 
.textstyle b, 
.textstyle cite {
    font-style: normal !important;
    font-weight: normal !important;
}
nav a, nav span{color:rgb(187, 189, 199); font-size: clamp(14px, 2vw, 20px); margin: 20px 2%;}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
  gap: 12px;
  margin-top: 10px;
}
.card {
  display: flex;
  flex-direction: column;
  background: #181a1b; 
  border: 1px solid #2d3135;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #e8e6e3;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-3px) scale(1.3);
  border-color: #539bf5;
}
.card-thumb {
  width: 100%;
  height: 110px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #2b2e33;}
.card-title {
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.3;
  word-break: break-word;
}