html, body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    text-shadow: 0 .05rem .1rem rgba(0,0,0,.5);
    color: rgb(66,69,86);
    background-image: url('/images/background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-weight: 100;
}

.page-content {
    padding: 20px;
}

h1 {
    margin: 0 0 30px 0;
    font-size: clamp(4rem, 12vw, 8rem);
    line-height: 0.9;
    font-weight: 100;
}

h2 {
    font-weight: 300;
    margin-top: 0;
}

p {
    margin: 0;
    font-size: 1.2rem;
}

button {
    line-height: 2.0;
    border: 2px solid rgba(0,255,204,0.6);
    font-size: 1rem;
    color: rgb(66,69,86);
    padding: 6px 18px;
    background: rgba(255,255,255,0.95);
    border-radius: 6px;
    opacity: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 8px rgba(0,255,204,0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35), 0 0 12px rgba(0,255,204,0.5);
    background: rgba(255,255,255,1);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

input[type=text]:focus {
    outline: none;
}

.feed-container {
    max-width: 800px;
    margin: 0 auto;
}

.photo-card,
.create-post,
.message-box {
    background: rgba(255,255,255,0.88);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    text-shadow: none;
}

.photo-card {
    margin-bottom: 30px;
    overflow: hidden;
    color: rgb(66,69,86);
}

.photo-header {
    padding: 15px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

.photo-image {
    padding: 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: left;
    word-break: break-word;
}

.photo-footer {
    padding: 15px;
    font-size: 0.95rem;
    color: #666;
    text-align: left;
}

.photo-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.like-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.icon-button {
    border: 2px solid rgba(0,255,204,0.5);
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 8px rgba(0,255,204,0.2);
    padding: 0;
    line-height: 1;
}

.icon-button:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2), 0 0 12px rgba(0,255,204,0.4);
}

.icon-button:active {
    transform: translateY(1px);
}

.icon-button.liked {
    background: rgba(0,255,204,0.2);
    border-color: #00ffcc;
    color: #00cc99;
    box-shadow: 0 0 10px rgba(0,255,204,0.6);
}

.section {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: left;
}

.follow-button {
    border: 2px solid #ccc;
    background: white;
    color: #333;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: none;
}

.follow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.follow-button.following {
    border-color: #00ffcc;
    background: rgba(0,255,204,0.15);
    color: #008f73;
    box-shadow: 0 0 10px rgba(0,255,204,0.35);
}

.message-box {
    max-width: 800px;
    margin: 10px auto 20px auto;
    padding: 12px 16px;
    border-radius: 6px;
    background: rgba(0,255,204,0.15);
    color: #00695c;
    border: 1px solid rgba(0,255,204,0.4);
}

.create-post {
    max-width: 800px;
    margin: 0 auto 30px auto;
    padding: 20px;
}

.create-post input[type="text"] {
    width: 70%;
    padding: 10px;
    border: none;
    border-bottom: 2px solid rgba(66,69,86,0.25);
    background: rgba(255,255,255,0.7);
    color: rgb(66,69,86);
    margin-right: 10px;
}

.top-nav {
    margin-bottom: 25px;
}

.top-nav a {
    color: rgb(66,69,86);
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.2rem;
}

.top-nav a:hover {
    text-decoration: underline;
}

.user-bar {
    max-width: 800px;
    margin: 0 auto 15px auto;
    text-align: right;
    font-size: 1rem;
}

.user-bar a {
    color: rgb(66,69,86);
    text-decoration: none;
}

.user-bar a:hover {
    text-decoration: underline;
}

.nav-link {
    text-decoration: none;
    margin: 0 5px;
    color: rgb(66,69,86);
  }
  
  .nav-link:hover {
    text-decoration: underline;
  }
  
  .nav-link.active {
    color: #00cc99;
    font-weight: 400;
    border-bottom: 2px solid #00ffcc;
    padding-bottom: 2px;
  }

  .profile-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
  }
  
  .profile-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,255,204,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 0 6px rgba(0,255,204,0.4);
    transition: all 0.25s ease;
  }
  
  .profile-link:hover .profile-icon {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 0 12px rgba(0,255,204,0.8), 0 0 20px rgba(0,255,204,0.4);
  }
  
  .profile-link:hover {
    color: #00cc99;
  }

  /* PAGINATION */
.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination a {
    display: inline-block;
    margin: 0 6px;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    background: white;
    border: 2px solid rgba(0,255,204,0.4);
    transition: all 0.2s ease;
    box-shadow: 0 0 6px rgba(0,255,204,0.2);
}

.pagination a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2), 0 0 10px rgba(0,255,204,0.4);
}

.pagination a.active {
    background: rgba(0,255,204,0.2);
    border-color: #00ffcc;
    color: #008f73;
    box-shadow: 0 0 10px rgba(0,255,204,0.5);
    font-weight: bold;
}