* {
    margin: 0;
    padding: 0;
    cursor: default;
    box-sizing: border-box;
}

@media only screen and (max-width : 1250px) {
    #Footer_About {
        display: none !important;
    }
}

@media only screen and (max-width : 767px) {
    #Footer_Brand {
        display: none !important;
    }
}

:root,
:host {
    --md-elevation-0: none;
    --md-elevation-1: 0 1px 1px 0 rgba(0, 0, 0, 0.14),
        0 2px 1px -1px rgba(0, 0, 0, 0.12),
        0 1px 3px 0 rgba(0, 0, 0, 0.20);
    --md-elevation-2: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
        0 3px 1px -2px rgba(0, 0, 0, 0.12),
        0 1px 5px 0 rgba(0, 0, 0, 0.20);
    --md-elevation-3: 0 3px 4px 0 rgba(0, 0, 0, 0.14),
        0 3px 3px -2px rgba(0, 0, 0, 0.12),
        0 1px 8px 0 rgba(0, 0, 0, 0.20);
    --md-elevation-4: 0 4px 5px 0 rgba(0, 0, 0, 0.14),
        0 1px 10px 0 rgba(0, 0, 0, 0.12),
        0 2px 4px -1px rgba(0, 0, 0, 0.20);
    --md-elevation-5: 0 6px 10px 0 rgba(0, 0, 0, 0.14),
        0 1px 18px 0 rgba(0, 0, 0, 0.12),
        0 3px 5px -1px rgba(0, 0, 0, 0.20);
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    height: auto;
    padding-top: 60px;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    background-color: var(--md-sys-color-background);
}

.md-elevation-0 {
    box-shadow: var(--md-elevation-0);
}

.md-elevation-1 {
    box-shadow: var(--md-elevation-1);
}

.md-elevation-2 {
    box-shadow: var(--md-elevation-2);
}

.md-elevation-3 {
    box-shadow: var(--md-elevation-3);
}

.md-elevation-4 {
    box-shadow: var(--md-elevation-4);
}

.md-elevation-5 {
    box-shadow: var(--md-elevation-5);
}

md-filled-tonal-button,
md-filled-button,
md-checkbox,
nav ul li,
a[href] *,
a[href] {
    cursor: pointer !important;
}

h1,
h2,
h3,
h4,
h5 {
    padding: 15px 0px;
}

header {
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    display: flex;
    position: fixed;
    padding: 40px 3%;
    align-items: center;
    justify-content: space-between;
    background-color: var(--md-sys-color-background);
}

#Logo-Home a {
    font-size: 35px;
    padding: 5px 10px;
    font-weight: bold;
    text-decoration: none;
}

.menu {
    gap: 20px;
    display: flex;
    display: flex;
    padding-left: 0;
    align-items: center;
    list-style-type: none;
}

.menu li {
    padding: 5px 10px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu li::after {
    left: 0;
    width: 0;
    bottom: 0;
    height: 2px;
    content: '';
    position: absolute;
    transition: width 0.3s ease;
    background-color: var(--md-sys-color-on-surface);
}

.menu li:hover::after {
    width: 100%;
}

.menu li.active::after {
    width: 100%;
}

.menu li a {
    text-decoration: none;
}

.title {
    display: flex;
    text-align: center;
    justify-content: center;
}

main {
    flex: 1;
    padding: 20px 3%;
}

.mainframe {
    margin: 0 auto;
    max-width: 1200px;
    padding-top: 50px;
}

.container-grid {
    display: grid;
    padding-bottom: 85px;
}

.container-grid-columns {
    gap: 20px;
    display: grid;
    padding-bottom: 85px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

md-card {
    --md-card-container-shape: 16px;
    --md-card-container-color: var(--md-sys-color-surface-container);
    --md-card-outline-color: var(--md-sys-color-outline);

    display: block;
    border-radius: var(--md-card-container-shape);
    background-color: var(--md-card-container-color);
    overflow: hidden;
}

md-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 0;
}

md-card-header ::slotted([slot="headline"]) {
    margin: 0;
}

md-card-header ::slotted([slot="subhead"]) {
    margin: 0;
}

md-card-content {
    display: block;
    padding: 16px;
}

md-card[outlined] {
    box-shadow: none;
    border: 1px solid var(--md-card-outline-color);
}

md-card[filled] {
    --md-card-container-color: var(--md-sys-color-surface-container-highest);
}

form {
    display: flex;
    flex-direction: column;
}

form>* {
    padding: 20px 0px;
}

#form-submit {
    margin: 10px 0;
    padding: 12px;
    max-width: 120px;
}

/* Blurred curtain covering the entire screen */
.curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;

    /* Fallback for browsers without backdrop-filter */
    background-color: rgba(0, 0, 0, 0.5);

    /* Modern blur effect */
    @supports (backdrop-filter: blur(5px)) or (-webkit-backdrop-filter: blur(5px)) {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        background-color: rgba(0, 0, 0, 0.3);
    }

    /* Center modal even when scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

/* Scrollable modal */
.modal {
    width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    background: white;
    border-radius: 16px;
    animation: fadeIn 0.3s ease-out;
}

/* Optional: Style scrollbar (modern browsers) */
.modal::-webkit-scrollbar {
    width: 8px;
}

.modal::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

#terms-cls-btn {
    width: 120px;
    margin: 10px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.squiggle {
    padding: 3%;
}

footer {
    display: flex;
    padding: 40px 15%;
    justify-content: space-between;
}