@font-face {
    font-family: 'Editorial';
    src: url('fonts/Editorial-New.woff') format('woff'),
         url('fonts/Editorial-New.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #180f0f;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    margin: 0;
    touch-action: none;
}

#home {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative; 
    padding-top: 100px;
}


.poster-container {
    position: relative;
    width: 500px; 
    height: 375px; 
    overflow: visible;
    margin-bottom: 30px;
}

.background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 35px;
    border: solid 1px #D0D1B4;
}

.foreground-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    z-index: 3;
}

.noid-text {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -170%);
    font-family: 'Editorial', serif;
    font-size: 14rem;
    color: white;
    z-index: 2;
    letter-spacing: -20px;
    white-space: nowrap;
}

.corner-text {
    position: absolute;
    font-family: 'Editorial', serif;
    font-size: 1.5rem;
    color: #D0D1B4;
    z-index: 4;
    letter-spacing: -2px;
}

.bottom-left {
    bottom: 10px;
    left: 15px;
    font-family: "Noto Serif JP", serif;
}

.bottom-right {
    bottom: 10px;
    right: 15px;
}

.morse-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #D0D1B4;
    width: 100%; 
}

.morse-bar .bar {
    border-radius: 25px;
    border: 1px solid #D0D1B4;
    display: flex;
    align-items: center;
    width: 0px; 
    height: 6rem;
    overflow: hidden;
    transition: width 1s cubic-bezier(0, 0.55, 0.45, 1);
}

.morse-bar .bar.expand {
    width: 500px;

}

.morse-bar .bar p {
    flex-grow: 1;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 3rem; 
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.morse-bar .bar button {
    background-color: #D0D1B4;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1rem;
    height: 100%;
}

.morse-bar .bar button img {
    width: 4rem;
    height: 4rem;
}