* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', san-serif;
    font-style: normal;
    min-height: 100vh;
    background: #f5f5f5;;
    color: #7c859f;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    gap: 20px;
}


button,
.first {
    font-family: "Fugaz One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: #ffffff;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.gradient {
    background: linear-gradient(#3730a3, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px;
}

.headerContainer,
.footerContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.headerContainer h1 {
    font-family: "Fugaz One", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 42px;
    margin: 0;
}

.headerContainer p {
    color: #000000;
}

.headerContainer a,
.addKey {
    color: #ffffff;
    font-size: 0.9rem;
    text-decoration: none;
    background: #6366f1;
    border-radius: calc(infinity * 1px);
    padding: 8px 24px;
    gap: 8px;
    display: flex;
    align-items: center;
    text-align: center;
    border: none;
}

.addKey {
    width: fit-content;
    margin-top: 10px;
    cursor: pointer;
}

.headerContainer a:hover,
.addKey:hover {
    background: #a5b4fc;
}

.quoteContainer {
    display: flex;
    gap: 10px;
}

.quote-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-left: 5px solid #667eea;
    padding: 30px;
    /* margin-bottom: 30px; */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

#quoteTextDisplay {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.5;
    font-style: italic;
    position: relative;
    z-index: 1;
}
#quoteAuthorDisplay {
    font-size: 16px;
    color: #667eea;
    text-align: right;
    font-weight: 600;
    margin-bottom: 5px;
}
#quoteAreaDisplay {
    font-size: 14px;
    color: #7f8c8d;
    text-align: right;
    font-style: italic;
}

.subHeader {
    /* color: #475569; */
    color:#000000;
    font-size: 1.3rem;
}

.info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}

.info h3,
.info p,
.preMsg {
    font-size: 1rem;
    font-weight: 500;
}

.info h3 {
    color: #6366f1;
    font-weight: 500;
}

.info i {
    cursor: pointer;
}

.info i:hover {
    opacity: 0.9;
}

.info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.errMsg,
.errSubMsg {
    color: #ef4444;
    display: none;
}

.subMsg {
    color: #10b981;
    display: none;
}

.quoteErrMsg {
    color: #ef4444;
    display: none;
}

.quoteSubMsg {
    color: #10b981;
    display: none;
}

.keyInput {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}

.keyInput input:focus-within,
.quoteSubmission input:focus-within {
    border-color: #6366f1;
}

.keyInput input,
.quoteSubmission input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px;
    color: #000000;
    border: 2px solid #a5b4fc;
    border-radius: 14px;
}

.quoteSubmission {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
    border-radius: 14px;
}

.endpoint {
    background: #ecf0f1;
    padding: 15px;
    margin: 8px 20px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.method {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 10px;
}

.endpoint strong { color: #2c3e50; }
.post { background: #2ecc71; color: white; }
.get { background: #3498db; color: white; }
.back-link:hover { text-decoration: underline; }

.bmaccontainer,
.footerContainer {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    font-size: 1.3rem;
    padding: 10px;
}

.bmaccontainer a:hover,
.footerContainer a:hover {
    color: #a5b4fc;
    opacity: 0.9;
}

@media (min-width: 700px){
    .container {
        gap: 20px;
    }

    .headerContainer a {
        font-size: 1rem;
    }

    .quoteContainer{
        text-wrap: balance;
    }

    .subHeader {
        font-size: 1.8rem;
    }

    .info {
        /* text-wrap: balance; */
        gap: 16px;
    }

    .info h3,
    .info p {
        font-size: 1rem;
    }
}
