@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap');

:root {
    --primary: #387ADF;
    --primary-hover: #2269D3;
    --primary-active: #1D57AF;
    --text: #FFFFFF;
    --background: #0C0E11;
    --surface-1: #14181D;
    --surface-2: #1B2027;
    --surface-3: #222831;
    --grey: #969696;
    --success: #65B44B;
    --warning: #FF5939;
    --error: #EF403F;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    color: var(--text);
    object-fit: cover;
    font-family: "Noto Sans Thai", sans-serif;
    scroll-behavior: smooth;
    list-style: none;
    transition: all ease .25s;
}

body {
    background-color: var(--background);

}

main {
    height: 100dvh !important;
    position: relative;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
    background-color: var(--surface-1);
    box-shadow: var(--shadow);
    z-index: 99;

    .logo {
        height: 4rem;
        margin-inline: 1rem;
    }

    h1{
        font-size: 40px;
    }

}

.flex {
    display: flex;
    align-items: center;
}

.hamburger {
    background-color: transparent;
    font-size: 1.5rem;
    color: var(--text);
    border: none;
    cursor: pointer;
    font-weight: 700;
}

section {
    padding: 1rem;
    display: grid;
    grid-template-columns: 5.67fr 4.33fr;
    gap: 1rem;
    height: calc(100dvh - 96px);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: none;
    grid-template-columns: 12rem auto;
    height: 100dvh;
    z-index: 99;
    background-color: transparent;
}

.overlay {
    background-color: #0c0e113f;
}

aside {
    display: grid;
    grid-template-columns: 1fr;
    background-color: var(--surface-2);
    overflow-y: scroll;
    box-shadow: var(--shadow);
}

iframe {
    padding: .5rem;
    border-radius: 0.5rem;
    background-color: var(--surface-2);
    width: 100%;
    height: 100%;
    box-shadow: var(--shadow);
}

aside button {
    width: 100%;
    padding: 1rem;
    border: none;
    background-color: var(--surface-2);
    cursor: pointer;
    font-weight: 700;
}

aside button:hover {
    background-color: var(--primary-hover);
    transition: .25s ease-in-out all;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--grey);
}

.active {
    background-color: var(--primary-active);
}
i{
    margin-right: 0.8rem;
    font-size: 1rem;
}