@font-face {
    font-family: 'M PLUS Rounded 1c';
    src: url('https://dalomo.net/hotwee/font/MPLUSRounded1c-Bold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Hachi Maru Pop';
    src: url('https://dalomo.net/hotwee/font/HachiMaruPop-Regular.ttf') format('truetype');
    font-display: swap;
}

body {
    margin: 0px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    background-color: mistyrose;
}

main {
    text-align: center;
}

#card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow: auto;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 16px;
}

#button {
    border: 0;
    border-radius: 25px;
    background: #6E5AD1;
    color: white;
    text-shadow: 1px 1px 1px gray;
    padding: 8px;
    font-size: medium;
    width: 300px;
    height: 50px;
    box-shadow: 0px 1px gray;

}

.button-b2t-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

#button-b2t {
    border: 0;
    border-radius: 30px;
    background: #00F9F9;
    width: 60px;
    height: 60px;
    box-shadow: 0px 1px gray;
}

#arrow {
    fill: white;
    width: 50px;
    height: 30px;
}

#button-b2t[hidden] {
    display: none;
}

button:hover {
    opacity: 0.75;
}

header{
    background-image: linear-gradient(0deg,
    hsl(6deg 93% 71%) 0%,
    hsl(354deg 95% 73%) 11%,
    hsl(343deg 90% 72%) 22%,
    hsl(332deg 79% 70%) 33%,
    hsl(317deg 62% 68%) 44%,
    hsl(293deg 49% 67%) 56%,
    hsl(267deg 61% 71%) 67%,
    hsl(240deg 71% 74%) 78%,
    hsl(219deg 83% 67%) 89%,
    hsl(204deg 88% 53%) 100%);
}

.title {
    
    text-align: center;
    width: 100%;
    display: flex;
    justify-content:space-between;
}

.title-side{
    width:60px;
}

.title-main {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 40px;
    
}

.title-main a {
    text-decoration: none;
    color: lightslategrey;
    -webkit-text-stroke: 1px whitesmoke;
    text-stroke: 1px whitesmoke;

}

.title-main a:focus {
    outline: none;
}

.title-description {
    font-size: 16px;
    color: whitesmoke;text-align: center;
}

nav{
    width: 100%;
    position: relative;
   }

.menu-list{
    display:block;
    width: 60%;
    top: 0;
}

.reload{
    opacity: 0.75;
}

#refresh{
    fill: white;
    height: 40px;
    padding-top: 10px;
}


#bar {
    fill: white;
    height: 40px;
    padding-top: 10px;
}

#close {
    fill: white;
    height: 40px;
    padding-top: 10px;
}

#bar[hidden] {
    display: none;
}

#close[hidden] {
    display: none;
}

.card-item {
    position: relative;
    width: 320px;
    height: 240px;
    margin: 8px;

}

.card-date {
    /* background-image: linear-gradient(45deg, lightyellow, lightblue); */
    text-align: center;
    border-radius: 8px;
    box-shadow: 0px 2px 2px gray;
    width: 320px;
    height: 240px;
    font-family: 'Hachi Maru Pop', cursive;
    text-shadow: 2px 0px 1px whitesmoke,
        -2px 0px 1px whitesmoke,
        0px 2px 1px whitesmoke,
        0px -2px 1px whitesmoke;
    color: lightslategrey;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}


.month-day {
    font-size: 90px;
    margin: 0px;

}

.year {
    font-size: 50px;
    margin: 0px;
}



.card-image {
    background-position: 50% 50%;
    background-size: cover;
    width: 320px;
    height: 240px;
    border-radius: 8px;
    box-shadow: 0px 2px 2px gray;
}

.card-title {
    display: grid;
    grid-template-columns: 60px 260px;
    grid-template-rows: 30px 30px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -100%);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;

    background-color: rgba(0, 0, 0, 0.5);

    width: 320px;
    height: 60px;

    text-shadow: 1px 1px 1px black;

}

.card-username {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;

    align-self: center;
    justify-self: start;
    padding-left: 4px;

    margin: 0px;

    font-size: medium;
    color: whitesmoke;
}

.card-snippet {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;

    align-self: start;
    padding-left: 8px;

    margin: 0px;
    text-overflow: ellipsis;

    overflow: hidden;
    white-space: nowrap;
    font-size: small;
    color: whitesmoke;
}

.card-icon {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 3;

    align-self: center;
    justify-self: center;

    border-radius: 50%;
    background-size: cover;
    background-color: whitesmoke;
    width: 32px;
    height: 32px;
    border: 2px solid whitesmoke;


}

footer {
    text-align: center;
    margin-top: 8px;
}

.menu-list{
    width:100%;
    height:60px;
    background-color: #FFA399;
    display: flex;
    align-items: center;
}

.menu-list ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0px;
    margin: 0px;
    width:100vw;
}

.menu-list ul li{
    display: block;
}

.menu-list ul li a{
    display: block;
    text-decoration: none;
    color:#665B5A;
}