@font-face {
    font-family: 'Rodin';
    src:url('assets/Rodin.ttf') format('truetype');
}

body {
    font-family: 'Rodin';
    background-color: black;
    background-image: url('');
}

#game {
    width: 1920px;
    height: 1080px;
    transform-origin: top left;
    text-align: left;
    background-image: url('assets/bg/chocolates1.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: none;
    margin-right: none;
    position:sticky;
}

#textbox {
    background-image: url('assets/textbox.png');
    background-size: contain;
    background-repeat: repeat-x;
    background-position: center;
    width: 1920px;
    height: 340px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 29%;
}

#dialogue {
    font-family: 'Rodin';
    font-size: 24pt;
    color: white;
    position: relative;
    line-height: 1.5;
    margin-left:420px;
    margin-right:320px;
    top:120px;
    z-index: 5;
    letter-spacing: 1pt;
}

#name {
    position: absolute;
    font-size: 26pt;
    margin-top: 55px;
    margin-left: 300px;
    color:white;
    letter-spacing: 1pt;
}

#namebar {
    position: absolute;
    display: flex;
    margin-top: 80px;
    margin-left: 230px;
    height: 60px;
    width: 1550px;
    gap: 0;
}

.barborder {
    display: inline-block;
    background-image: url('assets/namebar1.png');
    background-size: auto 60px;
    background-repeat: no-repeat;
    background-position: right;
    width: 60px;
    margin: none;
    padding: none;
}

.barmid {
    display: inline-block;
    background-image: url('assets/namebar2.png');
    background-size: auto 60px;
    background-repeat: repeat-x;
    background-position: center;
    width: 1400px;
    margin: none;
    padding: none;
}

#click {
    background-color: red;
    opacity: 3%;
    position: relative;
    width: 480px;
    height: 120px;
    top: 370px;
    cursor: pointer;
    margin-left: auto;
    margin-right: auto;
    z-index: 9;
}

#icons { 
    position: absolute;
    color:white;
    font-size: 21pt;
    width: 118px;
    height: 40px;
    margin-left: 580px;
    margin-top: 5px;
    letter-spacing: 16pt;
    text-align: right;
    z-index: 10;
    opacity: 80%;
}

.icon {
    background: none;
    border: none;
    width: 25px;
    height: 25px;
    padding: 0;
    font-size: 21pt;
    cursor: pointer;
    color: white;
}

#fade {
    position: fixed;
    inset: 0;
    background: black;
    width: 100%;
    height: 100%;
    opacity: 1;
    animation: fading 3s ease-in-out forwards;
    pointer-events: none;
}

@keyframes fading {
    from {
        opacity: 0; 
    }
    to {
        opacity: 1;
    }
}