/* Base styles */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
}

.container {
    max-width: 900px;
    margin: 50px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
   
}

.language-toggle {
    text-align: right;
    margin-bottom: 20px;
}

.language-toggle button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.language-toggle button:hover {
    background-color: #45a049;
}

.controls label {
    display: block;
    margin-bottom: 8px;
}

.controls select,
.controls input[type="checkbox"] {
    margin-bottom: 15px;
}


#generateButton {
    background-color: #008CBA;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    font-size: 14px;
    margin-bottom: 10px;
    /* 添加底部间距 */
}


.separator {
    clear: both;
    border-top: 1px solid #ccc;
    margin-top: 90px;
    margin-bottom: 20px;
}

#generateButton:hover {
    background-color: #0077a3;
}

.history {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.historyTitle {
    margin-bottom: 10px;
}

#clearHistoryButton {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    float: right;
    align-self: flex-end;/
}


#clearHistoryButton:hover {
    background-color: #d32f2f;
}


@media only screen and (max-width: 768px) {
    .container {
        max-width: 90%;
        margin: 30px auto;
        padding: 15px;
    }
}

@media only screen and (max-width: 480px) {
    .controls label {
        font-size: 14px;
    }

    .controls select,
    .controls input[type="checkbox"] {
        margin-bottom: 10px;
    }

    #generateButton,
    #clearHistoryButton {
        padding: 8px 16px;
        font-size: 14px;
    }
}


#lengthLabel {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}


#length {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
 
}



#lowercaseLabel,
#uppercaseLabel {
    display: inline-block;
    width: 25%;
    margin-bottom: 8px;
    font-weight: bold;
}


#lowercase,
#uppercase {
    display: inline-block;
    width: auto;
    margin-right: 10px;
}


#numbersLabel,
#symbolsLabel {
    display: inline-block;
    width: 25%;
    margin-bottom: 8px;
    font-weight: bold;
}


#numbers,
#symbols {
    display: inline-block;
    width: auto;
    margin-right: 10px;
}


.history-divider {
    border-top: 1px solid #ccc;
    margin-top: 20px;
    margin-bottom: 20px;
}


.history-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}


.history-item span {
    flex-grow: 1;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-right: 10px;
    font-weight: bold;
    font-family: "San Francisco", Arial, sans-serif;
}


.history-item button {
    background-color: #008CBA;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.history-item button:hover {
    background-color: #005f77;
}


.history-item button+button {
    margin-left: 5px;
}


footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #f2f2f2;
    text-align: center;
}

.footer .copyright {
    margin: 0 auto;
    width: fit-content;
}

a {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

