/* @font-face-Deklarationen für Poppins */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-v24-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-v24-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-v24-latin-700.woff2') format('woff2');
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: black;
}

/* --- Header --- */
.header {
    background-color: white;
    color: rgb(128, 219, 253);
    padding: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    max-width: 840px;
    margin: 0 auto;
}

.header .logo {
    width: 100px;
    margin-right: 20px;
}

.header .title {
    font-size: 2em;
    font-weight: bold;
}

.header .subtitle {
    font-size: 1.2em;
}

/* --- Sections --- */
.section-blue {
    background-color: rgb(128, 219, 253);
    color: white;
    padding: 40px 20px 10px;
    text-align: center;
}

.section-white + .section-blue {
    padding: 40px 20px;
}

.section-blue h1 {
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-weight: 600;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    }
    50% {
        text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.5), 2px 2px 12px rgba(0, 0, 0, 0.3);
    }
}

.section-white {
    background-color: white;
    padding: 40px 20px;
}

.section-white + .section-white {
    padding-top: 0;
}

.section-white p, .section-white h2, .section-white h3, .section-white h4, .section-white ul {
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-white h2 {
    color: rgb(128, 219, 253);
    font-size: 2em;
}

.section-white a {
    color: rgb(128, 219, 253);
    text-decoration: none;
}

.section-white a:hover {
    text-decoration: underline;
}

.section-white ul {
    list-style-position: inside;
}

/* --- Info Box --- */
.info-box {
    background-color: white;
    padding: 20px;
    margin: 20px auto;
    max-width: 840px;
    color: #14171a;
    border-radius: 5px;
}

.info-box a {
    color: rgb(128, 219, 253);
    text-decoration: none;
}

.info-box a:hover {
    text-decoration: underline;
}

.hackathon-logo {
    display: block;
    width: 200px;
    margin: 20px auto 0;
}

/* --- Feed Styles --- */
#feed-container {
    max-width: 840px;
    margin: 10px auto 40px;
    text-align: left;
    border: 1px solid #e1e8ed;
    border-radius: 5px;
}

#feed-container p:only-child {
    text-align: center;
    padding: 20px;
}


.account-info, .tweet {
    background-color: white;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #e1e8ed;
}

.tweet:last-child {
    border-bottom: none;
}

.account-info:hover, .tweet:hover {
    background-color: #f5f8fa;
}

.account-info:hover .account-info-header strong,
.account-info:hover .account-info-text span {
    color: #657786;
}

.account-info {
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: flex-start;
}

.account-info .feed-content {
    flex-direction: column;
}

.account-info-header {
    display: flex;
    align-items: center;
    width: 100%;
}

.account-info-header strong {
    font-size: 1.2em;
    color: #14171a;
    margin-right: 8px;
}

.follow-button img {
    height: 40px;
    width: auto;
}

.account-info-text span {
    font-size: 0.9em;
    color: #14171a;
}

.feed-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.tweet {
    padding-top: 20px;
    padding-bottom: 20px;
}

.tweet .feed-logo {
    width: 40px;
    height: 40px;
}

.feed-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tweet-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 8px;
    margin-bottom: 5px;
}

.tweet-header a {
    text-decoration: none;
}

.tweet-author {
    font-weight: bold;
    color: #14171a;
    white-space: nowrap;
}

.tweet-author a {
    text-decoration: none;
    color: inherit;
}

.tweet-handle {
    color: #657786;
    font-size: 0.85em;
    white-space: nowrap;
}

.tweet-body {
    font-size: 0.95em;
    line-height: 1.4;
    color: #14171a;
    white-space: pre-wrap;
    margin-top: 0;
}

/* --- Progress Bar Styles --- */
#progress-container {
    padding: 20px;
    max-width: 840px;
    margin: 20px auto 0;
    text-align: center;
}

#progress-container p {
    color: rgb(128, 219, 253);
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    background-color: #e1e8ed;
    border-radius: 5px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background-color: rgb(128, 219, 253);
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

.progress-bar-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 20px;
    color: #14171a;
    font-weight: bold;
    z-index: 1;
}

/* --- Footer --- */
.footer {
    background-color: #f2f2f2;
    padding: 15px 20px;
    text-align: center;
}

.footer a {
    color: rgb(128, 219, 253);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* --- Media Queries --- */
@media screen and (max-width: 400px) {
    .tweet-author {
        margin-bottom: 2px;
    }
}
