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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}
a {
    text-decoration:none;
    color:navy;
}
a:visited {
    color:#660066;
}
a:hover {
    color:#bb00bb;
}
p {
    margin-bottom: 15px;
}

/* Base styles for header */
header {
    text-align: center;
    background-color: #333;
    background-image: url('img/banner/utopia.jpg');

    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 1rem 0;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    height:300px;
}

/* Styles for larger screens */
header h1 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    text-shadow:0 0 10px #ffd;
    background-image: radial-gradient(ellipse at center, rgba(255, 255, 255, 1.0), rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.1) 65%, rgba(255, 255, 255, 0.0) 90%);
    color: black;
    width:400px;
    text-align:center;
}

header h2, header h3 {
    font-size: 1.5rem;
    margin: 0.3rem 0;
    color: black;
    text-shadow:0 0 10px #ffd;
    background-image: radial-gradient(ellipse at center, rgba(255, 255, 255, 1.0), rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.1) 65%, rgba(255, 255, 255, 0.0) 90%);
    text-align: center;
    justify-content:center;
    line-height: 36px;
    padding:20px 60px;
}

header .note {
    font-size: 1.3rem;
    font-style: italic;
    margin: 0.3rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        height: auto; /* Adjust height to fit content */
        padding: 1rem;
        background-size: contain; /* Ensure background fits well */
        background-repeat: no-repeat;
        background-size:100% 100%;
    }

    header h1 {
        font-size: 2rem;
    }

    header p, header .note {
        font-size: 1rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    header p, header .note {
        font-size: 0.9rem;
        width: 100%;
    }
}

main {
    padding: 1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;

}

.grid-item {
    background-color: #f4f4f4;
    padding: 1rem;
    border: 1px solid #ccc;
    text-align: center;
    border-radius: 8px;
}

.grid-item img {
    width: 100%;
    height: auto;
    margin-bottom: 0;
    border-radius: 5px;
}

.grid-item img .toon {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.subcategories {
    margin-top: 1rem;
}

.subcategories h3 {
    margin-top: 0.5rem;
}

.bio {
    margin-top: 2rem;
    text-align: center;
}

.bio img {
    width: 150px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

@media (min-width: 768px) {
    .story {
      max-width: 80%;
      margin: 0 auto;
    }
  }
  
  @media (min-width: 1200px) {
    .story {
        max-width: 750px;
        margin: 0 auto;
    }
  }

.story {
        font-size: 16px;
        line-height: 1.5;
        padding: 1rem;
        margin-top:15px;
        background-color:#ffffee;         
}
.story img {
    border: 3px solid lightgrey;
}

.poem {
    text-align: left;
    font-size: 12pt;
    font-family:cursive;
}

.toon {
    padding-bottom:0px;
    margin-bottom:0px;
}

.note {
    font-family:cursive;
}
.space {
    background-image: url('img/bg/PIA16610~large.jpg')
}

.extra-space {
    margin-top: 100px;
}

.addBottom {
    margin-bottom:100px;
    max-width:600px;
    margin: 0 auto 100px auto;
}

.grid-item img.qr {
    height:150px;
    width:150px;
}

.bullets {
    text-align: left;
}

.bullets ol {
    padding-left: 0;
    list-style-type: decimal;
    padding: 0 20px 0 20px;
}

.bullets ol li {
    text-align: left;
    padding: 0 20px 0 20px;
}

#sized-logo1, #sized-logo2 {
    object-fit: cover;
    width: 50%;
    height: 50%;
}
#sized-logo3 {
    width:50%;
}
#sized-logo4 {
    width:100px;
}
 .spaced-list {
    line-height:36px;
}
img.square72 {
    height:72px;
    width:72px;
    border:5px solid white;
}
.galleryWrapperKH {
    display:inline-grid;
    column-gap:10px;

    grid-template-columns: auto auto;

}
.galleryWrapperKH 
.company {
    text-align:left;
    border:2px solid white;
    background-color:#cccccc;
}
.grid-container2{
    display: grid;
    column-gap: 10px;
    grid-template-columns: auto auto;
    background-color: #eeeeff;
    padding:10px;
    border-radius:10px;
    border:1px solid #cccccc;
    margin-bottom:20px;
  }
  
  .grid-item {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.8);
    padding: 10px;
    text-align: left;
    vertical-align:emiddle;
  }
  .lessOnTop {
    padding-top:0px;
  }
  .details {
    color:grey;
  }