.text-box {
    width: 100%; /* Leveys täyttää koko näytön */
    height: 5%; /* Kiinteä korkeus */
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text {
    display: inline-block;
    white-space: nowrap;
    font-size: 10px; /* Alustava fonttikoko */
    color: #ffffff;
}

body{
margin: 0;
}

#copy-overlay-inside{
    position: absolute;
    top: 50%;
    -ms-transform: translate(0, -50%);
    transform: translate(-50%, -50%);
    display: block;
    margin-left: auto;
    margin-right: auto;
    left: 50%;
    width: 100%;
    margin-top: 0;
}

#drawing{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 70%;
    border-radius: 18px;
    box-shadow: white 0px 0px 8px 2px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 30px;
    background-image: url(paperi4.png);
    max-width: 296px;
    max-height: 326.58px;
    height: 90%;
}
.draw-center{
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    height: calc(91.5% - 174px);
}

.center{
    width: 100%;
    max-width: 555px;
    display: block;
    margin: auto;
}

*{
box-sizing: border-box;
}

#keyboard{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    margin-right: 5px;
    margin-left: 10px;
    max-width: 555px;
}

.flex-row{
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 5px;
}

.flex-row span{
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 50px;
    background-color: #0ca0f0;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    padding: 0.5em 0.5em;
    margin-right: 5px;
    transition: background-color 0.5s ease;
}

.flex-row span:hover{
    background-color:  #148aca;
}

@media (max-width: 375px) {
    .flex-row span{
        margin-right: 4px;
    }
}

body{
    font-family: "Roboto", sans-serif;
    font-weight: 400;
}

.smaller{
    height: 3.5%!important;
}

.correct{
    background-color: #4ce42f !important;
    cursor: default !important;
}

.wrong{
    background-color: #e73333 !important;
    cursor: default !important;
}

#game{
    background-color: black;
}

.bigger{
text-transform: uppercase;
margin-top: 8.5px;
}


.overlay {
    height: 0%;
    position: fixed;
    z-index: 4;
    top: 0;
    left: 0;
    background-color: #ffffff;
    overflow-y: hidden;
    transition: 0.5s;
    width: 100%;

  }
  
  .overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
    color: #000;
    font-weight: 600;
    font-size: 2rem;
  }

  .loader {
    border: 12px solid #e2e2e2;
    border-top: 12px solid #000000;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

#start-screen{
    padding: 0px 0.8rem;
}

.content{
    max-width: 800px;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.card{
    padding: 15px 11px;
    margin-top: 15px;
    border-radius: 20px;
    background-image: url(paperi4.png);
}

.how-to-play{
    border: solid #ff0000 7px;
}

.stats-container{
    border: solid #003fff 7px;
    width: 50%;
    margin-right: 7px;
}

.send-container{
    border: solid #28c405 7px;
    width: 50%;
    margin-left: 7px;
}

.row{
    display: flex;
    justify-content: space-evenly;
}

.info-container{
    border: solid #808080 7px;
}

h1{
    text-align: center;
    margin-bottom: 0;
    font-family: 'Holtwood One SC', serif;
    font-size: 2.5rem;
    font-weight: 400;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
}

.play-button{
    background-color: #28c405;
    color: white;
    padding-top: 9px;
    font-size: 1.6rem;
    text-align: center;
    border-radius: 50px;
    max-width: 233px;
    width: 100%;
    transition: box-shadow 0.5s ease;
    cursor: pointer !important;
    border: none;
    padding-bottom: 9px;
    padding-left: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.send-button:hover, .save:hover, .green:hover{
    background-color: #219d05;
}

.play-button:hover{
    box-shadow: #219d05 0 0 4px 2px;
}

.play-button span{
    font-size: 2.6rem;
}

h2, ul{
    margin: 0;
}

.percent{
    margin-top: 16px;
}

.big{
    font-size: 2.5rem;
    font-weight: 500;
}

@media (max-width: 800px) {
    .stats-container, .send-container{
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .row{
        flex-wrap: wrap;
    }
}

.input{
    border-top-right-radius: 5px;
    width: 100%;
    padding: 5px;
    font-size: 1rem;
    border-top-left-radius: 5px;
    border: solid grey 2px;
    resize: none;
    font-family: "Roboto", sans-serif;
    outline: none;
}

.input:focus{
    border-color: #000000;
}

.send-button{
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    background-color: #28c405;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.5s ease;
    border: none;
    justify-content: center;
    align-items: center;
    display: inline-flex;
}

.host-button{
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-bottom-left-radius: 5px;
    background-color: #F44336;
    color: white;
    text-align: center;
    border-bottom-right-radius: 5px;
    cursor: pointer;
    transition: background-color 0.5s ease;
    border: none;
    justify-content: center;
    align-items: center;
    display: inline-flex;
}

.host-button:hover{
    background-color: #dd3e32;
}

.send-button span, .host-button span{
    margin-left: 0.3rem;
}

.victory-img-frame{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 70%;
    border-radius: 18px;
    box-shadow: white 0px 0px 8px 2px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 30px;
    background-image: url(paperi4.png);
    max-width: 296px;
    max-height: 326.58px;
    height: 90%;
}

.victory-img-frame img{
    width: 100%;
    height: 100%;
}

#victory{
width: 100%;
height: 100vh;
background-color: #00cc44;
color: #ffffff;
}

#loss{
    width: 100%;
    height: 100vh;
    background-color: #ff0000;
    color: #ffffff;
}

.caption{
    text-align: center;
    font-size: 1.3rem;
    margin-top: 10px;
}

.title{
    text-align: center;
    font-size: 1.7rem;
}

.buttons-container{
    width: 100%;
    max-width: 296px;
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.button {
    margin-bottom: 10px;
    padding: 15px;
    font-size: 1.2rem;
    text-align: center;
    border-radius: 50px;
    transition: background-color 0.5s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    color: #ffffff;
    justify-content: center;
    align-items: center;
    display: inline-flex;
}

.button span{
    margin-left: 0.3rem;
}

.back {
    background-color: #ff6e00;
}

.save, .green{
    background-color: #28c405;
}

.reveal, .red{
    background-color: #ff0000;
}

.reveal:hover, .red:hover{
    background-color: #ba0202;
}

.reset-button{
    font-weight: 600;
    color: #ff0000;
    font-size: 1.15rem;
    padding: 5px;
    width: fit-content;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.5s ease;
    margin-top: 5px;
}

.reset-button:hover{
    background-color: #ffffff57;
}

.dictionary {
    background-color: #ffa41c;
}

.share {
    background-color: #2848ff;
}

.share:hover {
    background-color: #2c42c1;
}

.back:hover{
    background-color: #df6203;
}

.dictionary:hover{
    background-color: #e3941c;
}

.no-margin{
    margin-top: 0;
}

#drawing-smooth{
    position: relative;
    bottom: 100%;
    opacity: 0%;
}

.drawing-img{
    width: 100%;
    height: 100%;
    transition: 0.5s;
    opacity: 100%;
}

#uploads img{
width: 100%;
}

.victory {
    height: 0%;
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    overflow-y: hidden;
    transition: 0.5s;
    width: 100%;
    display: flex;
    align-items: center;
  }

.victory-inside{
    padding: 15px;
    width: 100%;
}

#loss-confirm{
    width: 100%;
    height: 100vh;
    background-color: #000000c3;
    color: #ffffff;
    z-index: 1!important;

}

#loss-confirm .caption{
    max-width: 566px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

#loss-confirm .victory-inside{
    position: absolute;
    top: 50%;
    -ms-transform: translate(0, -50%);
    transform: translate(-50%, -50%);
    display: block;
    margin-left: auto;
    margin-right: auto;
    left: 50%;
    width: 100%;
}

#copy-overlay{
    background-color: #000000c4 !important;
    z-index: 3;
}

.modal{
    font-size: 1.5rem;
    background-color: #ffffff;
    margin-left: auto;
    border-radius: 15px;
    padding: 15px;
    margin-right: auto;
    width: 94%;
    max-width: 400px;
}

.modal #copy-modal h2{
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.modal-input{
    width: 100%;
    font-size: 1rem;
    padding: 11.2px;
    border-top-left-radius: 5px;
    border: solid gray 2px;
    border-top-right-radius: 5px;
    outline: none;
}

.modal-input:focus{
border-color: #000000;
}

.modal-button{
    font-size: 1rem;
    padding: 10px;
    font-weight: 400;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.5s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
}

.modal-button.red span{
    font-size: 1.3rem;
    margin-left: 0.1rem;
}

.modal-button.copy span{
    margin-left: 0.3rem;
}

.red{
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.grey{
    background-color: #9c9c9c !important;
    cursor: default !important;
}

.copy{
    background-color: #ff8100;
}

.copy:hover{
    background-color: #d76e02;
}

.whatsapp{
    background-color: #00d757;
}

.whatsapp:hover{
background-color: #00bc4c;
}

.facebook{
    background-color: #4867aa;
}

.facebook:hover{
    background-color: #335aae;
}

#shared-info{
    background-color: #ffffff;
    z-index: 2;
}

.info{
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

.info-button{
    margin-bottom: 1em;
}

.logo{
width: 50px;
display: block;
margin-left: auto;
margin-right: auto;
}

.wide{
    max-width: 296px;
}

#main-word span{
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none; 
}

.margin-bottom{
    margin-bottom: 20px;
}

.centered{
    text-align: center;
}



.material-symbols-rounded {
    font-variation-settings:
    'FILL' 1,
    'wght' 700,
    'GRAD' 200,
    'opsz' 48
  }

  .start-container{
    display: flex;
    justify-content: center;
  }

.zero-height{
height: 0% !important;
}

.clue{
    font-weight: 600;
    color: #0000ee;
    text-decoration: underline;
    cursor: pointer;
    user-select: none;
}

.scroll-div{
    max-height: 500px;
    overflow-x: auto;
    margin-bottom: 10px;
}

#send-info h2 {
    font-size: 1.2rem;
    text-align: left;
}

#send-info ol{
    font-size: 1rem;
    font-weight: normal;
    text-align: left;
}

.italic{
    font-style: italic;
}

.reset-text{
    font-size: 1.2rem;
    text-align: left;
    margin-top: 0;
}

.reset-modal-button{
    border-radius: 30px;
    font-size: 1.2rem;
    display: inline-flex;
    width: 100%;
    padding: 10px;
    font-weight: 400;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.5s ease;
    justify-content: center;
    align-items: center;
}

.reset-modal-button.green{
    margin-bottom: 5px;
}

.reset-modal-button span{
    margin-right: 0.3rem;
}

@media (min-width: 400px) {
.reset-modal-button{
    width: calc(50% - 7.5px);
}
.reset-modal-button.green{
    margin-bottom: 0px;
}
.reset-modal-button.red{
    margin-left: 7.5px;
}
}

.modal2 {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  
  .modal2.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
  }


.fa-facebook, .fa-whatsapp{
    font-size: 1.5rem;
    margin-right: 0.4rem;
}

#version-info .main-title{
    text-align: left;
    margin-top: 10px;
}

#version-info h2{
    text-align: left;
    margin-top: 10px;
    font-size: 1.2rem;
}

#version-info ul{
    font-size: 1rem;
    font-weight: normal;
    text-align: left;
}