$background_color: #242424;
$color: #a6a6a6;
$color_visited: gray;
$color_hover: #dfdfdf;
$color_active: #a6a6a6;

$div_background_color: #1038a7;

$title_font_family: Roboto;
$title_font_size: 21pt;

$regular_font_family: Lato;
$regular_font_size: 12pt;
$regular_image_font_size: 10.5pt;

$foot_font_size: 9.8pt;

body {
    background-color: $background_color;
    color: $color;
}

@font-face {
    font-family: 'Roboto';
    src: url("../images/Roboto-Regular.ttf");
}

@font-face {
    font-family: 'Lato';
    src: url("../images/Lato-Regular.ttf");
}

.global_segment {
    margin-left: auto;
    margin-right: auto;
    width: 21cm;

    a:link {
        color: $background_color;
    }

    a:visited {
        color: $color_visited;
    }

    a:hover {
        color: $color_hover;
    }

    a:active {
        color: $color_active;
    }

    ul {
        margin-bottom: 0;
        list-style-type: none;
    }

    li {
        padding-top: 15px;
    }

    .title_bar {
        margin-top: 20px;
        width: 80%;
        float: left;
        text-align: left;
        font-family: $title_font_family;
        font-size: 24pt;
    }

    .language_bar {
        margin-top: 20px;
        width: 20%;
        float: left;
        text-align: right;
        font-size: 24pt;
    }

    .segment_general {
        float: left;
        margin-top: 30px;
        width: 100%;
        position: relative;

        .segment_image {
            float: left;
            width: 210px;
            height:250px;
            color: $color;
            font-weight: bold;
            background-color: $div_background_color;
        }

        .cover {
            object-fit: cover;
            object-position: top;
        }

        .foot_content {
            font-size: $foot_font_size;
        }

        .segment_content_image {
            float: right;
            padding: 15px;
            width: 180px;
            height:220px;
            color: $color;
            font-size: $regular_image_font_size;
            font-family: $regular_font_family;
            font-weight: bold;
            background-color: $div_background_color;

            .segment_image_item {
                margin-top: 5px;
            }
        }
    }

    .segment_title {
        float: left;
        width: 250px;
        padding-top: 12px;
        height: 45px;
        color: $color;
        font-family: $title_font_family;
        font-size: $title_font_size;
        text-align: center;
        background-color: $div_background_color;
    }

    .segment_content_normal {
        float: left;
        width: 100%;
        font-family: $regular_font_family;
        font-size: $regular_font_size;
        text-align: justify;
        margin-top: 15px;

        ul {
            margin-top: 0;
            margin-bottom: 0;
            list-style-type: none;
        }

        ul li::before {
            content: ">> ";
            color: $div_background_color;
            font-weight: bold;
            display: inline-block;
            width: 2em;
            margin-left: -2em;
        }

        .segment_content_title {
            margin-top: 9px;
            margin-bottom: 9px;
        }
    }

    .segment_content_work {
        float: left;
        width: 100%;
        font-family: $regular_font_family;
        font-size: 10pt;
        text-align: justify;

        ul {
            margin-top: 0;
            margin-bottom: 0;
            list-style-type: none;
            margin-left: 18px;
            padding-bottom: 10px;
        }

        ul li {
            padding-top: 8px;
        }

        ul li::before {
            content: "+ >";
            color: inherit;
            background-color: $background_color;
            font-weight: bold;
            display: inline-block;
            width: 2em;
            margin-left: -2.875em;
        }


        .segment_content_title {
            margin-top: 9px;
            margin-bottom: 9px;
        }
    }

    .segment_header_middle {
        position: absolute;
        bottom: 0;
        left: 220px;
        right: 220px;
    }

    .segment_title_image {
        float: none;
        width: 250px;
        margin-left: -40px;
    }

    .segment_description {
        clear: both;
        font-family: $regular_font_family;
        font-size: 10pt;
        font-style: italic;
        color: darken($color, 15%);
        text-align: justify;
        margin: 4px 0 10px 18px;
    }

    .segment_description_general {
        clear: none;
        float: none;
        width: auto;
        overflow: visible;
        margin: 8px 0 0 0;
        padding: 0;
        font-size: 9.5pt;
        text-align: justify;
    }


    .subitem {
        margin-left: 15px;
    }
}

.foot {
    float: left;
    width: 100%;
    height: 30px;
}

.captcha-container {
  float: right;
  
  .captcha-form {
    background-color: $div_background_color;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 210px;
    height: 250px;

    p {
        text-align: center;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    form {
      width: 100%;
      margin-top: 15px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    a {
      color: $color;
      cursor: pointer;
      padding-top: 20px;
      padding-bottom: 5px;
      padding-left: 35px;
      padding-right: 35px;
    }
    
    .captcha-input {
      width: 170px;
      padding: 8px;
      margin-bottom: 10px;
      border: 1px solid $color;
      background-color: $background_color;
      color: $color;
      font-size: 9pt;
    }
    
    .captcha-button {
      width: 188px;
      padding: 8px;
      background-color: $background_color;
      color: $color;
      border: 1px solid $color;
      cursor: pointer;
      font-size: 9pt;
      
      &:hover {
        background-color: darken($background_color, 5%);
      }
    }
    
    .error-message {
      color: #ff4444;
      margin-top: 10px;
      font-size: 14px;
      text-align: center;
    }
  }
}
