@import url('air-datepicker/air-datepicker.css');
@import url("animate.css/animate.min.css");

@tailwind base;
@tailwind components;
@tailwind utilities;

* {
  font-family: 'Roboto', sans-serif;
}

[x-cloak] { display: none !important; }

/* Alerts and form errors used by phx.new */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.alert-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}
.alert-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}
.alert-danger {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}
.alert p {
  margin-bottom: 0;
}
.alert:empty {
  display: none;
}
.invalid-feedback {
  color: #a94442;
  display: block;
  margin-top: 2px;
}

/* LiveView specific classes for your customization */
.phx-no-feedback.invalid-feedback,
.phx-no-feedback .invalid-feedback {
  display: none;
}

.phx-click-loading {
  opacity: 0.5;
  transition: opacity 1s ease-out;
}

.phx-disconnected{
  cursor: wait;
}
.phx-disconnected *{
  pointer-events: none;
}

.phx-modal {
  opacity: 1!important;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.phx-modal-content {
  background-color: #fefefe;
  margin: 15vh auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.phx-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.phx-modal-close:hover,
.phx-modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/** 
 Forms
 **/
.input:focus~.label,
.input:active~.label,
.input.filled~.label {
  @apply text-sm transition-all duration-100 -top-1.5 text-primary-500;
}

.input:focus~.icon,
.input:active~.icon,
.input.filled~.icon {
  @apply transition-all duration-100 left-3 top-6 h-5;
}

.date-placeholder-hidden::-webkit-datetime-edit {
  display: none;
}


.date-placeholder-hidden::-webkit-inner-spin-button,
.date-placeholder-hidden::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

/**
 Custom fonts
**/
/* roboto-100 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100;
  src: url('/fonts/Roboto/roboto-v29-latin-100.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/Roboto/roboto-v29-latin-100.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/Roboto/roboto-v29-latin-100.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-100.woff') format('woff'), /* Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-100.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/Roboto/roboto-v29-latin-100.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-100italic - latin */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 100;
  src: url('/fonts/Roboto/roboto-v29-latin-100italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/Roboto/roboto-v29-latin-100italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/Roboto/roboto-v29-latin-100italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-100italic.woff') format('woff'), /* Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-100italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/Roboto/roboto-v29-latin-100italic.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-300italic - latin */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 300;
  src: url('/fonts/Roboto/roboto-v29-latin-300italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/Roboto/roboto-v29-latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/Roboto/roboto-v29-latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-300italic.woff') format('woff'), /* Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-300italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/Roboto/roboto-v29-latin-300italic.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-300 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('/fonts/Roboto/roboto-v29-latin-300.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/Roboto/roboto-v29-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/Roboto/roboto-v29-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-300.woff') format('woff'), /* Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/Roboto/roboto-v29-latin-300.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-regular - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/Roboto/roboto-v29-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/Roboto/roboto-v29-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/Roboto/roboto-v29-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/Roboto/roboto-v29-latin-regular.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-italic - latin */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  src: url('/fonts/Roboto/roboto-v29-latin-italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/Roboto/roboto-v29-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/Roboto/roboto-v29-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-italic.woff') format('woff'), /* Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/Roboto/roboto-v29-latin-italic.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-500 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/Roboto/roboto-v29-latin-500.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/Roboto/roboto-v29-latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/Roboto/roboto-v29-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-500.woff') format('woff'), /* Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-500.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/Roboto/roboto-v29-latin-500.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-500italic - latin */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 500;
  src: url('/fonts/Roboto/roboto-v29-latin-500italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/Roboto/roboto-v29-latin-500italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/Roboto/roboto-v29-latin-500italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-500italic.woff') format('woff'), /* Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-500italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/Roboto/roboto-v29-latin-500italic.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-700 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/Roboto/roboto-v29-latin-700.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/Roboto/roboto-v29-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/Roboto/roboto-v29-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-700.woff') format('woff'), /* Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/Roboto/roboto-v29-latin-700.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-700italic - latin */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 700;
  src: url('/fonts/Roboto/roboto-v29-latin-700italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/Roboto/roboto-v29-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/Roboto/roboto-v29-latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-700italic.woff') format('woff'), /* Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/Roboto/roboto-v29-latin-700italic.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-900 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  src: url('/fonts/Roboto/roboto-v29-latin-900.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/Roboto/roboto-v29-latin-900.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/Roboto/roboto-v29-latin-900.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-900.woff') format('woff'), /* Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-900.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/Roboto/roboto-v29-latin-900.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-900italic - latin */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 900;
  src: url('/fonts/Roboto/roboto-v29-latin-900italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('/fonts/Roboto/roboto-v29-latin-900italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('/fonts/Roboto/roboto-v29-latin-900italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-900italic.woff') format('woff'), /* Modern Browsers */
       url('/fonts/Roboto/roboto-v29-latin-900italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('/fonts/Roboto/roboto-v29-latin-900italic.svg#Roboto') format('svg'); /* Legacy iOS */
}

.bg-gradient-animate {
  background: linear-gradient(-45deg, #b80fef, #8611ed, #14bfdb, #14bfdb);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.arrow_box {
	position: relative;
	background: #fff;
	border: 2px solid #e1e1e1;
}
.arrow_box.arrow_right:after, .arrow_box.arrow_right:before {
	left: 100%;
	top: 50%;
	border: solid transparent;
	content: "";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.arrow_box.arrow_right:after {
	border-color: rgba(255, 255, 255, 0);
	border-left-color: #fff;
	border-width: 15px;
	margin-top: -15px;
}
.arrow_box.arrow_right:before {
	border-color: rgba(225, 225, 225, 0);
	border-left-color: #e1e1e1;
	border-width: 18px;
	margin-top: -18px;
}

.arrow_box.arrow_left:after, .arrow_box.arrow_left:before {
	right: 100%;
	top: 50%;
	border: solid transparent;
	content: "";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.arrow_box.arrow_left:after {
	border-color: rgba(255, 255, 255, 0);
	border-right-color: #fff;
	border-width: 15px;
	margin-top: -15px;
}
.arrow_box.arrow_left:before {
	border-color: rgba(225, 225, 225, 0);
	border-right-color: #e1e1e1;
	border-width: 18px;
	margin-top: -18px;
}

:root {
  --animate-duration: 0.3s;
}

/* Presenter fix for Safari */

@media not all and (min-resolution:.001dpcm)
{ @supports (-webkit-appearance:none) and (stroke-color:transparent) {
#post-list.showed { 
 @apply w-4/12;
}
}}
.react-animation {
  opacity: 0;
}

.react-animation:nth-child(odd) {
  animation: react 2s linear;
}

.react-animation:nth-child(even) {
  animation: react2 2s linear;
}

@keyframes react {
  0% {
    transform: translateY(0%);
    opacity: 0;
  }
  20% {
    transform: translateY(-70%);
    opacity: 1;
  }
  100% {
    transform: translateY(-300%);
    opacity: 0;
  }
}

@keyframes react2 {
  0% {
    transform: translateY(0%);
    opacity: 0;
  }
  40% {
    transform: translateY(-70%);
    opacity: 1;
  }
  100% {
    transform: translateY(-500%);
    opacity: 0;
  }
}

.strikethrough {
  position: relative;
}

.strikethrough:before {
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  right: 0;
  border-top: 3px solid;
  @apply border-supporting-red-600;
  
  -webkit-transform:rotate(-20deg);
  -moz-transform:rotate(-20deg);
  -ms-transform:rotate(-20deg);
  -o-transform:rotate(-20deg);
  transform:rotate(-20deg);
}

/* Air datepicker */
.air-datepicker-body--day-name {
  @apply text-primary-600;
}

.air-datepicker-cell.-selected-, .air-datepicker-cell.-selected-.-current- {
  @apply bg-primary-500 text-white hover:bg-primary-600;
}

.air-datepicker-cell.-current- {
  @apply text-secondary-500;
}

.animate__slow_slow {
  --animate-duration: 5s;
}