* {
    margin: 0;
}
html {
    width: 100vw;
}
body {
    width: 100vw;
}
@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
header {
    box-sizing: border-box;
    background-color: rgb(246, 248, 250);
    color: rgb(31, 35, 40);
    box-shadow: rgb(209, 217, 224) 0px -1px 0px 0px inset;
    display: block;
    width: 100vw;
    height: 104px;
}
.MenuButton {
    position: relative;
    display: flexbox;
}
button, section div {
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid rgb(209, 217, 224);
    border-radius: 6px;
    padding: 0;
    width: 30px;
    height: 30px;
    display: grid;
    align-content: center;
    justify-content: center;
    box-sizing: content-box;
}
button:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.05);
}

button:active {
    background-color: rgba(0, 0, 0, 0.08);
}
.ButtonMessage {
    font-size: 10pt;
    text-align: center;
    display: none;                                                                                                                                 
    position: absolute; 
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    border-radius: 6px;
    padding: 6px 10px;
    width: max-content;
    height: auto;
    z-index: 1;
}
.HasMessage > *:hover .ButtonMessage, .MenuButton:hover .ButtonMessage {
    animation-name: fadein;
    animation-duration: 0.3s;
    display: block;
}
#IconImage {
    margin-left: 4px;
    width: 30px;
    height: 30px;
}
#GlobalBar {
    width: 100vw;
    height: 54px;
    padding: 16px 16px 8px 16px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#GlobalBar .Left, #GlobalBar .Right {
    display: flex;
    align-items: center;
}
#GlobalBar .Left > * {
    margin-right: 8px;
}
#GlobalBar .Right > * {
    margin-left: 8px;
}
#UserName {
    background-color: rgb(246, 248, 250);
    height: 100%;
    text-decoration-line: none;
}
.MenuButton a > * {
    height: 90%;
    width: 130%;
    line-height: 100%;
    display: block;
    align-content: center;
    border-radius: 6px;
    text-align: center;
    color: black;
    font-weight: 600;
}
#UserName * {
    padding: 6px 0;
    text-decoration-line: none;
}
#Pighub *, #Profile a div {
    border-radius: 100px;
}
.MenuButton a *:hover {
    background-color: rgb(226, 228, 230);
}
#Profile a div {
    width: 30px;
    height: 30px;
    background-image: url("");
    background-size: contain;
    border: 1px solid rgb(209, 217, 224);
}
.VerticalLine {
    width: 1px;
    height: 20px;
    background-color: rgb(209, 217, 224);
    margin: 6px 2px;
}
#Search:hover {
    background-color: rgba(0, 0, 0, 0);
}
#LocalBar {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 16px;
    display: flex;
    align-items: center;
}
.MenuButton2 {
    width: auto;
    line-height: 200%;
    padding: 0 8px;
    margin-right: 8px;
    border-radius: 6px;
}
.MenuButton2 a {
    display: flex;
    align-items: center;
    color: rgb(31, 35, 40);
    text-decoration: none;
}
.MenuButton2 a svg {
    margin-right: 8px;
}
.MenuButton2:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
#Container {
    margin: 8px 80px 0 80px;
    padding: 0 32px;
    display: flex;
    grid-column-gap: 16px;
}
#ProfileCard {
    width: 296px;
    height: auto;
}
#ProfileCardImage {
    margin-top: 32px;
    width: 296px;
    height: 296px;
    border-radius: 198px;
    background-image: url("");
    background-size: contain;
    border: 1px solid rgb(209, 217, 224);
}
#ProfileCard {
    display: inline-block;
    width: 296px;
    height: auto;
}
#ProfileCardName h1 {
    width: 100%;
    margin: 16px 0;
    font-size: 22px;
    font-weight: 300;
}
#EditProfile button {
    background-color: rgb(246, 248, 250);
}
#EditProfile button:hover {
    background-color: rgb(226, 228, 230);
}
section {
    padding-top: 24px;
    display: inline-block;
    width: 100%;
}
section h2 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1.1em;
}
section h2 + * {
    margin-bottom: 30px;
}
.PopularRepositorie {
    display: inline-block;
    text-align: left;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 8px 16px 14px;
    margin: 8px 0;
    font-weight: 500;
}
.HasMessage > div {
    display: inline-block;
    width: max-content;
    position: relative;
    text-align: left;
    padding: 0;
    border: none;
}
.PopularRepositorie h3 a {
    font-weight: 600;
    font-size: 0.9em;
    color: rgb(9, 105, 218);
    text-decoration: none;
}
.PopularRepositorie p {
    font-size: 0.8em;
    color: rgb(89, 99, 110);
    margin-top: 8px;
}
.PopularRepositorie h3 a:hover {
    text-decoration-line: underline;
}
ol {
    list-style: none;
    padding: 0;
    display: grid;
    column-gap: 16px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    vertical-align: center;
    width: 100%;
}
li {
    width: 100%;
}
#grasses {
    width: 100%;
    height: 120px;
    padding: 8px 0;
    box-sizing: border-box;
}
#grasses {
    display: grid;
    grid-template-columns: repeat(53, 1fr); /* 주 단위 */
    gap: 2px;
    width: max-content;
    padding: 10px;
}
/* Chat GPT 사용 */

.grass-day {
    width: 10px;
    height: 10px;
    background-color: #ebedf0; /* 기본 회색 */
    border-radius: 2px;
}

/* 활동량에 따라 색상 변화 */
.level-1 { 
    background-color: #9be9a8;
    border-color: #40c463;
}
.level-2 {
    background-color: #40c463;
    border-color: #28b44e;
}
.level-3 {
    background-color: #30a14e;
    border-color: #238f45;
}
.level-4 {
    background-color: #216e39;
    border-color: #216c2c;
}

#grasses > div {
    border: none;
    width: 100%;
}

#tooltip {
    font-size: 17px;
    font-weight: 500;
    padding: 6px 10px;
}