:root {
    --bar-color:rgb(0, 0, 255);
    --bar-color-hover: rgb(0, 250, 250);
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    padding: 0;
    margin: 0;
}


.links line {
    stroke-opacity: 0.6;
}

.nodes circle {
    stroke: #fff;
    stroke-width: 1.5px;
}

.edge-tooltip-rect {
    fill: #f9f9f9;
    /* Light background color */
    stroke: #333;
    /* Dark border color */
    stroke-width: 1px;
    /* Border width */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Add some shadow */
}

.edge-tooltip text {
    font-family: Arial, sans-serif;
    /* Set a font family */
    fill: #333;
    /* Dark text color */
}

.tooltip rect {
    fill: #f9f9f9;
    /* Light background color */
    stroke: #333;
    /* Dark border color */
    stroke-width: 1px;
    /* Border width */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Add some shadow */
}

.info-tooltip rect {
    fill: #f9f9f9;
    /* Light background color */
    stroke: #333;
    /* Dark border color */
    stroke-width: 1px;
    /* Border width */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Add some shadow */
}

.tooltip text {
    font-family: Arial, sans-serif;
    /* Set a font family */
    fill: #333;
    /* Dark text color */
}

.fade {
    opacity: 0;
    transition: opacity 0.5s;
}

.container {
    width: 80%;
    /* Set the width of the container to 80% of the parent element */
    margin: 0 auto;
    /* Set the margins on the top and bottom to 0, and auto on the left and right to center the div horizontally */
    display: flex;
    /* Use flexbox layout to organize child elements */
    flex-direction: column;
    /* Align child elements in a column */
    align-items: center;
    /* Center child elements horizontally */
    justify-content: center;
    /* Center child elements vertically */
    margin-bottom: 100px;
}


.interaction-div {
    background-color: #f9f9f9;
}

#interaction {
    margin-top: 20px;
    margin-bottom: 100px;
}

.interactions-facts{
    margin-bottom: 100px;
}

.emotion-facts{
    margin-bottom: 100px;
}

.radio-container {
    margin-bottom: 20px;
}



/* Radio button container and labels */


.radio-margin {
    margin-right: 10px;
}

.radio-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 690px;
}

.radio-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.radio-container label {
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.radio-container label:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.radio-container input[type="radio"] {
    display: none;
}

/* Style the custom radio button indicator */
.radio-container label span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    vertical-align: middle;
    transition: background-color 0.2s, border-color 0.2s;
}

/* Update the existing rule for the hover effect */
.radio-container label:hover span {
    border-color: #ced4da;
}

/* Rule for the selected radio button label */
.radio-container input[type="radio"]:checked+label {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

/* Add a new rule to style the custom radio button indicator when it's checked */
.radio-container input[type="radio"]:checked+label span {
    background-color: #ffffff;
    border-color: #ffffff;
}

/* Update the existing rule for the hover effect on the selected radio button label */
.radio-container input[type="radio"]:checked+label:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Add a new rule to style the custom radio button indicator when its label is hovered */
.radio-container input[type="radio"]:checked+label:hover span {
    background-color: #ffffff;
    border-color: #ffffff;
}

.tooltip {
    position: absolute;
    text-align: center;
    padding: 5px;
    font-size: 12px;
    font-weight: bold;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    pointer-events: none;
}


.title {
    width: 700px;
    margin-top: 100px;
}

p {
    font-size: 18px;
    /* Adjust the font size to your preference */
    font-weight: normal;
    color: #333;
    text-align: justify;
    margin-bottom: 20px;
    line-height: 1.6;
}

.text-block {
    margin-top: 100px;
    width: 70%;
}

ul {
    margin-top: 40px;
    margin-bottom: 40px;
}

#my_dataviz {
    align-content: center;
    padding-left: 15%;
    background-color: #f9f9f9;

}

#emotion-tooltip-image-1 {
    width: 22%;
    padding: 10px;
}

#emotion-tooltip {
    width: 320px;
    height: 375px;
    padding: 5px;
    margin: 5px;
}

#emotion-wordcloud {
    width: fit-content;
    width: 100%;
    height: auto;
    /* Adjust as needed */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#emotion-wordcloud li {
    font-size: large;
    align-self: start;
}

.character-images {
    display: flex;
    justify-content: space-between;
}

.character-images circle {
    fill: url(#image);
    stroke: #69b3a2;
    stroke-width: 10;
}

#personality{
    margin-top: 50px;
}

.radarChart{
    display: flex;
    justify-content: center;
    align-items: center;
}

.radarChart svg{
    align-self: self-start;
}


.no-margin{
    margin-top: 20px;
    margin-bottom: 100px;
}

.personality-intro{
    margin-top: 20px;
    margin-bottom: 20px;
}

.personality-facts{
    margin-top: 20px;
    margin-bottom: 100px;
}

.bar {
    fill:var(--bar-color);
}

.bar:hover {
    fill:var(--bar-color-hover);
}

.dropdown-btn {
    background-color: #007bff;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    border-radius: 1em;
  }
  
  .dropdown {
    position: relative;
    display: inline-block;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: rgb(250,250,250);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  .dropdown-content a:hover {background-color: #ddd;}
  
  .dropdown:hover .dropdown-content {display: block;}
  
  .dropdown:hover .dropdown-btn {background-color: #006ee4;}

  

  .title-friendship{
    margin-top: 100px;
  } 