@import url('https://fonts.googleapis.com/css2?family=Playfair+Display+SC:wght@700&display=swap');

.zw_background {
    background-color: #cdc4ba;
}

/* ZW Login and Register */

#zw_login_header {
    font-family: 'Playfair Display SC', serif;
    font-size: 32px;
}

#zw_login_sub_header {
    font-family: 'Playfair Display SC', serif;
    font-size: 24px;
    margin: 0;
}

#zw_login_box {
    display: grid;
    width: 480px;
    margin: auto;
    text-align: center;
    justify-items: center;
}

#zw_login_form {
    display: grid;
    justify-items: center;
}

/* ZW Header */

#zw_header {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 36px;
    width: 100%;
    display: grid;
    justify-content: space-between;
    grid-template-columns: auto auto auto;
    margin-top: 0px;
}

#zw_header_link {
    display: flex;
    margin-left: 20px;
}

#zw_header_link_cirkular_logo {
    margin: 4px;
}

#zw_header_link_a_part_of {
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    margin: 5px 0 0 5px;
    font-size: 8px;
}

#zw_header_link_text_logo {
    margin: -3px 0 0 5px;
    font-size: 16px;
}

#zw_header_menu {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#zw_header_admin_link {
    align-self: center;
}

#zw_header_user {
    margin-right: 20px;
    display: flex;
    flex-direction: row-reverse;
}

#zw_header_user_name {
    margin: 9px 5px 0 0;
    color: white;
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
}

#zw_header_user_image {
    width: 28px;
    height: 28px;
    margin: 4px;
}

/* ZW Dialog */

#zw_dialog_background {
    position: fixed;
    display: none;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #00000066;
    z-index: 990;
}

#zw_dialog_box {
    align-self: center;
    justify-self: center;
    z-index: 1000;
    display: grid;
    max-width: 880px;
}

#zw_dialog_content {
    grid-column-start: 1;
    grid-row-start: 1;
    align-self: center;
    justify-self: center;
    display: grid;
}

.dialog>*:first-child {
    margin-top: 0;
}

.dialog_button {
    margin-top: 10px;
}

.dialog_button+.dialog_button {
    margin-left: 10px;
}

/************************** 
**         Tools         **
**************************/

.zw_tools {
    position: fixed;
    top: 0px;
    display: flex;
    flex-direction: column;
    align-items: start;
    /* Justera detta till "flex-end" för höger sidan */
}

#zw_tools_left {
    left: 0px;
}

#zw_tools_right {
    right: 0px;
    /* Placerar verktygen längst ut till höger */
    align-items: end;
    /* Justerar innehållet till höger */
}

.zw_tool_toggle_button {
    width: 150px;
    display: block;
    position: relative;
    z-index: 10;
    margin-bottom: 2px;
}

#zw_tools_left .zw_tool_toggle_button {
    border-radius: 0px 5px 5px 0px;
}

#zw_tools_right .zw_tool_toggle_button {
    border-radius: 5px 0px 0px 5px;
}

.zw_tool {
    box-shadow: 2px 3px 20px black;
    background: #fafaf4;
    padding: 20px;
    /* background-image: var(--background_image); */
    min-width: 100px;
    min-height: 50px;
    justify-self: flex-start;
    margin-top: -20px;
    margin-bottom: 2px;
}

#zw_tools_left .zw_tool {
    border-radius: 0px 10px 10px 0px;
}

#zw_tools_right .zw_tool {
    border-radius: 10px 0px 0px 10px;
}



/* ZW Profile */

.zw_profile_row {
    margin-top: 1px;
    margin-bottom: 1px;
}

#zw_friends_header {
    display: flex;
    align-items: center;
    gap: 10px;
}

#zw_add_friend_guid_box {
    width: 300px;
}

/* Navigation */

nav h4 {
    margin-top: 20px;
}

nav h4 button {
    position: relative;
    top: -2px;
}

/* ZW Admin */

.zw_admin_content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    margin-top: 10px;
}

.zw_admin_list {
    margin: 0px;
}

.zw_admin_area {
    width: 100%;
    height: 150px;
    resize: vertical;
}

.zw_editor_label {
    display: inline-block;
    margin-right: 10px;
}

#zw_menu_item_name_box {
    width: 480px;
}

/* Buttons */

.zw_small_button {
    width: 20px;
    height: 20px;
    font-size: 16px;
    padding: 2px;
}

.zw_medium_button {
    height: 26px;
    font-size: 16px;
    padding: 3px;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ZW Tooltip */

.zw_tooltip_text {
    visibility: hidden;
    position: absolute;
    z-index: 5;
    max-width: 150px;
    border-radius: 3px;
    padding: 7px 10px 5px 10px;
    transform: translate(5px, -8px);
}

.zw_small_nav_button:hover .zw_tooltip_text,
.zw_small_button:hover .zw_tooltip_text {
    visibility: visible;
}

/* ZW Logo */

.zw_logo {
    font-family: 'Playfair Display SC', serif;
    color: white
}

.zw_circular_logo {
    display: grid;
    border-style: solid;
    border-radius: 50%;
    border-color: white;
}

.zw_circular_logo_z,
.zw_circular_logo_w {
    grid-column-start: 1;
    grid-row-start: 1;
    padding-left: 8%;
    padding-right: 4%;
    padding-top: 0%;
    padding-bottom: 2%;
}

.zw_circular_logo_z {
    align-self: start;
    justify-self: start;

}

.zw_circular_logo_w {
    justify-self: end;
    align-self: end;
}

/* general styling */

.centered_text {
    text-align: center;
}

.left_text {
    text-align: left;
}

.bold_text {
    font-weight: bold;
}

.flex-header {
    display: flex;
    flex-direction: row;
}

.width30 {
    width: 30px;
}

.width60 {
    width: 60px;
}

.width90 {
    width: 90px;
}

/* Nav */

.zw_nav_item {
    font-size: 20px;
    color: black;
}

.zw_nav_item:hover {
    color: #333;
}

.zw_value_label {
    font-weight: bold;
    padding-right: 5px;
}

.zw_button_space {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.zw_small_nav_button {
    width: 20px;
    height: 20px;
    font-size: 16px;
    padding: 2px;
    margin-left: 7px;
}

.width_80 {
    width: 80px;
}

.centered_30 {
    width: 30px;
    text-align: center;
}

.centered_50 {
    width: 50px;
    text-align: center;
}

/* table header */

.th_main {
    text-align: left;
    vertical-align: bottom;
    padding: 1px 5px;
    white-space: nowrap;
}

.th_main h4 {
    margin-top: 0px;
    display: inline-block;
}

.th_main button {
    margin-bottom: 3px;
    margin-left: 5px;
    padding: 2px 10px;
}

.th_vertical {
    writing-mode: vertical-lr;
    text-align: right;
    padding: 8px 5px;
    white-space: nowrap;
}

.th_centered {
    text-align: center;
    vertical-align: bottom;
    padding: 5px;
    white-space: nowrap;
}

.th_left {
    text-align: left;
    vertical-align: bottom;
    padding: 5px;
    white-space: nowrap;
}

/* Context menu */

.cm_menu {
    position: absolute;
    z-index: 1000;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.cm_option {
    padding: 5px;
    cursor: pointer;
}

.cm_option:hover {
    background-color: #ddd;
}

/*******************************************
 *                                         *
 *               F O R M S                 *
 *                                         *
 *******************************************/

/* Form Section */

.fs_container {
    margin-bottom: 20px;
}

/* Form Section header */

.fsh_container {
    display: flex;
    flex-direction: row;
}

.fsh_container>h4 {
    margin: 0;
    margin-right: 7px;
}

.fsh_container>button {
    margin: 3px;
}

/* Other */

.label_and_box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px;
    min-height: 24px;
    margin-top: 3px;
}

.label_and_area {
    display: grid;
    grid-template-rows: auto auto;
    gap: 1px;
    margin-top: 3px;
}

.label {
    font-size: 18px;
}

.form_area {
    resize: none;
    height: 200px;
}

/*******************************************
 *                                         *
 *                M I S C                  *
 *                                         *
 *******************************************/

.link {
    cursor: pointer;
    color: darkblue;
}

/* Log */

#log_container {
    width: 300px;
    height: 600px;
    overflow: auto;
    /* Scrollbar visas vid behov */
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Nya inlägg placeras under */
    justify-content: flex-start;
    /* Börja från toppen */
    background-color: #222;
    padding: 5px;
    border: 1px solid #444;
    border-radius: 5px;
    color: gray;
    font-size: 15px;
}

#log_container .log_entry {
    color: lightgray;
}

#log_container .log_entry:last-child {
    color: white;
}

@media screen and (max-width: 600px) {
    #header_link_text {
        display: none;
    }

    #zw_header_admin_link {
        display: none;
    }

    #zw_header_user_name {
        display: none;
    }
}


/* Context Menu */

.cs_context_menu {
    position: absolute;
    z-index: 1000;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.cs_context_menu_option {
    padding: 5px;
    cursor: pointer;
}

.cs_context_menu_option:hover {
    background-color: #ddd;
}

.b {
    font-weight: bold;
}

.tal {
    text-align: left;
}

.tar {
    text-align: right;
}

.tac {
    text-align: center;
}

.flex {
  display: flex;
  flex-wrap: wrap;
}

/* Width */
 .w30 {
    width: 30px;
 }

 .w40 {
    width: 40px;
 }

 .w50 {
    width: 50px;
 }

 .w65 {
    width: 65px;
 }

 .w75 {
    width: 75px;
 }

 .w80 {
    width: 80px;
 }

.w100 {
    width: 100px;
 }

.w105 {
    width: 105px;
 }

.w110 {
    width: 110px;
 }

 .w115 {
    width: 115px;
 }

 .w120 {
    width: 120px;
 }

  .w130 {
    width: 130px;
 }

.w150 {
    width: 150px;
 }

.w155 {
    width: 155px;
 }

 .w160 {
    width: 160px;
 }

 .w165 {
    width: 165px;
 }
  .w200 {
    width: 200px;
 }

