@import url('https://fonts.googleapis.com/css2?family=Nata+Sans:wght@100..900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body{
    background-color: #fff;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 14px;
    padding: 0;
    margin:0;
}


header{
    background-color: rgb(22, 71, 134);
    background-image: url("/img/partyplan_header.webp");
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    color:#fff;
    padding:30px 0;
    margin-bottom:60px;
    overflow: hidden;
}

.logo{
    float:left;
    width:calc(200px - 10px);
    padding-left: 10px;
}
.slogan{
    float:left;
    width:calc(100% - 260px);
    padding-left:50px;
    padding-right:10px;
    padding-top: 45px;
    font-size: 25px;
    font-weight: bold;
    text-align: right;
}

hr{
    border: none;
    height: 1px;
    background-color: rgb(219, 9, 9);
    margin: 1em 0; /* valfritt avstånd ovan och under */
}

input[type=text], input[type=email], input[type=date], input[type=password], select, textarea{
    padding:8px;
    font-family: "Roboto", sans-serif;
}

input[type=button], button{
    padding:8px;
    font-family: "Roboto", sans-serif;
}

img{
    max-width: 100%;
}

a{
    color:#14387a;
}

h1{
    font-size: 25px;
}

h2{
    font-size: 22px;
}

table thead tr td{
    font-weight: bold;
}

table    tr th{
    text-align: left;
}

.err{
    display: inline-block;
    padding:10px 20px;
    color:#fff;
    background-color: #db2100;
    font-weight: bold;
    margin-bottom:5px;
}

.reportAlert {
    display: none; /* Göm popupen från början */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.reportAlert .inside {
    background: #fff;
    padding: 2rem 3.5rem;
    border-radius: 5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}
.reportAlert.show {
    display: flex; /* När .show är på, visas popupen */
}
.reportAlert.flex {
    display: flex !important;
}



.wrap{
	padding:0 50px;
}
.wrap.start{
    padding-top:100px;
}

.right, .left{
    float:left;
    width:calc(50% - 0px);
}



.invite-row {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}
.invite-row input {
    flex: 1;
}
.invite-row button {
    flex: 0 0 auto;
}

.calendar-controls {
            margin-bottom: 10px;
}
table.calendar {
    border-collapse: collapse;
    width: 100%;

  border-collapse: separate;    /* Viktigt för border-radius på table */
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  /* Eventuellt border, bakgrundsfärg osv */
  border: 2px solid #111;
}
table.calendar th, table.calendar td {
    border: 1px solid #ccc;
    text-align: center;
    padding: 10px;
    width: 14%;
    height: 60px;
}
table.calendar th.week-num,
table.calendar td.week-num {
    background: #eee;
    width: 5%;
    font-weight: bold;
}
td.day {
    cursor: pointer;
    background-color: #c20303ff; /* röd från början */
    color:#fff;
}
td.day.selected {
    background-color: #06a320ff; /* grön när vald */
}


    .calendar-controls {
        margin-bottom: 10px;
    }

    table.calendar {
        border-collapse: collapse;
        width: 100%;
    }

    table.calendar th, table.calendar td {
        border: 1px solid #ccc;
        text-align: left;
        vertical-align: top;
        padding: 5px;
        height: 30px;
    }

    table.calendar th.week-num,
    table.calendar td.week-num {
        background: #eee;
        text-align: center;
        font-weight: bold;
        width: 5%;
    }

    table.calendar th.day-name {
        background: #f8f8f8;
        text-align: center;
    }

    td.day {
        cursor: default;
    }

    td.day .day-number {
        font-weight: bold;
    }

    td.day .names-list {
        margin-top: 4px;
        font-size: 0.9em;
        line-height: 1.2em;
    }

    /* Färgstyrka beroende på antal namn */
    td[data-count="1"] { background-color: #d8f5d2; }
    td[data-count="2"] { background-color: #baf0b1; }
    td[data-count="3"] { background-color: #94e792; }
    td[data-count="4"] { background-color: #60d869; }
    td[data-count="5"], td[data-count="6"], td[data-count="7"] { background-color: #2dc848; color: #fff; }

td.day.disabled {
    background: #f2f2f2;
    color: #aaa;
}

table.invitelist tr{
    transition: .2s;;
}

table.invitelist tr:hover{
    background-color: #f1f1f1;
    transition: .2s;;
}

.list tbody tr:hover{
    background-color: #f1f1f1;
}

.scroll{
    overflow-y: auto;
}

footer{
    text-align: center;
    background-color: rgb(22, 71, 134);
    background-image: url("/img/partyplan_header.webp");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    padding:100px 30px;
    margin: 30px 0 0 0;
    color:#fff;
    font-weight: bold;
}
footer a{
    color:#e2ecff
}

@media screen and (max-width: 1000px) 
{
    .startlogo{
        display: none;
    }
    .left, .right{
        float:none;
        width:100%;
    }

    .wrap.start{
        padding:0;
    }

    .logo{
        float:none;
        width:calc(100% - 0);
        padding:0;
    }
    .slogan{
        float:none;
        width:calc(100% );
        padding:0;
        font-size: 25px;
        text-align: left;
    }
}