* {
    box-sizing: border-box;
}

body {
    font-family: 'PoppinsLight', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #507dbc;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
}

header,
footer {
    /* background-color: #ffffff; */
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
    /* max-width: 1100px; */
}

footer {
    color: #507dbc;
}

main {
    width: 100%;
    /* max-width: 1100px; */
    padding: 20px;
    background-color: #ffffff;
    display: flex;
}

#left {
    flex: 0.3;
    background-color: azure;
    margin: 10px;
    display: none;
}

#right {
    flex: 1;
    margin: 10px;
}

#header-section,
#input-section,
.content-part {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

#text-input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
    margin-top: 10px;
    border: 1px solid #507dbc;
    font-size: 16px;
    outline: none;
}

#header-section {
    display: flex;
    align-items: baseline;
    background-color: white;
}

@media (max-width: 600px) {
    main {
        padding: 10px;
    }

    #header-section,
    #input-section,
    .content-part {
        padding: 10px;
    }

    #text-input,
    button {
        padding: 5px 10px;
    }

    #header-section {
        display: flex;
        flex-direction: column;
    }

    #header-section h2 {
        font-size: 20px;
    }

}



h2 {
    font-size: 24px;
    color: #0f3c4c;
    margin-bottom: 20px;
    font-family: 'PoppinsLight', Tahoma, Geneva, Verdana, sans-serif;
}

.action-button {
    background-color: #507dbc;
    font-family: 'PoppinsLight', Tahoma, Geneva, Verdana, sans-serif;
    border: none;
    color: whitesmoke;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    margin: 10px 2px;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.5s ease;
    display: inline;
}

.action-button:hover:enabled {
    background-color: #0b53b8;
}

#header-section h2 {
    flex: 0.35;
    padding: 5px;
}

#header-section .action-button {
    padding: 12px;
}

@keyframes loading {
    0% {
        opacity: .2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: .2;
    }
}

.loading-button {
    padding: 15px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    color: #fff;
    background-color: #507dbc;
}

.loading-button span {
    opacity: .9;
    animation: loading 1.4s infinite;
    font-size: 15px;
}

.loading-button span:nth-child(2) {
    animation-delay: .2s;
}

.loading-button span:nth-child(3) {
    animation-delay: .4s;
}

.waiting {
    font-size: 20px;
    opacity: .2;
    animation: loading 1.4s infinite;
}

.waiting :nth-child(2) {
    animation-delay: .2s;
}

.waiting :nth-child(3) {
    animation-delay: .4s;
}

.content-part .action-button {
    width: 25%;
}

.copyable {
    display: inline;
    /* cursor: grab */
}

.highlight {
    background-color: lightyellow;
}

.highlight-accepted {
    background-color: lightyellow;
}

.highlight-empty {
    border: 2px solid red;
}

.content-part-header {
    display: flex;
    align-items: center;
    background-color: white;
}

.content-part-header h4 {
    margin-right: 10px;
}

.content-part-header .action-button {
    width: 90%;
}

.generated-content {
    background-color: #e8f1ff;
    padding: 15px;
}

#input-section textarea {
    background-color: #e8f1ff;
}
.account-section {
    padding: 20px;
    border-radius: 5px;
}

.bottom-section {
    position: relative;
    bottom: 0;
    width: 100%;
    color: white;
    font-size: 12px;
    margin: none;
    text-align: left;
    padding: 20px;
}

.templates-section {
    padding-top: 20px;
    text-align: left; 
}

.templates-section li {
    list-style-type: square;
    cursor: pointer;
}

 .templates-section i {
    background-color: #507dbc;
    color: whitesmoke;
    padding: 10px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.5s ease;
    display: inline;
    margin-right: 5px;
}

.templates-section p {
    padding-top: 20px;
}

.content-part-footer {
    color: #507dbc;
    font-size: 16px;
}
.hidden {
    display: none;
}

.collapse-btn {
    position: absolute;
    top: 90%;
    left: 50%;
    /* transform: translate(-50%, -50%); */
    background-color: #507dbc;
    color: whitesmoke;
    border-radius: 10px;
}

#thankYouMessage {
    display: none;
    padding: 10px;
    background-color: #507dbc;
    color: #fff;
    border-radius: 5px;
    text-align: center;
    margin: 20px auto;
    /* width: fit-content; */
    transition: all 0.3s ease-in-out;
}

#thankYouMessage.show {
    display: block;
}

.preference-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.preference-selector label {
    color: #507dbc;
    font-size: 14px;
    margin: 0;
}

.toggle-buttons {
    display: flex;
    border: 1px solid #507dbc;
    border-radius: 5px;
    overflow: hidden;
}

.term-toggle {
    padding: 5px 15px;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #507dbc;
}

.term-toggle:hover {
    background-color: #e8f1ff;
}

.term-toggle.active {
    background-color: #507dbc;
    color: white;
}

@media (max-width: 600px) {
    .preference-selector {
        margin: 10px 0;
    }
}
