:root{
    --card-color: #eeeee4;
    --main-background: #fafcff;
    --border-color-1: #dce2eb;
    --border-color-2: #99a5b5;
    --pink: rgb(242, 212, 255);
    --color-dark-1: #1e1f26;
    --color-dark-2: #283655;
    --color-middle: #4d648d;
    --color-middle-hover: #384c71;
    --color-light-2: #d0e1f9;
    --color-light-2-hover: #a8c1e4;
    --color-light-1: #ffffff;
    --color-light-1-hover: #f0f0f0;

    --color-green-light: #eafbe3;
    --color-red-light: #f9ecec;
    --color-orange-light: #ffebc6;
    --color-yellow-light: #fffcc6;

    --color-yellow: #f8d927;
    --color-orange: #f8af27;
    --color-sand: #ccb89a;

    --color-gold: #ffcc00;
    --color-silver: #ababab;
    --color-bronze: #de8900;

    --color-gold-light: #fff7d7;
    --color-silver-light: #ebebeb;
    --color-bronze-light: #e7c8b9;

    --color-disabled: #c1c1c1;

    --color-table-row-1: #efefef;

    --box-shadow-standard: 0 0 3px, 1px 1px 3px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background: var(--main-background);

    height: 100%;
    min-width:320px;        /* Suppose you want minimum width of 1000px */
    width: auto !important;  /* Firefox will set width as auto */
    width:500px;
}

.header {
    background-color: var(--color-dark-1);
    color: var(--color-light-1);
    padding: 5px;
    margin: 0px;
    text-align: center;
    border-bottom: 1px solid var(--color-light-1);
}

.card {
    background-color: none;
    padding: 0px;
}

nav {
    background-color: var(--color-dark-1);
    overflow: hidden;
    padding: 0px 20px;
}

nav a {
    font-size: 16px;
    float: left;
    display: block;
    color: #fff;
    text-align: center;
    padding: 15.5px 16px;
    text-decoration: none;
}

nav a:hover {
    background-color: #555;
}

.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: #fff;
    padding: 15.5px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    text-transform: capitalize;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #444;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 2;
}

.dropdown-content a {
    float: none;
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #555;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.icon {
    float: right;
    padding: 0;
}

.icon .dropbtn {
    padding: 8px;
    display: flex;
}

.icon img {
    width: 30px; /* Adjust the size as needed */
    height: auto;
    border-radius: 50%;
    margin: 0;
}

.icon:hover .dropdown-content {
    display: inline-block;
    margin-left: -94px;
}

#user-name {
    background: #32bb59;
    float: right;
    padding: 6px;
    margin: 9.5px 16px;
    font-style: italic;
    color: white;
    border-radius: 4px;
}

.login-overlay {
    height: 100%;
    width: 0;
    position: fixed;
    /* Över t.ex. slutspelsoverlay (bet.css) — modal ska alltid vara överst */
    z-index: 30000;
    top: 0;
    right: 0;
    background-color: rgb(0,0,0,0.5);
    overflow-x: hidden;
    transition: 400ms;
}

.login-form-box {
    position:relative;
    top:20%;
    left:30%;
    background: var(--color-light-1);
    width: 40%;
    height: auto;
    padding: 30px;
    padding-top: 10px;
    border: 3px solid var(--color-dark-1);
    border-radius: 20px;
    box-shadow: 5px 0px 20px var(--color-dark-1);
}

.login-form-box input {
    height: 40px;
    width: 100%;
    margin: 10px 0px;
    padding: 2px 3%;
}

.login-overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 36px;
    color: var(--color-dark-1);
    text-decoration: none;
}

.column {
    float: left;
    background-color: var(--main-background);
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.column.left {
    width: 20%;
    padding-left: 20px;
}

.column.middle {
    width: 60%;
    min-height: 100%;
}

.column.right {
    width: 20%;
    padding-right: 20px;
}

.column.middle-left {
    background-color: none;
    width: 75%;
    height: 100%;
}

.column.middle-right {
    background: none;
    width: 25%;
    position:relative;
}

.row-in-column {
    width: 100%;
    height: 100%;
    display: flex;
}

.row-in-column:after {
    content: "";
    display: block;
    clear: both;
}

.image {
    vertical-align: center;
    /*width: 22px;*/
    height: 15px;
    border: 1px solid var(--color-dark-1);
    /*border-radius: 5px;*/
}

.footer {
    background-color: var(--color-dark-1);
    color: var(--color-light-1);
    padding: 10px;
    text-align: center;
    content: "";
    display: block;
    clear: both;
/*    position: fixed;*/
    bottom: 0;
    width: 100%;
}


.login-btn a, .login-submit {
    background: var(--color-light-1);
    /*float: left;*/
    font-size: 14px;
    color: var(--color-dark-1);
    text-align: center;
    width: 120px;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--color-light-1);
    transition: 300ms;
}

.login-submit {
    background: var(--color-dark-2);
    color: var(--color-light-1);
    border: 2px solid var(--color-dark-2);
    width: 100%;
    transition: 300ms;
}

/* Tidigare inline width:30% på wrappen gjorde knappen för smal för "Logga in och skicka …" på mobil */
.login-form-box .login-submit-wrap {
    margin: 12px auto 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.login-form-box .login-submit-wrap .login-submit {
    min-height: 44px;
    padding: 12px 14px;
    line-height: 1.25;
    white-space: normal;
    box-sizing: border-box;
}

.login-submit:hover {
    background: var(--color-light-2);
    color: var(--color-dark-1);
    cursor: pointer;
}

.login-submit:disabled {
    display: inline-block;
    background-color: var(--color-disabled);
    cursor: not-allowed;
}

.login-submit:disabled:hover {
    background-color: var(--color-disabled);
    color: white;
}

.info-icon {
    position: relative;
    margin-left: 2%;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 18px;
}
.info-box {
    display: none;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #333;
    z-index: 2;
}
.info-icon:hover .info-box, .info-box:hover .info-box  {
    display: block;
}


@media screen and (max-width: 1200px){
    .login-form-box {
        left: 20%;
        width: 60%;
    }
}

@media screen and (max-width: 800px){
    .login-form-box {
        left: 10%;
        width: 80%;
    }
}

@media screen and (max-width: 510px){
    .dropdown .dropbtn, nav a, #user-name {
        font-size: 14px;
        /*padding: 17px 16px;*/
    }
    .dropdown .dropbtn {
        padding-top: 17px;
    }
    .dropdown.icon .dropbtn {
        padding: 10px;
    }
    nav a {
        padding: 17px 10px;
    }
    nav {
        padding: 0 4px;
    }
    #user-name {
        margin: 11px 8px;
    }
    .login-form-box {
        left: 2%;
        width: 96%;
    }
}

/* Fallback för användarnamnet på smala skärmar: dolt här som default, syns i ikon-dropdownen vid <=420px */
.dropdown-username {
    display: none;
}

@media screen and (max-width: 420px){
    .login-form-box h1 {
        font-size: 25px;
    }
    .login-submit {
        font-size: 12px;
    }
    #user-name {
        display:none;
    }
    .icon .dropdown-content .dropdown-username {
        display: block;
        padding: 10px 16px;
        color: #fff;
        background: #2a8c44;
        font-style: italic;
        font-size: 14px;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
}

/*
.icon .dropdown-content {
    margin-left: auto;
}
*/



/*
.user-icon:hover img {
    transform: scale(1.2); */
/* Increase the scale on hover *//*

}*/
