@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

body {
    font-family: 'Inter', sans-serif;
    color: #272727;
}

.banner-text {
    text-align: center;
    margin-top: 2rem;
    letter-spacing: 0.9px;
    max-width: 33rem;
    margin-left: auto;
    margin-right: auto;
}

#header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap:2rem;
    margin-top:3rem;
}

#title {
    font-size:2rem;
}

#pfp-container{
    width:8rem;
}

img{
    width:100%;
    height:100%;
    object-fit: fill;
}

#text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap:1rem;
}

#main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap:2rem;
    margin-top:3rem;
    max-width:33rem;
    margin-left:auto;
    margin-right:auto;
    letter-spacing: 0.9px;
}

#links {
    display: flex;
    flex-direction: row;
    gap:9rem;
}

#links a:hover{
    color: #3098e7;
    cursor: pointer;
}

#links a.active{
    color: #3098e7;
}

#main-content a {
    color: #525252;
    text-decoration: underline;
}

#main-content a:hover {
    color: #353535;
    cursor: pointer;
}

#description {
    color:#3098e7;
}

ul {
    padding-left:1.5rem;
}

li {
    margin-top:0.25rem;
    margin-bottom:0.25rem;
}

.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
    transition: 0.3s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container:hover .overlay {
    opacity: 1;
    cursor: text;
}

.overlay-text {
    color: white;
    text-align: center;
    padding: 1rem;
}

.carousel {
    position: relative;
    width: 100%;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }

.carousel-caption {
    display: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.carousel-dots .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
}

.carousel-dots .dot.active {
    background: #272727;
}

footer {
    margin-top: 4rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e0e0e0;
}

#footer-content {
    text-align: center;
    color: #8a8a8a;
    font-size: 0.75rem;
}

@media screen and (max-width: 768px) {
    body {
        padding: 0 1rem;
    }

    .banner-text {
        margin-top: 1.5rem;
        font-size: 0.95rem;
        padding: 0 1rem;
        max-width: 100%;
    }

    #header {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    #pfp-container {
        width: 7rem;
    }

    #text-content {
        align-items: center;
        text-align: center;
    }

    #title {
        font-size: 1.5rem;
    }

    #description {
        font-size: 0.9rem;
        color: #3098e7;
    }

    #main-content {
        margin-top: 2rem;
        gap: 1.5rem;
        max-width: 100%;
        padding: 0;
    }

    #links {
        gap: 2rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    #links a {
        font-size: 0.95rem;
    }

    .overlay-text {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    /* No hover on touch devices, so show the caption as its own block instead */
    .overlay {
        display: none;
    }

    .carousel-caption {
        display: block;
        margin-top: 0.75rem;
        padding: 0 0.5rem;
        text-align: center;
        font-size: 0.85rem;
        line-height: 1.4;
        color: #272727;
    }

    .carousel-dots {
        margin-top: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .banner-text {
        margin-top: 1rem;
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }

    #header {
        margin-top: 1.5rem;
        gap: 1rem;
    }

    #pfp-container {
        width: 6rem;
    }

    #title {
        font-size: 1.25rem;
    }

    #description {
        font-size: 0.85rem;
        color: #3098e7;
    }

    #links {
        gap: 1.5rem;
    }

    #links a {
        font-size: 0.9rem;
    }

    #main-content {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .overlay-text {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .carousel-caption {
        font-size: 0.8rem;
    }
}