@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@700&display=swap');

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Noto+Sans+SC:wght@400;700&family=Noto+Sans+TC:wght@400;700&family=Noto+Sans+KR:wght@400;700&family=Noto+Sans:wght@400;700&display=swap");

*{
    margin: 0;
    padding: 0;
}

:root {
    --heightRatio: 1;
    --defaultFontSize: calc(16px * var(--heightRatio));
}

body {
    user-select: none;
    -webkit-user-select:none;
    background-color: black;
    font-family: "M PLUS 1", sans-serif;

    overflow: hidden;
}

.main {
    margin:  0 auto; 
    background-color: white;
    display: flex;
    justify-content: center;
    position: relative;
}

.loading_bg{
    background-image: url(img/tamago_loading.png);
    background-size: cover;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.loading{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 11;
}

.init_load_status {
    position: absolute;
    transform: translate(-50%);
    color: white;
    bottom: calc(75px * var(--heightRatio));
    font-size: calc(30px * var(--heightRatio));
    font-weight: bolder;
    left: 50%;
}

.version{
    font-size: calc(16px * var(--heightRatio));
    position: absolute;
    right: 5px;
    bottom: 5px;
    color: rgb(56, 56, 56);
}

.init_loading_mark {
    position: absolute;
    width: calc(60px * var(--heightRatio));
    aspect-ratio: 1;
    border-radius: 50%;
    background: 
        radial-gradient(farthest-side,#ffffff 94%,#0000) top/8px 8px no-repeat,
        conic-gradient(#0000 30%,#ffffff);
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
    animation: l13 1s infinite linear;
    left: calc(50% - (50px * var(--heightRatio)));
    bottom: calc(175px * var(--heightRatio));
}
@keyframes l13{ 
  100%{transform: rotate(1turn)}
}

.tamago{
    background-image: url(img/background.jpg);
    background-size: cover;
}

.clock{
    background-color: whitesmoke;
    position: absolute;
    left: 0;
    bottom: 0;
}

#time{
    font-family: 'M PLUS 1p', sans-serif;
    letter-spacing: 1px;
    font-size: calc(40px * var(--heightRatio));
    font-weight: bolder;
}

#clockimage{
    max-width: calc(100px * var(--heightRatio));
    max-height: calc(140px * var(--heightRatio));
    margin-bottom: 0;
    display: block;
    margin: auto;
}

.chats{
    position: absolute;
    top: 0;
    left: 0;
    width: calc(620px * var(--heightRatio));
    height: calc(520px * var(--heightRatio));

    margin-left: 5px;
    font-family: "Noto Sans JP", sans-serif;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.chat{
    text-shadow: -0.5px -0.5px 1px #000000,-0.5px -0.5px 1px #000000,-0.5px 0.5px 1px #000000,-0.5px 0.5px 1px #000000,-0.5px -0.5px 1px #000000,-0.5px -0.5px 1px #000000,-0.5px 0.5px 1px #000000,-0.5px 0.5px 1px #000000,0.5px -0.5px 1px #000000,0.5px -0.5px 1px #000000,0.5px 0.5px 1px #000000,0.5px 0.5px 1px #000000,0.5px -0.5px 1px #000000,0.5px -0.5px 1px #000000,0.5px 0.5px 1px #000000,0.5px 0.5px 1px #000000;
    display: flex;
    font-size: calc(16px * var(--heightRatio));
    margin-top: calc(5px * var(--heightRatio));
    animation: slideUp 0.1s ease-out forwards;
}
@keyframes slideUp {
    from {
        transform: translateY(50px);
    }
    to {
        transform: translateY(0);
    }
}

.chatmeta{
    display: flex;
}

.icon{
    width: calc(30px * var(--heightRatio));
    height: calc(30px * var(--heightRatio));
    background-size: cover;
    border-radius: 50%;
    margin-right: calc(5px * var(--heightRatio));
}

.timestamp{
    color: #ffc2c2 !important;
    margin-right: calc(10px * var(--heightRatio));
}

.name {
    color: #ffcead;
    font-weight: 700 !important;
}

.content{
    margin-top: calc(-5px * var(--heightRatio));
    color: white;
}

.volume_button{
    position: absolute;
    width: calc(40px * var(--heightRatio));
    height: calc(40px * var(--heightRatio));
    background-image: url(img/volume_button.png);
    background-size: cover;
    border-radius: calc(20px * var(--heightRatio));

    top: 0;
    right: 0;
    margin: calc(5px * var(--heightRatio));
    transition: 0.1s;
}

.volume_button:hover{
    filter: brightness(0.8);
}

.volume_button:active{
    transition: 0.05s;
    filter: brightness(0.7);
}

.volume_button.clicked{
    transition: 0.25s;
    background-image: none;
    background-color: white;
    width: calc(400px * var(--heightRatio));
    filter: none;

    display: flex;
    justify-content: center;
}

.volume_button.clicked > .vslider {
    width: calc(330px * var(--heightRatio));
}

.comment_button{
    position: absolute;
    width: calc(40px * var(--heightRatio));
    height: calc(40px * var(--heightRatio));
    background-image: url(img/comment_button.png);
    background-size: cover;
    border-radius: calc(20px * var(--heightRatio));

    top: calc(50px * var(--heightRatio));
    right: 0;
    margin: calc(5px * var(--heightRatio));
    transition: 0.1s;
}

.comment_button:hover{
    filter: brightness(0.8);
}

.comment_button:active{
    transition: 0.05s;
    filter: brightness(0.7);
}

.comment_button.clicked{
    transition: 0.25s;
    background-image: none;
    background-color: white;
    width: calc(400px * var(--heightRatio));
    height: calc(125px * var(--heightRatio));
    filter: none;

    display: flex;
    justify-content: center;
}

.send_button{
    position: absolute;
    width: calc(40px * var(--heightRatio));
    height: calc(40px * var(--heightRatio));
    background-image: url(img/send_button.png);
    background-size: cover;
    border-radius: calc(20px * var(--heightRatio));

    bottom: calc(5px * var(--heightRatio));
    right: 0;
    
    margin: calc(5px * var(--heightRatio));
    transition: 0.1s;
}

.send_button:hover{
    opacity: 0.6;
}

.send_button:active{
    opacity: 0.5;
}

#comment_content {
    position: absolute;
    resize: none;
    margin: calc(7px * var(--heightRatio));

    padding: calc(10px * var(--heightRatio));

    border-radius: calc(10px * var(--heightRatio));
    
    width: 80%;
    height: 70%;
    left: 0;
    top: calc(2.5px * var(--heightRatio));

    font-size: var(--defaultFontSize);

    outline: none;

    border: none;
    background-color: rgb(219, 237, 253);
}