/* 
Theme Name: Hello-Elementor-Child 
Theme URL: https://roll10s.com
Description: Roll 10s 
Theme Author: erSito
Author URL: https://websbuenasbonitasybaratas.es
Template: hello-elementor
Version: 1.0.0 
Text Domain: hello-elementor-child 
Tags: flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*code for dialog box 
 .ui-widget-header,.ui-state-default, .ui-button {
            background:#b9cd6d;
            border: 1px solid #b9cd6d;
            color: #FFFFFF;
            font-weight: bold;

         }*/

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 3; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.85); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 2px solid #888;
  width: 40%; /* Could be more or less, depending on screen size */
}

.modalDashboard {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.85); /* Black w/ opacity */
}

/* Modal Content/Box */
.modalDashboard-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 2px solid #888;
  width: 65%; /* Could be more or less, depending on screen size */
}

#edit_modal{
  text-align: center;
}

#rollsHistoricDiv{
  text-align: left;
}

.textStyleDescription{
  text-align: justify;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.input-disabled{
    background-color:#EBEBE4;
    border:1px solid #ABADB3;
    padding:2px 1px;
    color:rgb(84, 84, 84);
    
}
.ajaxwait{
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(255,255,255,0.8) url("https://roll10s.com/wp-content/uploads/2021/04/loader.gif") center no-repeat;
}
/* Turn off scrollbar when body element has the loading class */
body.loading{
    overflow: hidden;   
}
/* Make spinner image visible when body element has the loading class */
body.loading .ajaxwait{
    display: block;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}


/*CODE FOR THE TOGGLE BUTTON*/

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.rollable{
   color: black;
}

.createCharacterTable tr td {
    vertical-align : middle;
}

.alignLeftInModalBox {
    padding-left: 15%;
    text-align: Left;
}    

/*CODE FOR THE DROPDOWN MENU*/

/* Dropdown Button 
.dropbtn {
    background-color: #4CAF50;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}*/

/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
    background-color: #3e8e41;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
    background-color: transparent;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 2;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #f1f1f1}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

@font-face { font-family: percolator-expert; src: 
url(https://roll10s.com/wp-content/themes/hello-elementor-child/fonts/percolator-expert.ttf);
font-weight: normal; }

/*styles for the character navigation menu*/
.vampire{
    font: 140% "percolator-expert";
}
.characterNavigation{
    table-layout: fixed;
    text-align: center;
    font: 200% "percolator-expert";
}
.character-sheet-vampire a:visited,
.character-sheet-vampire a:link {
  color: green;
}
.table-vampire-hunger table a:visited,
.table-vampire-hunger a:link {
     color: red;
}
.character-sheet-vampire a:hover {
  color: black;
}

.table-vampire  table, .table-vampire th, .table-vampire td {
    border: 1px groove green;
    border-collapse: collapse;
}
.table-vampire-hunger table, .table-vampire-hunger th, .table-vampire-hunger td {
     border: 1px groove red;
}

.vampire-frenzy {
    background-size: contain;
     background-image: url(https://roll10s.com/wp-content/uploads/2024/08/frenzy.jpg);
}

/*GENERIC ALIGNMENT AND LAYOUT CLASSES*/
/*align left*/
.roll10left {
    text-align: left;
}

.roll10inline {
  position: relative;
  display: inline-block;
  width: 70px;
}
.roll10inline300 {
  position: relative;
  display: inline-block;
  width: 300px;
}

.roll10aligntop{
    vertical-align: top;
}

.formContainer {
  width: 500px;
  clear: both;
}

.formContainer input {
  width: 7px;
  font-size: 12px;
  clear: both;
}

.roll10RelativeRight {
  text-align: right;
  position:relative;
  float: right;
}

.roll10FormGroup1 {
        margin: 10px 0;
    }

    .roll10form-row {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

    .roll10form-row label {
        width: 120px; /* Adjust label width as necessary */
        text-align: left;
    }

    .roll10form-row input {
        flex: 1;
    }
    
/*code for add citizen pop up*/
.roll10-citizen-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

.citizen-row {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.citizen-row img {
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 50%;
}

.status-options {
    margin-left: 20px;  /* To indent the radio buttons */
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 5px;
}

.status-options label {
    margin-right: 10px;
}

.status-options input[type="radio"] {
    margin-right: 5px;
}

.checkbox-container {
    display: inline-block;
    margin-right: 15px; /* Space between checkbox-label pairs */
    white-space: nowrap; /* Prevent checkbox and label from breaking */
}
.checkbox-container input {
    margin-right: 5px; /* Space between checkbox and label */
}

/* styles for pop ups*/
/* General Form Styling */
.roll10s-popup-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
}

/* Form sections and labels */
.roll10s-form-section {
    margin-bottom: 15px;
}

.roll10s-form-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-input {
    width: calc(100% - 20px);
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

/* Textarea styling */
.form-textarea {
    width: calc(100% - 20px);
    height: 100px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Submit Button Styling */
.btn-submit {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #0073aa;
    color: white;
    font-size: 1em;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #005177;
}

/*CSS for the users messages on bluebook*/
 .bluebook_time_text {
        font-weight: bold;          /* Make the text bold */
        font-size: 18px;            /* Slightly larger font size */
        padding: 10px;              /* Padding to give space around the text */
        border: 1px groove green;  /* Border that matches the text color */
        border-radius: 5px;         /* Slightly rounded corners */
        margin-bottom: 10px;        /* Space between the important text and the comment */
    }
    
.childMessage {
        position: relative;
        left: 20px;
    }

    .parentMessage {
        background-color: #f9f9f9; /* Light background color */
        border: 1px solid #ddd;    /* Subtle border around the comment */
        border-radius: 10px;       /* Rounded corners for a smoother look */
        padding: 15px;             /* Padding inside the frame */
        margin: 10px 0;            /* Space between comments */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
        font-family: Arial, sans-serif; /* Font style */
    }
    

    .limitedReaders {
        background-color: #b5b0b0;          /* Gris claro elegante */
        color: #000;                        /* Texto negro para máxima legibilidad */
        border: 2px solid #bbb;             /* Borde gris medio, sobrio */
        border-radius: 10px;                /* Bordes redondeados */
        padding: 20px;
        font-family: 'Segoe UI', sans-serif;
        font-size: 16px;
        line-height: 1.6;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Sombra suave para levantarlo un poco */
        margin: 15px 0;
    }

    .parentMessage-author {
        font-weight: bold;         /* Bold the author's name */
        color: #333;               /* Darker color for the author's name */
        margin-bottom: 5px;        /* Space between the author's name and the comment */
    }

    .parentMessage-text {
        font-size: 16px;           /* Readable font size for the comment text */
        color: #555;               /* Slightly lighter color for the comment text */
        line-height: 1.5;          /* Line height for better readability */
    }
    
    
/* float image for city pop up images*/
/* Contenedor del tooltip */
.character-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-image {
    position: absolute;
    display: none;
    width: 150px;
    border: 2px solid #ccc;
    background: #fff;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
    border-radius: 5px;
    z-index: 9999;
    pointer-events: none;
}

/*styles for pop-up categories*/
.collection-popup {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    font-family: sans-serif;
    max-width: 400px;
    margin: 0 auto;
}

#editboxtitle {
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

.collection-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.collection-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.collection-item input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

.collection-item label {
    font-size: 16px;
    color: #222;
    cursor: pointer;
}

.collection-new p {
    margin-bottom: 8px;
    font-weight: bold;
}

#newCollection {
    width: 100%;
    height: 35px;
    padding: 5px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 10px;
}

#newCollectionButton {
    background-color: #0073aa;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

#newCollectionButton:hover {
    background-color: #005a87;
}

/*style for private cities and chatracters*/
tr.private td:first-child::before {
    content: "ðŸ”’ ";
    font-size: 14px;
}


.checkbox-container {
  display: flex;
  flex-wrap: wrap;      /* Permite que los checkboxes bajen a otra fila si no hay espacio */
  gap: 16px;            /* Espacio entre cada checkbox+etiqueta */
  align-items: center;  /* Alineación vertical */
}
.checkbox-container label {
  display: flex;
  align-items: center;
}


.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.form-row label {
  width: 70px;        /* Mismo ancho para todos los labels */
  margin-right: 8px;  /* Espacio entre label y input */
  text-align: right;
  box-sizing: border-box;
}

.form-row input[type="number"] {
  width: 65px;        /* Mismo ancho para todos los números */
  margin-right: 8px;
  box-sizing: border-box;
}

.form-row input[type="text"] {
  flex: 1;            /* Ocupa el espacio restante disponible */
  box-sizing: border-box;
  min-width: 80px;
}

.collection-active {
    font-weight: bold;
    text-decoration: underline;
    opacity: 0.7;
}

#createCharacterButton {
    background-color: #930b0b;   
    color: #000;   
    border: 2px solid #000;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase; 
    cursor: pointer;
    border-radius: 3px; 

}

#createCharacterButton:hover {
    background-color: #000;
    color: #930b0b;
}

