html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Scalable toggle switch based on your working version */

.toggle-switch {
    --scale: 1; /* change this to resize everything */

    --w: calc(60px * var(--scale));
    --h: calc(30px * var(--scale));
    --radius: calc(15px * var(--scale));
    --border: calc(2px * var(--scale));
    --knob: calc(20px * var(--scale));
    --pad: calc(5px * var(--scale));
    --move: calc(28px * var(--scale));
    position: relative;
    width: var(--w);
    height: var(--h);
    --light: #d8dbe0;
    --dark: #28292c;
}

.switch-label {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    border-radius: var(--radius);
    cursor: pointer;
    border: var(--border) solid var(--dark);
}

.checkbox {
    position: absolute;
    display: none;
}

.slider {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    transition: 0.3s;
}

.checkbox:checked ~ .slider {
    background-color: var(--light);
}

.slider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: var(--pad);
    width: var(--knob);
    height: var(--knob);
    border-radius: 50%;
    box-shadow: inset calc(10px * var(--scale)) calc(-3px * var(--scale)) 0px 0px var(--light);
    background-color: var(--dark);
    transform: translateY(-50%);
    transition: 0.3s;
}

.checkbox:checked ~ .slider::before {
    transform: translate(var(--move), -50%);
    background-color: var(--dark);
    box-shadow: none;
}



.links {
    text-decoration: none;
    color: black;
}
.right {
    border: solid;
    background-color:gray;
    border-radius: 5px;
    height: 620px;
    width: 450px;
    display:flex;
    flex-direction:column;
    
}
.right_2 {
    border: solid;
    background-color: gray;
    border-radius: 10px;
    height: 300px;
    width: 350px;
    display: flex;
    flex-direction: column;
    
}
.right_inside_1 {
    background-color: lightgray;
    display: flex;
    height: 200px;
    width: 330px;
    margin-left: 10px;
    margin-left: 6px;
    margin-top: 5px;
    justify-content: center;
    border-color: black;
    border: solid 2px;
}

.loggin_button{
    display:flex;
    justify-content:center;
    margin-top:10px;
}
.right_inside_2 {
    background-color: lightgray;
    display: flex;
    height: 80px;
    width: 330px;
    border-color:black;
    border:solid 2px;
    margin-left: 6px;
    justify-content:center;
    align-items:center;
   
}
.right_inside_3 {
    background-color: white;
    display: block;
    height: 600px;
    width: 430px;
    border-radius: 10px;
    margin-left: 6px;
    margin-top: 5px;
    
}
.stats_div_profile
{
    font-size:35px;
    
}

.right_info {
    margin-left: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display:flex;
    justify-content:center;
}
.stats_div {
    margin-left: 40px;
    margin-bottom:5px;
}
.profil_bild {
    display: inline-block;
    border-radius: 50px;
    
    
    border: solid;
    border-color: black;
    border-width: 2px;
}
.profil-heading
{
    font-size:30px;
    display:flex;
    justify-content:center;

}
.profile_picture_div {
    display: flex;
    align-items: center;
    justify-content: center;
}
.holder_div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 800px;
}
.Stats_holder_div
{
    display:inline-block;
    height:70%;
}
.stats_holder
{
    display:inline-block;
}
.buttons
{
    height: 30px;
    width:80px;
    border-radius:10px;
    background-color:white;
    align-self:center;
    
}
.logga_in_div {
    display:flex;
    justify-content: space-around; /* centrerar horisontellt */
   /* align-items: center;*/ /* centrerar vertikalt */
   flex-direction:column;
   margin-left:0px;
   width:200px;
}
.right_sign_up {
    border: solid;
    background-color: gray;
    border-radius: 10px;
    height: 350px;
    width: 300px;
    display: flex;
    flex-direction: column;
}
.right_sign_up_1 {
    background-color: lightgray;
    display: flex;
    height: 330px;
    width: 280px;
    border-radius: 10px;
    margin-left: 6px;
    margin-top: 5px;
    padding-left:5px;
}
.holder{
    display:flex;
    flex-direction:column;
    
}

.holder_wordsuggest{
    display: flex;
    flex-direction: column;
    width:500px;
}
.suggestion_div
{
    width:400px;
    display:flex;
    justify-content:space-around;
}
.suggestion {
    width: 100px;
    display: inline-block;
}
.button_div {
    width: 100px;
    display:inline-block;
}
.green_button {
    height: 30px;
    width: 80px;
    border-radius: 10px;
    background-color: green;
    align-self: center;
}
.red_button {
    height: 30px;
    width: 80px;
    border-radius: 10px;
    background-color: red;
    align-self: center;
}
.all_words_button {
    height: 30px;
    width: 80px;
    border-radius: 10px;
    background-color: gray;
    align-self: center;
}
/* Dark Mode Styles */
body.dark-mode {
    background-color: #3D3D3D; /* main dark background */
    color: #EEEEEE; /* light gray text for readability */
}

    /* Text elements */
    body.dark-mode .streak-label,
    body.dark-mode .streak-label-small,
    body.dark-mode .game-title,
    body.dark-mode .leaderboard-title {
        color: #FFFFFF !important; /* bright text for contrast */
    }

    /* Leaderboard background dark */
    body.dark-mode .leaderboard-entry,
    body.dark-mode .leaderboard-overlay
    {
        background-color: #4A4A4A; /* slightly lighter than main bg */
        color: #FFFFFF;
    }

        body.dark-mode .leaderboard-entry.me {
            border-color: #6AAA64; /* keep green highlight */
        }

    body.dark-mode .shop-button {
        background-color: #4A4A4A;
    }

    body.dark-mode .shop-button:hover {
        background-color: #f3f3f3; /* slightly lighter than main bg */
    }

    /* Inputs and buttons */
    body.dark-mode input,
    body.dark-mode .input_box,
    body.dark-mode .create_box,
    body.dark-mode button {
        background-color: #555555; /* inputs slightly lighter than main bg */
        color: #FFFFFF;
        border-color: #666666;
    }

        /* Optional hover/active states for buttons */
        body.dark-mode button:hover {
            background-color: #6E6E6E;
        }

    body.dark-mode .shop-button,
    body.dark-mode .shop-button:hover,
    body.dark-mode .shop-button:visited,
    body.dark-mode .shop-button:focus {
        color: white !important;
        text-decoration: none !important;

    }

    /* Tiles in the game board (optional dark adjustments) */
    body.dark-mode #board .tile {
        border-color: #666666;
    }

    body.dark-mode #keyboard button {
        background-color: rgb(129, 131, 132);
    }

        body.dark-mode #keyboard button.gray {
            background: #4D4B49 !important;
            color: white;
        }

