@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');

.asw-menu {
    font-family: 'Inter';
    position: fixed;
    right: 0px;
    top: 0px;
    box-shadow: 0px 0px 20px #00000080;
    opacity: 1;
    transition: .3s;
    z-index: 1000000;
    overflow: hidden;
    background: #f9f9f9;
    width: 500px;
    line-height: 1;
    font-size: 16px;
    letter-spacing: 0.015em;
    height: 100%;
    color: #000;
    animation-name: slideInRight;
    animation-duration: 0.5s;
    animation-timing-function: ease-out;
}

.asw-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 18px;
    height: 60px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #dedede;
    color: #fff;
    background-color: #419D4A;
}

.asw-menu-header>div {
    display: flex;
}

.asw-menu-header div[role="button"] {
    padding: 12px;
    cursor: pointer;
    color: #000;
}

.asw-menu-header div[role="button"]:hover {
    opacity: 0.8;
    color: #000;
}

.asw-card {
    margin: 0 0px 0px;
}

.asw-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.asw-group {
    padding: 30px 15px;
    border-bottom: 1px solid #ccc;
}

.asw-group.last-group {
    padding: 30px 15px;
    border-bottom: 0px solid #ccc;
}

.asw-group-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.asw-btn {
    aspect-ratio: 6 / 5;
    border-radius: 4px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #333;
    font-size: 16px !important;
    background: #fff;
    border: 1px solid #dedede;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1.4;
}

.asw-btn .asw-translate {
    font-size: 15px !important;
}

.asw-btn .material-symbols-outlined {
    margin-bottom: 16px;
    color: #419D4A;
}

.asw-btn:hover {
    border-color: #419D4A;
    background-color: #419D4A;
    color: white;
}

.asw-btn:hover .material-symbols-outlined {
    color: white;
}


.asw-btn.asw-selected {
    background: #419D4A;
    color: white;
    border-color: #419D4A;
}

.asw-btn.asw-selected .material-symbols-outlined {
    color: #fff;
}

.asw-menu-close .material-symbols-outlined {
    color: white;
}

.size-indicators {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.indicator {
    width: 30px;
    height: 10px;
    margin: 2px;
    background-color: #3e463e;
    border-radius: 5px;
}

.indicator.filled {
    background-color: #fff;
}

.asw-menu-content {
    overflow-y: scroll;
    max-height: calc(100% - 80px);
    padding: 15px 0;
    padding-bottom: 40px;
}

body {
    position: relative;
}

#readingLine {
    position: absolute;
    width: 100%;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    border-top: 2px solid rgba(255, 255, 0, 0.8); 
    border-bottom: 2px solid rgba(255, 255, 0, 0.8); 
    pointer-events: none;
    display: none;
    z-index: 10001;
}

.asw-group {
    margin-top: -20px;
    margin-bottom: 15px;
}

.asw-menu-reset-container {
    position: absolute;
    bottom: 0px;
    width: 100%;
    background: #fff;
    padding: 10px;
    box-sizing: border-box;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.asw-menu-reset {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% - 20px);
    height: 50px;
    background: #419D4A;
    color: #fff;
    font-size: 16px;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.asw-menu-reset:hover {
    background: #357a38;
}


.asw-widget,
.asw-menu {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.asw-widget *,
.asw-menu * {
    box-sizing: border-box;
}

.asw-menu-btn {
    position: fixed;
    z-index: 500000;
    right: 50px;
    bottom: 90px;
    background: #419D4A;
    box-shadow: 0 5px 15px 0 rgb(37 44 97 / 15%), 0 2px 4px 0 rgb(93 100 148 / 20%);
    transition: .3s;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transform: scale(1);
    width: 70px;
    height: 70px;
    display: flex;
    cursor: pointer;
    border: 4px solid white;
    outline: 4px solid #419D4A;
    text-decoration: none;
    animation: breathing-shadow 3s ease-in-out infinite;
}

.notification-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 0px 10px;
    font-size: 16px;
}

.asw-menu-btn:hover {
    transform: scale(1.1);
}

.material-symbols-outlined.md-36.white {
    font-size: 36px;
    color: #f9f9f9;
}

@font-face {
    font-family: 'OpenDyslexic3';
    src: url("https://website-widgets.pages.dev/fonts/OpenDyslexic3-Regular.woff") format("woff"), url("https://website-widgets.pages.dev/fonts/OpenDyslexic3-Regular.ttf") format("truetype");
}

@media only screen and (max-width: 560px) {
    .asw-menu-btn {
        width: 60px;
        height: 60px;
        right: 20px;
        bottom: 20px;
    }

    .asw-menu-btn svg {
        width: 24px;
        height: 24px;
        min-height: 24px;
        min-width: 24px;
        max-width: 24px;
        max-height: 24px;
    }
}

@media only screen and (max-width: 560px) {
    .asw-menu {
        width: 100%;
        height: 100%;
    }

    .notification-number {
        top: -10px;
        padding: 0px 12px;
        font-size: 12px;
    }

    #readingLine {
        height: 0px;
        border-top: 0px;
        border-bottom: 0px;
    }
}

@media only screen and (max-width: 420px) {
    .asw-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .asw-menu {
        width: 100%;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(150%);
        opacity: 0.75;
    }

    70% {
        transform: translateX(-5%);
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes breathing-shadow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
        /* Change shadow color to green */
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }
}