*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 1024px;
    height: 1024px;
}

html {
    background-color: rgb(0, 0, 0);
}

main,
body {
    margin: 0px;
    overflow: hidden;
}

#artWrapper {
    clip-path: inset(4% 4% 4% 4% round 7%);
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 1024px;
    height: 1024px;
    transform-origin: top left;
}

#crt {
    width: 1024px;
    height: 1024px;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 999999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.45;
}

#commitText {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    margin-bottom: 5px;
}

#infoWrapper {
    display: grid;
    grid-template-areas:
        ". months"
        "days activity"
        ". legend";
    grid-template-columns: auto auto;
    grid-template-rows: 14px auto;
    width: -moz-fit-content;
    width: fit-content;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #000;
}

#days {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 2px;
    height: 82px;
    grid-area: activity;
    flex-basis: 10px;
}

#daysName {
    display: flex;
    flex-direction: column;
    align-content: flex-end;
    gap: 10px;
    width: -moz-fit-content;
    width: fit-content;
    padding: 10px 0;
    margin-right: 5px;
    grid-area: days;
}

#legend {
    margin-top: 5px;
    margin-right: 10px;
    display: flex;
    flex-direction: row;
    gap: 2px;
    grid-area: legend;
    align-items: center;
    justify-content: flex-end;
}

#legend span {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 10px;
    display: block;
    width: -moz-fit-content;
    width: fit-content;
}

#daysName span,
#monthNames span {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 10px;
    display: block;
    width: -moz-fit-content;
    width: fit-content;
}

#monthNames {
    grid-area: months;
    width: 100%;
    display: flex;
    position: relative;
}

#monthNames span {
    position: absolute;
}

.dayItem {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background-size: contain;
}

.dayItem span {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 10px;
    position: absolute;
    z-index: 9;
    display: none;
    padding: 10px;
    transform: translate(-50%, calc(-100% - 5px));
    border-radius: 5px;
    white-space: nowrap;
}

.dayItem:hover span {
    display: inline-block;
}