@font-face {
    font-family: CurlzMT;
    src: url(../font/curlzmt/CurlzMT.ttf);
}

/* ✅ Lock page scroll (no background scroll/URL bar collapse trigger) */
html, body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    background-image: url("../art/bg-min.jpg");
    background-size: cover;
}

.vh-100 {
    overflow: hidden !important;
}

input {
    text-transform: uppercase;
    font-size: xx-large;
    letter-spacing: 11px;
    width: 200px;
    font-family: CurlzMT;
    text-align: center;
    background: #00000000;
    border: none;
    outline: none;
    color: white;
    height: 72px;
    background-size: cover;
    background-image: url("../art/rectangle.webp");
}

::-ms-input-placeholder { /* Edge 12-18 */
    color: rgba(255, 255, 255, 0.6);
}
  
::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#title-img{
    width: 200px;
    margin-bottom: 25px;
}

.btn, .txt{
    font-size: xx-large;
    color: white;
    font-family: CurlzMT;
    text-shadow: 2px 2px #000;
}

.txtshadow {
    text-shadow: 2px 2px #000;
}

.btn:hover {
    text-shadow: 0px 0px #000;
}

.blacktxt {
    color: #27221f;
}

#inGameCode {
    margin-right: auto;
    margin-left: 10px;
    font-size: large;
    color: rgba(255, 255, 255, 0.6);
}

#codeBlock {
    background-image: url("../art/bigrectangle.webp");
    background-repeat: no-repeat;
    padding: 35px;
    width: 435px;
    background-size: cover;
    height: 250px;
    align-items: center;
    offset-distance: unset;
    text-align: center;
    margin-bottom: 25px;
}

#playerCount {
    font-size: larger;
}

#hint, #hint2 {
    background-image: url("../art/rectangle.webp");
    background-repeat: no-repeat;
    padding: 15px;
    width: 420px;/*324 bij 120*/
    background-size: cover;
    height: 157px;
    align-items: center;
    offset-distance: unset;
    text-align: center;
    margin-bottom: 25px;
    display: grid;
}

/* === Textarea wrapper owns the background and padding === */
.textarea-frame {
    width: 540px;
    height: 308px;
    background-image: url("../art/bigrectangle.webp");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-sizing: border-box;
    padding: 12px 28px;          /* inner safe area (adjust to your frame) */
    overflow: hidden;            /* clip inner overflow to the frame */
}

/* TEXTAREA */
#sentenceInput {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: transparent;     /* no background on textarea */
    border: none;
    outline: none;
    color: white;
    font-family: CurlzMT;
    font-size: 30px;
    text-align: center;
    resize: none;
    overflow-y: auto;            /* scroll within the frame */
    overflow-x: hidden;
    white-space: pre-wrap;
    word-break: break-word;
}

/* width */
::-webkit-scrollbar {
    width: 5px;
}
  
/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #ffce99; 
    border-radius: 2px;
}
   
/* Handle */
::-webkit-scrollbar-thumb {
    background: #994d00; 
    border-radius: 2px;
}
  
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #b35900; 
}

#storyDisplay {
    background-image: url("../art/scroll.webp");
    background-repeat: no-repeat;
    padding-top: 100px;
    padding-left: 150px;
    padding-right: 155px;
    padding-bottom: 100px;
    width: 550px;
    background-size: cover;
    height: 550px;
    align-items: center;
    offset-distance: unset;
    text-align: center;
    background-color: #00000000;
    border: none;
    overflow: hidden;
    font-size: 25px;
    color: #27221f;
    font-family: CurlzMT;
}

.input:focus {
    outline: none !important;
}

#newGameButton {
    background-image: url("../art/arrow.webp");
    background-repeat: no-repeat;
    background-size: 200px;
    width: 200px;
    height: 74px;
    padding-top: 10px;
    padding-left: 10px;
    margin-bottom: 2rem;
    font-size: x-large;
}

a {
    color: white;
    text-decoration: underline;
}

#creditsButton {
    background-image: url("../art/rectangle.webp");
    background-repeat: no-repeat;
    background-size: 200px;
    width: 200px;
    height: 74px;
    padding-top: 10px;
    padding-left: 10px;
    font-size: x-large;
}

#coffeeBtn {
    background-image: url("../art/rectangle.webp");
    background-repeat: no-repeat;
    background-size: 200px;
    width: 200px;
    height: 74px;
    padding-top: 15px;
    padding-left: 10px;
    font-size: x-large;
}

#coffeeImg {
    vertical-align: middle;
    border-style: none;
    height: 40px;
    display: none;
}

.form-group {
    margin-bottom: 0rem;
}

#joinGameButton {
    background-image: url("../art/arrow.webp");
    background-repeat: no-repeat;
    background-size: 200px;
    width: 200px;
    height: 74px;
    padding-top: 10px;
    padding-left: 13px;
    margin-bottom: 2rem;
    font-size: x-large;
}

#initialScreen {
    margin-left: auto;
    margin-right: auto;
    display: table;
}

#waitingScreen, #displayStoryScreen {
    display: none;
    margin-left: auto;
    margin-right: auto;
}

#waitingScreen, #initialScreen, #displayStoryScreen, #gameScreen {
    margin-top: -6rem;
}
  
#startGameButton {
    display: none;
    background-image: url("../art/arrow.webp");
    background-repeat: no-repeat;
    background-size: 200px;
    width: 200px;
    height: 74px;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
}

#waitRoomButtonsWrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

#endButtonsWrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

#shareRoomButton {
    background-image: url("../art/rectangle.webp");
    background-repeat: no-repeat;
    background-size: 200px;
    width: 200px;
    height: 74px;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
}

#replayGameButton {
    background-image: url("../art/replay-square.png");
    background-repeat: no-repeat;
    background-size: 100%;
    height: 3rem;
    width: 3rem;
    margin-left: auto;
    margin-right: auto;
}

#replayGameButton .replay-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  filter: brightness(0) invert(1); /* wit maken indien donker svg */
  pointer-events: none; /* klik gaat door op de knop */
}

#finishGameButton {
    background-image: url("../art/arrow.webp");
    background-repeat: no-repeat;
    background-size: 200px;
    width: 200px;
    height: 74px;
    margin-left: auto;
    margin-right: auto;
}

#enterSentenceButton {
    background-image: url("../art/arrow.webp");
    background-repeat: no-repeat;
    background-size: 220px;
    width: 220px; 
    height: 82px;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
}

#gameScreen {
    display: none;
}

#waitingForNextRoundScreen {
    display: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group {
    display: contents;
}

#alert {
    display: none;
    height: 100vh;
    margin-left: auto;
}

#customAlertDialog {
    margin-bottom: auto;
    margin-right: -3rem;
}

#scrollTitle {
    color: #27221f;
    font-family: 'CurlzMT';
    font-size: 24px;
    margin-top: -50px;
}

#screenshotBody {
    display: flow;
}

#theStory {
    margin-top: 15px;
    max-height: 350px;
    min-height: 350px;
    height: 350px;
    max-width: 14rem;
    line-break: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

.allow-scroll {
    /* allow internal scroll without bubbling to page */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

#storyScreenBottom {
    display: inline-flex;
}

#shareBtn {
    width: 2rem;
    height: 2rem;
    background-image: url("../art/baseline_share_white_48dp.png");
    background-size: cover;
    margin-left: 24px;
    margin-top: 5px;
    visibility: hidden;
}

#scrollStudioName{
    font-size: 18px;
    margin-left: -27px;
    margin-top: 15px;
}

#check {
    background-image: url("../art/check.webp");
    background-size: cover;
    width: 3rem;
    height: 3rem;
    margin-top: auto;
    margin-left: auto;
    cursor: pointer;
}

#codeBlockAlert {
    background-image: url("../art/bigrectangle.webp");
    background-repeat: no-repeat;
    background-size: cover;
    align-items: center;
    offset-distance: unset;
    text-align: center;
    padding: 2rem;
    width: 28rem;
    height: 16rem;
    margin-bottom: 2rem;
    display: flex;
}

.toast-msg {
  visibility: hidden;
  min-width: 180px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 10px 16px;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
  z-index: 9999;
}

.toast-msg.show {
  visibility: visible;
  opacity: 1;
  bottom: 40px;
}

/*
* Drop down menu
*/
#dropdownWrapper {
    display: flex;
    width: 100%;
    margin-top: 1rem;
}
.dropbtn {
    background-image: url("../art/square.webp");
    background-size: cover;
    color: white;
    font-size: 1rem;
    text-shadow: 2px 2px #000;
    border: none;
    background-repeat: no-repeat;
    height: 3rem;
    width: 3rem;
}

.dropdown {
    position: relative;
    display: inline-block;
    margin-left: auto;
}

.dropdown-content {
    display: none;
    max-height: 300px;
    overflow-y: auto;
    position: absolute;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 11px 12px;
    text-decoration: none;
    display: block;
    background-image: url("../art/square.webp");
    background-size: contain;
    background-repeat: no-repeat;
    color: white;
    font-family: CurlzMT;
}
.dropdown a:hover { 
    cursor: pointer;
    text-shadow: 0px 0px #000;
}
  
.show {display: block;}
/*
* End drop down menu
*/
