/* Card Layout */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed&display=swap');
/* Fonts for Body */
/* Sans Serif */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:wght@300&display=swap');
/* Handwritten */
@import url('https://fonts.googleapis.com/css2?family=Annie+Use+Your+Telescope&display=swap');
@font-face {
    font-family: memo2self;
    src: url(/fonts/memo2self.ttf);
}

.card {
    background-color: rgba(255, 202, 202, 0.907);
    box-shadow: 7px 7px 5px -3px #0000005d;
    border-radius: 2vh;
    padding: 3vh;
    padding-bottom: 1.5vh; 
    min-width: 150px !important;
    min-height: 97.5px !important;
    animation-name: animation-board;
    animation-duration: 120s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.bg {
    width: 60vh;
    height: 39vh;
}

.md {
    width: 50vh;
    height: 32.5vh;
}

.sm {
    width: 40vh;
    height: 26vh;
}

.msg-body {
    height: 80%;
    width: 100%;
    display: flex;
    flex-direction: row;
    font-family: 'memo2self';

}

.msg-footer {
    height: 13%;
    padding:0;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.5vh !important;
    color: rgba(123, 123, 123, 0.642);
    text-shadow: 0.5px 0.5px 0.7px rgba(104, 104, 104, 0.286);
}

.sm .msg-footer {
    height: 13%;
    padding:0;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.8vh !important;
    color: rgba(123, 123, 123, 0.642);
    text-shadow: 0.5px 0.5px 0.7px rgba(104, 104, 104, 0.286);
}

.msg-half {
    width: 50% !important;
    object-fit: contain;
}

.material-icons {
    font-size: 3vh;
    vertical-align: middle;
}

.sm .material-icons {
    font-size: 2vh !important;
    vertical-align: middle;
}

.msg-img {
    display: block;
    box-shadow: 0.5vh 1vh 1vh -0.7vh #00000060;
    max-width: 100%;
    max-height: 100%;
}

.msg-text {
    max-height: 100%;
    width:100%;
    padding-left: min(0.7vw, 3vh, 10px);
    object-fit: contain;
    overflow: hidden;
    word-wrap: break-word;
}

.msg{
    height: 100%;
    max-height:100%;
    font-size: 12vh;
}

@keyframes animation-board {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(calc(150vw));
    }
}
/* End card layout */