:root {
    --primary-color: #3276B1;
    --hover-color: #214e75;
    --accent-color: #F5C44F;
    --background-color: #fff;
    --text-color: #3c4a55;
    --modal-bg: rgba(0, 0, 0, 0.4);
    --button-border-radius: 10px;
    --input-border-radius: 4px;
    --box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

html {
    font-size: 100%; /* 16px base font size for responsiveness */
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
}

body {
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    margin: 0;
    padding: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 60%;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.close {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    padding: 1rem;
    background-color: #333;
}

.topnav a {
    color: #f2f2f2;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.topnav .icon {
    display: none;
}

@media screen and (max-width: 600px) {
    .topnav a {
        display: none;
    }
    .topnav a.icon {
        display: block;
        font-size: 1.5rem;
    }
    .topnav.responsive {
        position: relative;
    }
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .topnav.responsive a {
        display: block;
        text-align: left;
    }
}

.tab {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--primary-color);
    border-radius: 5px 5px 0 0;
}

.tab button {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
    text-align: center;
}

.tab button:hover {
    background-color: var(--hover-color);
}

.tab button.active {
    background-color: var(--hover-color);
}

.tabcontent {
    display: none;
    padding: 1rem;
    background-color: #f9f9f9;
    border-top: none;
}

.tabcontent button {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: var(--button-border-radius);
    box-shadow: var(--box-shadow);
}

.tabcontent button:hover {
    background-color: var(--accent-color);
}

.modal input[type="text"],
.modal input[type="password"],
.modal select {
    width: 100%;
    padding: 0.75rem;
    margin: 0.75rem 0;
    border: 1px solid #ccc;
    border-radius: var(--input-border-radius);
    box-sizing: border-box;
    font-size: 1rem;
}

.modal input[type="submit"] {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: var(--input-border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal input[type="submit"]:hover {
    background-color: var(--accent-color);
}

.checklabel {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 1rem;
    font-size: 1rem;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 1px solid #aaa;
    border-radius: var(--input-border-radius);
}

.checklabel:hover input ~ .checkmark {
    background-color: #91BCF6;
}

.checklabel input:checked ~ .checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checklabel input:checked ~ .checkmark:after {
    display: block;
    left: 7px;
    top: 3px;
    width: 3px;
    height: 8px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

textarea {
    width: 100%;
    height: 200px;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--input-border-radius);
    box-sizing: border-box;
    font-size: 1rem;
}

#imgHome {
    width: 100%;
    border: 1px solid #000;
    border-radius: 10px;
}

#btnGenPassword, #btnGenPin {
    font-size: 1rem;
}

#btnPinCopy, #btnPwdCopy {
    display: none;
    padding: 0.5rem;
    font-size: 1rem;
}

@media only screen and (max-width: 990px) {
    .topnav {
        flex-direction: column;
    }

    .tab button {
        font-size: 1.2rem;
        padding: 1.5rem;
    }

    .tabcontent button {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }

    #btnGenPassword, #btnGenPin {
        font-size: 2rem;
    }

    .checklabel {
        font-size: 1.5rem;
    }

    h1, h2, h3 {
        font-size: 2rem;
    }

    #txtAllPass {
        font-size: 1.5rem;
    }
}
