body {
  font-family: 'Roboto', sans-serif;
  background: #173b58;
  color: #ffffff;
  font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Patua One', cursive;
}

:root {
  --animate-delay: 0.5s;
}

#login, #reset-password {
	padding-top: 7%;
}

#login, #reset-password, #not-valid {
	display: none;
}

#login .form-signin, #reset-password .form-signin, .login-form {
	background: #0b263c;
    padding: 1em 2em;
    border-radius: 10px;
}

p.login-info {
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: 500;
}

.login-form .btn {
    font-size: 1.1rem;
}

#login #wrong-login {
  display: none;
}

#login-form hr {
  border-top-color: #cccccc;
}

#forgot-password-form {
  display: none;
}

#forgot-password-msg, #forgot-password-error, #forgot-password-polimi,
#reset-password-msg, #reset-password-error {
  display: none;
}

#survey {
	display: none;
}

.sticky-sidebar {
  position: -webkit-sticky;
	position: sticky;
	top: 0;
}

ul.languages {
    list-style: none;
    padding: 0;
}

ul.languages li {
    display: inline-block;
    margin-right: 0.5em;
}

.error-box {
    background: #ffcc00;
    color: #333;
    border-radius: 5px;
    padding: 1em;
    text-align: center;
    font-weight: 400;
    margin-top: 1em;
    display: none;
}

.user-box {
    background: #0b263c;
    border-radius: 10px;
    padding: 1em;
}

.user-box i {
    margin-right: 0.7em;
}

.user-box .switch-unchecked{
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.9em;
}

.user-box .switch-unchecked .custom-control-label:hover {
    cursor: pointer;
}

.user-box a#logout {
    margin-left: 37px;
    font-size: 0.8em;
    color: #ffffff;
}

ul.themes {
    padding: 0;
    list-style-type: none;
}

ul.themes li {
    margin: 0.3em 0;
    font-family: 'Roboto Condensed', sans-serif;
}

ul.themes li a {
    display: block;
    color: #ffffff;
    background: #0b263c;
    padding: 0.5em 1em;
    border-radius: 10px;
    text-transform: uppercase;
    font-size: 0.8em;
    transition: 0.3s;
}

ul.themes li a:hover,
ul.themes li a.selected {
    text-decoration: none;
    background: #27649a;
    transition: 0.3s;
    border-left: 10px solid;
}

ul.themes li a span.abbr,
.tech-item span.abbr,
.tech-item-detail span.abbr {
    margin-right: 0.8em;
    display: inline-block;
    padding: 4px 3px;
    width: 25px;
    height: 25px;
    text-align: center;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-size: 0.9em;
    border-radius: 7px;
}

#overview-link {
    color: #ffffff;
    font-family: 'Patua One', cursive;
    text-transform: uppercase;
    text-align: center;
    display: block;
}

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

.technologies .tech-item {
  flex: 0 0 calc(50% - 10px);
  background: #0b263c;
  border-radius: 10px;
  margin: 5px;
  transition: 0.3s;
  border-left: 5px solid;
  padding: 1em;
  position: relative;
}

.technologies .tech-item:hover {
  cursor: pointer;
  background: #27649a;
  transition: 0.3s;
  transform: scale(1.05);
  box-shadow: #000 0px 0px 20px;
  border-left-width: 10px;
}

.technologies .tech-item:after{
  content: '';
  display: block;
  /*padding-bottom: 100%;*/
}

.technologies .tech-item h2 {
    font-size: 3em;
}

.technologies .tech-item h5 {
    font-size: 0.9em;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: lighter;
}

.technologies .tech-item span.answers {
    font-size: 0.7em;
    position: absolute;
    right: 17px;
    top: 50px;
}

.technologies .tech-item span.checked {
    position: absolute;
    right: 17px;
    top: 15px;
    color: #17a2b8;
}

.technologies .tech-item[data-checked = "0"] span.checked {
	display: none;
}

.technologies .tech-item ul.categories {
    padding: 0;
    list-style-type: none;
    margin-bottom: 0;
    margin-top: 1em;
}

.technologies .tech-item ul.categories li {
    display: inline-block;
    margin-right: 0.2em;
}

.technologies .tech-item span.abbr {
    font-size: 0.7em;
    margin: 0 0 0.2em;
}

.tech-item-detail span.abbr {
    font-size: 1.3em;
    width: 40px;
    height: 40px;
    margin: 0 0 0.7em;
}

.technologies .tech-item-closed {
    display: none;
}

.tech-item-detail,
.welcome-detail,
.explanation-detail,
.disclaimer-detail,
.setoftechs-detail,
.impactareas-detail,
.overview-detail {
    display: none;
    background: rgba(0,0,0,0.7);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    overflow-y: auto;
}

.tech-item-detail a.close-detail,
.welcome-detail a.close-detail,
.explanation-detail a.close-detail,
.disclaimer-detail a.close-detail,
.setoftechs-detail a.close-detail,
.impactareas-detail a.close-detail,
.overview-detail a.close-detail {
    float: right;
    color: #fff;
    transition: 0.3s;
}

.tech-item-detail a.close-detail:hover,
.welcome-detail a.close-detail:hover,
.explanation-detail a.close-detail:hover,
.disclaimer-detail a.close-detail:hover,
.setoftechs-detail a.close-detail:hover,
.impactareas-detail a.close-detail:hover,
.overview-detail a.close-detail:hover {
  opacity: 0.7;
  transition: 0.3s;
}

.tech-item-detail .info,
.welcome-detail .info,
.explanation-detail .info,
.disclaimer-detail .info,
.setoftechs-detail .info,
.impactareas-detail .info,
.overview-detail .info {
    display: none;
    background: #173b58;
    border-radius: 10px;
    padding: 2em 1.5em;
    margin-top: 2em;
    border-left: 10px solid;
    overflow: hidden;
}

.tech-item-detail span.themeLabel {
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    margin-left: 0.8em;
    display: inline-block;
}

.tech-item-detail .info .tech-item-abbr {
    color: #0b263a;
    font-size: 160px;
    position: absolute;
    top: 10px;
    right: 45px;
    z-index: -1;
}

.tech-item-detail .error-feedback {
    text-align: center;
    border: 3px solid #660000;
    border-radius: 10px;
    background: #cc0000;
    padding: 0.5em 1em;
    margin-top: 1em;
    display: none;
}

.tech-item-detail .error-feedback p {
    margin: 0;
}

.tech-item-detail .error-feedback .message {
    margin: 0.5em 0;
    display: inline-block;
}

.tech-item-detail .nav-tabs {
    margin: 2em 0 1em;
    font-family: 'Patua One', cursive;
    border-bottom: 1px solid #cccccc;
}

.tech-item-detail .nav-tabs .nav-link {
    transition: 0.3s;
    color: #ffffff;
}

.tech-item-detail .nav-tabs .nav-link:focus,
.tech-item-detail .nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    transition: 0.3s;
    color: #ffffff;
}

.tech-item-detail .nav-tabs .nav-link.active {
    color: #495057;
}

.tech-item-detail .tech-item-readmore cite {
    display: block;
    margin-top: 1em;
    font-size: 0.7em;
    text-transform: uppercase;
    font-weight: bold;
    font-style: normal;
    text-align: right;
}

.tech-item-detail .tech-item-readmore img.img-fluid {
    background: #ffffff;
}

.tech-item-detail #likert img {
    width: 100%;
}

.tech-item-detail #likert_tab_2 #likert g.tick text {
  font-size: 0.7em;
  font-weight: bold;
}

.tech-item-detail #likert_tab_2 .svg-container {
  display: inline-block;
  position: relative;
  width: 100%;
  padding-bottom: 50%;
  vertical-align: top;
  overflow: hidden;
}

.tech-item-detail #likert_tab_2 .svg-content {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  background: #ffffff;
}

.modal-window a {
    font-weight: bold;
    color: #fff;
    text-decoration: underline;
}

.modal-window a:hover {
    text-decoration: none;
}

.modal-window .carousel-control-prev-icon,
.modal-window .carousel-control-next-icon {
  height: 50px;
  width: 50px;
  outline: black;
  background-size: 100%, 100%;
  border-radius: 50%;
  border: 1px solid #173b58;
  background-image: none;
}

.modal-window .carousel-control-next-icon:after {
    content: '>';
    font-size: 55px;
    color: #173b58;
    line-height: 0.7em;
}

.modal-window .carousel-control-prev-icon:after {
    content: '<';
    font-size: 55px;
    color: #173b58;
    line-height: 0.7em;
}

.modal-window a.carousel-control-prev,
.modal-window a.carousel-control-next {
  text-decoration: none;
}

.tech-item-detail .nav.nav-tabs a {
    text-decoration: none;
}

.survey-item, .sdg-item {
    background: #0b263c;
    margin-bottom: 1em;
    padding: 1em;
    border-radius: 10px;
}

.survey-item i.tooltip-place {
    position: absolute;
    right: 25px;
    top: 10px;
}

.survey-item i.tooltip-place:hover {
  cursor: pointer;
}

.survey-item h5 i {
    margin-right: 0.7em;
}

.survey-item.incomplete {
    border: 5px solid #ff0000;
}

.survey-item .rating {
    height: 85px;
}

.survey-item .feedback {
    padding: 1em;
    background: #173b58;
    border-radius: 10px;
    margin-top: 1em;
    border: 1px solid #eee;
    font-size: 0.8em;
    display: none;
}

.survey-item .feedback p {
    margin: 0;
}

.survey-item.incomplete .feedback {
    background: #aa0000;
    display: block !important;
}

.slider.slider-horizontal {
  width: 90%;
}

.slider.slider-horizontal .slider-tick-label-container .slider-tick-label {
    font-family: 'Roboto Condensed';
    font-size: 0.8em;
}

.slider.slider-horizontal .slider-tick,
.slider.slider-horizontal .slider-handle,
.slider.slider-horizontal .slider-selection,
.slider.slider-horizontal .slider-track-low,
.slider.slider-horizontal .slider-track-high {
    transition: 0.3s;
}

.slider-tick.in-selection {
  background-image: none;
  background-color: #ffffff;
}

.footer a {
    color: #ffffff;
    font-family: 'Patua One', cursive;
    display: inline-block;
    margin: 0 0.4em;
}

canvas#myChart {
    background: #ffffff;
    padding: 1em;
}

@media (min-width: 576px) {
  .technologies .tech-item {
    flex: 0 0 calc(33% - 10px);
  }
}

@media (min-width: 768px) {
	.tech-item-detail .info {
	    padding: 2em 3em;
	}
  .technologies .tech-item {
    flex: 0 0 calc(25% - 10px);
  }
  .technologies .tech-item-closed {
    transform: scale(0.6) !important;
    opacity: 0.5 !important;
    transition: 0.5s !important;
    display: block;
  }
}

@media (min-width: 992px) {
  .technologies .tech-item {
    flex: 0 0 calc(25% - 10px);
  }
}

@media (min-width: 1200px) {
  .technologies .tech-item {
    flex: 0 0 calc(20% - 10px);
  }
}
