* {
    margin: 0;
    padding: 0;
    font-family: "ヒラギノ角ゴ ProN W3","HiraKakuProN-W3","ヒラギノ角ゴ Pro W3","HiraKakuPro-W3","メイリオ",Meiryo,"ＭＳ Ｐゴシック","MS Pgothic","Osaka",sans-serif,Helvetica, Helvetica Neue, Arial, Verdana;
}

body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
}

header {
    position: absolute;
    top: 0;
    text-align: center;
    font-size: 5em;
    width: 100%;
    height: 100px;
    border-bottom: 2px solid;
}

.main {
    position: relative;
    top: 100px;
    background: rgb(220,240,245);
    display: flex;
    width: min(90%, 700px);
    height: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
}

section {
    display: grid;
    grid-template-columns: 180px auto auto;
    grid-template-rows: auto;
    grid-template-areas:
    "pfp header header"
    "pfp channels channels"
    "pfp channels channels";
    background: white;
    width: 90%;
    height: 200px;
    padding-top: 10px;
}


.name {
    grid-area: header;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 90%;
    text-align: center;
}

.pfp {
    grid-area: pfp;
    border-radius: 50%;
    margin-left: 10px;
    height: 180px;
    width: 180px;
}

.channels {
    grid-area: channels;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: center;
    gap: 5px;
}

.channel {
    margin-left: 10px;
    width: 200px;
    height: 40px;
    background: red;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
}

.channel:hover {
    color: white;
}

@media (width <= 960px) {

    section {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
        "pfp"
        "header"
        "channels";
        height: 100%;
        justify-items: center;
        gap: 10px;
        padding-bottom: 10px;
    }

    .channel {
        width: 150px;
        height: 40px;
    }
}
