body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    min-height: 100%;
    background-color: #b8d5bd;
    color: #70a86a;
}

* {
    box-sizing: border-box;
}

body.home-page {
    min-height: 100vh;
    overflow: hidden;
}

#bio-text   {
    display: block;
    color: #707070;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    max-width: 700px;
    text-align: justify;
    text-align-last: start
}

#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
}

#game-ui {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    color: #BFA58A;
    font-family: Arial, sans-serif;
    text-align: right;
    display: none;
}

#game-over {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    text-align: right;
    color: #BFA58A;
    font-family: Arial, sans-serif;
    display: none;
    z-index: 3;
}

#content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    width: min(90vw, 900px);
    max-width: 900px;
    z-index: 2;
    background-color: rgba(207, 219, 209, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

#profile-pic-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
    float: left;
    margin-right: 2rem;
}

#profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #A7B9A5;
    border-radius: 50%;
}

#profile-pic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(207, 219, 209, 0.1);
    border-radius: 50%;
}

h1 {
    color: #8E6E5D;
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    margin-right: 1rem;
}

p {
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #5A6B58;
}

.links {
    margin-bottom: 1.5rem;
    clear: both;
}

.links a {
    margin-right: 15px;
    text-decoration: none;
    color: #A38E7B;
    transition: color 0.3s ease;
    font-size: 1.2rem;
    font-weight: bold;
}

.links a:hover {
    color: #8E6E5D;
}

@media (max-width: 900px) {
    body.home-page {
        overflow-x: hidden;
        overflow-y: auto;
    }

    #content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 7rem auto 2rem;
        padding: 1.25rem;
        width: calc(100vw - 2rem);
        max-width: 38rem;
    }

    #profile-pic-container {
        float: none;
        margin: 0 auto 1.5rem;
    }

    h1 {
        font-size: clamp(1.5rem, 7vw, 1.9rem);
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #bio-text {
        text-align: left;
    }

    p {
        font-size: 1.1rem;
    }

    .links {
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    .links a {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        display: inline-block;
    }
}

@media (max-width: 600px), (hover: none) and (pointer: coarse) {
    #game-controls {
        display: none;
    }
}

#game-controls {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  color: rgba(90, 107, 88, 0.5);
  font-size: 0.9rem;
}

.active-controls {
  display: none;
}

kbd {
  background-color: rgba(248, 249, 250, 0.4);
  border: 1px solid rgba(211, 211, 211, 0.3);
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  padding: 1px 4px;
  margin: 0 2px;
  font-family: monospace;
  font-size: 0.9rem;
  color: rgba(90, 107, 88, 0.6);
}

.spacebar {
  padding: 1px 12px;
}

.arrow-keys {
  display: inline-block;
  margin-right: 6px;
}

.arrow-keys kbd {
  margin: 1px;
  font-size: 0.9rem;
}

.icon {
    width: 24px;
    height: 24px;
    fill: #A38E7B;
    transition: fill 0.3s ease;
}

.links a:hover .icon {
    fill: #8E6E5D;
}

.links {
    display: flex;
    align-items: center;
    gap: 0px;
}

.links a[href="/blog.html"] {
    margin-left: auto;
}

@media (max-width: 900px) {
    .links a[href="/blog.html"] {
        margin-left: 0;
    }
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.feedback-link {
    color: #8E6E5D;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: -1rem;
    font-size: 1em;
}

.feedback-link:hover {
    color: #6c5448;
    text-decoration: underline;
}

.reachout{
    color: #8E6E5D;
    text-decoration: none;
    transition: color 0.3s ease;
    text-decoration: underline;
}

.reachout:hover {
    color: #6c5448;
    
}
