@import url('https://fonts.googleapis.com/css2?family=Finlandica+Headline:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --font: "Finlandica Headline", sans-serif;
}

* {
    font-family: var(--font);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    background-color: #1A1A1A;
    overflow-x:hidden;
}
body{
    background-image: url('images/Untitled design.svg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    padding-top: 60px; 
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    /* for making the nav bar not hide the text box */
}


.about-section{
    width: 100%;
    max-width: 640px;
    margin: 40px auto;
    padding: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    text-align: center;

}
.about-section h2{
    font-size: 24px;
    font-weight: 800;
    margin-bottom:1.5rem;
}
.about-section p{
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
    opacity: 0.85;
}
.about-section ul{
    list-style: none;
    margin: 16px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.about-section ul li{
    font-size: 14px;
    opacity: 0.85;
    color: white;
}
/* this keeps star ahead of the list items  */
.about-section ul li::before{
    content: "✦";
    color: #C11C84;
}
.dump-btn{
    display: inline-block;
    background: #C11C84;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 700;
    color: white;
    font-size: 14px;
    transition: opacity 0.2s;
}

.dump-btn:hover{
    opacity: 0.85;

}
.main-wrapper{
    flex: 1;            
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    width: 100%;
    display: none;

}
/* For the navigation pannel */
.navbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    top: 0;
    z-index: 100;
    width: 100%;
    align-self: stretch;
    height: 65px;
    color: white;
    background: #1A1A1A;
    position:fixed;
}
.nav-thoughtdump{
    display: flex;
    align-items: center;
    gap: 9px;
}
.thought-dump-logo{
    display: flex;
    width: 36px;
    height: 36px;
    margin-right: auto;
}
.thought-dump-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.nav-btn{
    margin-left: auto;
    border-radius: 15px;
    color: white;
    background-color: #C11C84;
    border-radius: 1px solid black;
    padding: 6px 3px;
    cursor: pointer;
    margin-right: 5px;
    transition: background 2s;
}
.nav-btn:hover{
    background: #a5347b;
}
.nav-links{
    display: flex;
    gap: 24px;
    align-items: center;
    margin-left: auto;
    margin-right: 16px;
    
}
.nav-links a{
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.75;
    transition: color 0.2s;
}
.nav-links,.navii:hover{
    color: #C11C84;
}
.main-container{
    width: 400px;
    height: 600px;
    padding: 12px;
    border: 1px solid pink;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color:pink;
    margin: 20px;
    border-radius: 20px;


}
header h1 {
    font-size: 25px;
    text-align: center;
    font-weight: 800;
    background: #1A1A1A;
    color: white;
    border: 1px solid white;
    border-radius: 16px;
    padding: 8px;
}
.writting-place textarea, .your-email input{
    width: 100%;
    padding: 8px;
}
.your-email {
    margin: 10px;
}
.your-email input{
    text-align: center;
    border: 1px solid black;
    border-radius: 10px;
}
.writting-place{
    display: flex;
    flex-direction: row;
    flex: 1;
    padding: 12px;
    
}
#user-thought{
    border-radius: 15px;
    resize: none;
    padding: 12px;
    border: 1px solid black ;
}
.send-btn{
    padding: 5px;
    width: auto; 
    margin-left: auto;
    margin-right:12px;
    border-radius: 14px;
    border: 1px solid pink;
    background: #1A1A1A;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px 12px;
    
}
.attachment{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    margin-bottom: 8px;
}
.attachment i{
    color: #1A1A1A;
    font-size: 16px;
}
.attachment input [type="file"]{
    cursor: pointer;
    font-size: 12px;
    width: 100%;
}








.footer{
    background:#1A1A1A;
    width: 100%;
    align-self: stretch;
    margin-top: auto;
    color: white;
    padding: 32px 24px 0 24px;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    padding-bottom: 0;

}
.footer-top{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom:24px;
    gap: 48px;
}
.footer-dumper{
    display: flex;
    flex-direction: row;
    gap: 48px;
    flex: 1;
}
.footer-dumper-row{
    display: flex;
    gap: 12px;
    flex-direction: column;
    max-width: 260px;
}
.footer-logo{
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: flex;
}
.footer-name{
    color: white;
    font-size: 15px;
    font-weight: 700;
}
.footer-description{
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    max-width: 220px;
    line-height: 1.1;
}
.footer-links{
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 180px;
    margin-left: auto;
}
.footer-links h4{
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}
.footer-links a{
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover{
    color: #C11C84;
}
.footer-end{
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    margin-bottom: 0;
}


/* for the light mode in the website  */
body.light-mode{
    background-image:url(images/thoughtdump-logo-light.svg);
    background-color:#f5f5f5;
}
body.light-mode .navbar{
    background: #1a1a1a;
    border-bottom: none;

}
body.light-mode .about-section h2{
    color: #1A1A1A;
}
body.light-mode .about-section ul li , body.light-mode .about-section p {
    color: #1A1A1A;
    font-weight: 800;
}
body.light-mode .about-section {
    background:  rgba(193, 28, 132, 0.1);
    color: #1A1A1A;
    border: 1px solid rgba(193, 28,132, 0.2);
}

body.light-mode .footer{
    background: #1A1A1A;
    color: white;
}
body.light-mode .footer-description,
body.light-mode .footer-links a,
body.light-mode .footer-end {
    color: white;
}

body.light-mode .footer-name {
    color: white;
}

@media (max-width: 600px) {
    .navbar {
        display: grid;
        grid-template-columns: 1fr auto 1fr; /* left / center / right — right stays empty to balance */
        align-items: center;
        height: 56px;
        padding: 0 12px;
    }

    .nav-btn {
        justify-self: start;
        font-size: 8px;
        border: none;
        padding: 3px 5px;
        margin-left: 0;
        
    }

    .nav-thoughtdump {
        grid-column: 2;
        justify-self: center;
        margin-left: 0;
        gap: 6px;
    }

    .thought-dump-logo {
        width: 60px;
        height: 60px;
    }

    .nav-title {
        font-size: 20px;
        margin-right: 10px;
    }

    /* hide these on mobile */
    .nav-links {
        display: none;
    }

    body {
        padding-top: 70px;
    }
    /* footer ko responsiveness */
    .footer-top {
        flex-direction: column;
        gap: 24px;
    }

    .footer-dumper {
        gap: 60px;
    }

    .footer-links {
        margin-left: 0;
        text-align: center;
        min-width: 0;
    }
}