@import url('https://fonts.googleapis.com/css2?family=Kdam+Thmor+Pro&display=swap');
html {
    font-size: 16px;
}

body {
    position: relative;
    font-family: "Kdam Thmor Pro";
    font-weight: 400;
    color: #001D52;
    margin: 0;
    background-image: url("../assets/wallpaper.png");
    background-repeat: no-repeat;
    background-size: cover;
    overflow-y: auto;
    overflow-x: hidden;
}

#main {
    display: grid;
    grid-template-columns: 30% 70%;
    grid-template-areas: "left" "right";
    height: fit-content;
    padding: 16px;
}

#main-popup {
    width: calc(100% - 32px - 100px);
    margin: 64px auto;
}

#left {
    grid-area: "left";
    background-color: #D9D9D9;
    margin-right: 16px;
    padding: 0 16px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

#left h3, p {
    margin-left: 18px;
}

.my {
    width: 100%;
}

#pp {
    width: 282px;
    height: 282px;
    margin: 0 calc((100% - 282px) / 2);
}

#right {
    grid-area: "right";
    background-color: #D9D9D9;
    padding: 0 16px;
}

.pub {
    width: calc(100% - 32px);
    margin: 8px 16px;
}

a:hover {
    color: #001D52;
}

@media screen and (max-width: 600px) {
    html {
        font-size: 12px;
    }
    body {
        background-image: url("../assets/wallpaper_phone_webp.png");
        min-width: 100%;
        background-repeat: repeat;
        background-size: 100%;
    }

    header {
        flex-direction: column;
        align-items: center;
        height: fit-content;
        width: 100%;
        padding: 12px 0;
        text-align: center;
    }

    #date {
        position: static;
        margin-top: 6px;
    }

    #main-popup {
        width: calc(100% - 48px);
        margin: 32px 24px;
    }

    #main {
        display: flex;
        flex-direction: column;
    }

    #left {
        margin-right: 0;
        margin-bottom: 16px;
    }

    #pp {
        width: calc(100% - 24px);
        height: calc(100% - 24px);
        padding: 0 12px;
        margin: 0;
    }

    .pub {
        width: 100%;
        margin: 0;
    }
}