/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
/*
Author: Jesús Bejarano
rewrited by: Alexis Güere
*/

*{
    font-family: Roboto;
    transition: all 450ms ease-in-out !important; 
}

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

input::placeholder {
    color: currentColor; 
    box-sizing: border-box;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, 'Ububtu', Arial, sans-serif;
    font-size: 0.935rem;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

body{
    background: rgba(66, 11, 28, 0.78);
    overflow: hidden;
}

html,body{
    width: 100%;
    height: 100%;
}

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

img {
	max-width: 100%;
	width: 100%;
}

main{
    overflow: hidden;
}

.ph {
    display: flex;
    flex-flow: row nowrap;
	box-sizing: border-box;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, 'Ububtu', Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    outline: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -ms-touch-action: none;
    touch-action: manipulation;
    -ms-user-select: manipulation;
    -moz-user-select: manipulation;
    user-select: inherit;
    width: 100%;
    height: 100%;
    color: #313131; 
    position: relative;
}
.ph *, .ph *::before, .ph *::after {
    box-sizing: inherit;
    font-family: inherit;
    outline: inherit;
    color: inherit;
}
.ph *:not(textarea):not(input), .ph *::before, .ph *::after {
    -webkit-touch-callout: inherit;
    -webkit-user-select: inherit;
    -ms-touch-action: inherit;
    touch-action: inherit;
    -ms-user-select: inherit;
    -moz-user-select: inherit;
    user-select: inherit;
}

.ph {
	/*background-image: url("../../../upload/wallpaper/");*/
	background-position: center center;
	background-size: cover;

}
.ph-sidebar {
    flex: 0 0 25%;
    max-width: 25%;
    background: rgba(66, 11, 28, 0.78);
    height: 100vh; 
    display: flex;
    justify-content: center;
    flex-flow: column nowrap; 
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition: 0s all!important;
}

.test-collapse-sidebar{
    position: absolute;
    left: 10px;
    top: 10px;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    z-index: 1;
    background-color: rgba(255,255,255,0.6);
}

.ph-info{
    flex: 0 0 35%;
    height: 35%;

    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: flex-start;
}

.ph-info .ph-logo{
    width: 60%;
    height: 200px;
    background-color: transparent;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.ph-info .ph-company{
    text-align: center;
    color: white;
}

.ph-info .ph-company h1{
    font-size: 1em;
    font-weight: bolder;
}

.ph-menu{
    width: 100%;
    height:auto;
    display:flex;
    flex-flow: row nowrap;
    justify-content: space-around;
    margin-top: 20px;
}

.ph-menu > button{
    flex: 0 0 30%;
    background-color: rgba(255,255,255,.5);
    border: none;
    box-shadow: none;
    padding: 2%;
}

.ph-menu > button:hover{
    filter: brightness(150%);
}

.ph-menu > button.active{
    filter: brightness(200%);
}

.ph-options{
    overflow: auto;
    flex: 0 0 45%;
    width: 100%;
    height: 45%;
    margin-top: 20px;
}

.test{
    width: 125px;
    height: 125px;
    margin: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;

    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
}

.test.wBackground{
    background-color: rgba(255,255,255,.4);
}

.test:hover{
    filter: brightness(150%);
}

.test .test-icon{
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.test .test-title{
    display: none;
    background-color: black;
    color: white;
    width: 100%;
    height: auto;
    text-decoration: none;
    position: absolute;
    text-align: center;
    /*overflow-wrap: break-word;*/
    font-size: .9em;
    bottom: 0%;
    left: 0;
    font-weight: bold;
    padding: 5px;
    z-index: 100;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ph-tags div,button{
    letter-spacing: 1px;
    font-weight: bold;
}

/*.test .test-title:hover{
    opacity: 1;
}*/

.ph-footer {
    display: flex;
    align-items: center;
    flex-flow: column nowrap;
    justify-content: center;
    position: absolute;
    bottom: 0;
    max-height: 13%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.50);
    color: white;
    font-size: .7rem;
    padding: 1.125rem;
    text-align: center;
    z-index: 1000;
}

.ph-footer > * + * {
	margin-top: 0.625rem;
}

.ph-container{
    flex: 1;
    min-width: 0px;
    height: 100vh;
    background-color: transparent; 

    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
}

.ph-search{
    width: 80%;
    margin: 0 auto;
    position: relative;
}

.ph-tags div{
    width: auto;
    height:30px;
    background-color: rgba(255,255,255,.5);
    display: inline-block;
    margin: 5px;
    padding: 2%;
    cursor: pointer;
}

.ph-search input{
    border-radius: 2em;
    background-image: url('../img/search.svg');
    background-size: 20px;
    background-position: 4% center;
    background-repeat: no-repeat;
    padding: 5px 5px 5px 15%;
}

.ph-search .clear-search{
    display: none;
    width: 20%;
    height: 40%;
    position: absolute;
    top: 0;
    right: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url('../img/close.svg');
    background-size: 40%;
    cursor: pointer;
}

.category{
    width: calc(100% - 15px);
    height: auto;
    cursor: pointer;
    display: flex;
    flex-flow: row nowrap;
    padding: 10px;
    margin: 5px;
}

.category span{
    color: inherit;
    font-weight: bolder;
    text-transform: uppercase;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category input{
    flex: 1 1 0;
    margin: 5%;
}

.ph-category{
    width: 100%;
    height: 200px;
    overflow: visible;
    position: relative;
    border-top: 1px solid rgba(255,255,255,.4);
    margin-top: 1.6em;
}

.ph-category span{
    position: absolute;
    top: -1em;
    right: 10%;
    width: auto;
    height: auto;
    font-size: 1.5em;
    text-transform: uppercase;
    z-index: 1000;
    color: white;
    background-color: rgba(0,0,0,.5);
    text-align: center;
    padding-left: 3px;
    padding-right: 3px;
}

.ph-category .container{
    height: 100%;
    width: 100%;
    overflow: auto;

    display: flex;
    flex-flow: row nowrap;
}

.ph-category a{
    display: inline-block;
}

input {
    border: none;
    outline: none;
    border-radius: 1px;
    
    min-height: 2rem; 

    background-color:  rgba(255, 255, 255, 0.50);
    padding: 0.5rem 1rem;
    width: 100%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transition: all .3s ease-in-out; 
}

input:focus {
    background-color: rgba(66, 11, 28, 0.78);
    color: white;
}

.ph-container .ph-test{
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    overflow: auto;
    display: flex;
    flex-flow: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
}

h1, h2, h3, h4 ,h5, h6, strong {
	margin: 0;
	vertical-align: top;
	display: block;
}

.m-menu {
  display: none;
  margin: 1em;
  width: 36px;
}

.m-menu:before,
.m-menu:after {
  background-color: #fff;
  content: '';
  display: block;
  height: 4px;
  transition: all 200ms ease-in-out;
}
.m-menu:before {
  box-shadow: 0 10px 0 #fff;
  margin-bottom: 16px;
}
.close.m-menu:before {
  box-shadow: 0 0 0 #fff;
  transform: translateY(10px) rotate(45deg);
}
.close.m-menu:after{
  transform: translateY(-10px) rotate(-45deg);
}

.ph-spinner{
    display: none;
    width: 75%;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
}

.ph-test .test .test-title span{
    position: relative;
    top: 0;
    left: 0;
    font-size: 1em;
    text-align: left;
}

.spinner {
  width: 40px;
  height: 40px;
  background-color: #333;

  margin: 100px auto;
  -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
  animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes show-tooltip{
    0%{
        opacity: 0;
        -webkit-transform: rotateX(90deg) translateY(-100%);
    }
    50%{
        opacity: .5;
        -webkit-transform: rotateX(45deg) translateY(-50%);
    }
    100%{
        opacity: 1;
        -webkit-transform: rotateX(0deg) translateY(0%);
    }
}

@keyframes show-tooltip{
    0%{
        opacity: 0;
        transform: rotateX(90deg) translateY(-100%);
    }
    50%{
        opacity: .5;
        transform: rotateX(45deg) translateY(-50%);
    }
    100%{
        opacity: 1;
        transform: rotateX(0deg) translateY(0%);
    }
}

.show-tooltip{
    -webkit-animation: show-tooltip .4s linear forwards;
    animation: show-tooltip .4s linear forwards;
}

@-webkit-keyframes hide-tooltip{
    0%{
        opacity: 1;
        -webkit-transform: rotateX(0deg) translateY(0%);
    }
    50%{
        opacity: .5;
        -webkit-transform: rotateX(45deg) translateY(-50%);
    }
    100%{
        opacity: 0;
        -webkit-transform: rotateX(90deg) translateY(-100%);
    }
}

@keyframes hide-tooltip{
    0%{
        opacity: 1;
        transform: rotateX(0deg) translateY(0%);
    }
    50%{
        opacity: .5;
        transform: rotateX(45deg) translateY(-50%);
    }
    100%{
        opacity: 0;
        transform: rotateX(90deg) translateY(-100%);
    }
}

.hide-tooltip{
    -webkit-animation: hide-tooltip .4s linear forwards;
    animation: hide-tooltip .4s linear forwards;
}

@-webkit-keyframes sk-rotateplane {
  0% { -webkit-transform: perspective(120px) }
  50% { -webkit-transform: perspective(120px) rotateY(180deg) }
  100% { -webkit-transform: perspective(120px) rotateY(180deg)  rotateX(180deg) }
}

@keyframes sk-rotateplane {
  0% { 
    transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg) 
  } 50% { 
    transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
    -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg) 
  } 100% { 
    transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
  }
}

@media (max-width: 33.9em) { 
	html { font-size: 80%;  }
}

@media (min-width: 34em) and (max-width: 47.9em) {
	html { font-size: 90%; }
} 
@media (min-width: 48em){ 
	html { font-size: 100%;  }
}

@media only screen and (max-width: 47.9em) , only screen and (orientation: portrait) {
    .ph{
        flex-flow: column nowrap;
    }
    .test .test-title{
        /*display: block!important;*/
        opacity: 1!important;
        top: 100%;
        position: initial;
        text-decoration: none;
        font-size: .8em;
        margin-right: 5%;
        display: flex!important;
        /*justify-content: center;*/
        align-items: center;
        height: 100%;
    }
    .test-collapse-sidebar{
	display: none;
    }
    .ph-test{
        padding-bottom: 100px;
        display: flex;
        flex: 1;
        width: 100%;
        height: 100%;
        padding: 10px;
        overflow: auto;
        flex-flow: column!important;
        justify-content: flex-start!important;
        flex-direction: column!important;
        justify-content: flex-start!important;
        align-items: flex-start!important;
        align-content: flex-start!important;
    }
    .ph-test a{
        flex: 1;
        margin: 3% 0;
        text-decoration: none!important;
        width: 100%;
        margin: 1%!important;
        padding: 0!important;
    }
    .ph-test .test{
        display: flex;
        flex-direction: row;
        width: 100%;
        margin: 0!important;
        padding: 0!important;
    }
    .ph-test .test .test-icon{
        max-width: 80px;
        margin-right: 5%;
    }
    .ph-category{
        width: 100%;
    }

    .ph-menu{
        display: none;
        position: fixed;
        height: auto;
        top: 0;
        width: auto;
        margin-top: 2.5%;
    }

    .ph-menu > button{
        margin: 5px;
    }

    /*.ph-menu > button:first-child{
        margin-top: 0;
    }*/

    .ph-container{
        width: 100%;
        height: 66vh;
        flex: 0 0 66%;
    }

    .ph-options{
        position: fixed;
        display: none;
        margin: 0;
        top: 9%;
        height: calc(((1vw+1vh)/2)*65);
        width: 90%;
    }
    .category input{
        margin: 2%;
    }
    .select2-search__field{
        margin:0;
    }

    .ph-search{
        /*margin-top: 5vh;*/
        padding: 0;
        margin: 0 15%;
    }

    .ph-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 10vh;
    }

    .test{
        width: 80px;
        height: 80px;
    }

    .ph-info{
        flex-flow: row nowrap;
        flex: 0 0 100%;
        height: 100%;
        justify-content: center;
    }
    .ph-info .ph-logo{
        width: calc(((1vw+1vh)/2)*15);
	height: calc(((1vw+1vh)/2)*15);
        position: absolute;
        margin: 4%;
        top: 0;
        left: 0;
        background-color: transparent;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    .ph-logo{
        height: 100%;
    }

    .ph-sidebar {
	flex: 0 0 25%;
	max-width: 100%;
	height: 25vh;
	display: flex;
	justify-content: center;
	flex-flow: column nowrap;
	overflow: hidden;
    }

    .ph-company{
        padding-bottom: 20px;
        font-size: 1.8em;
        margin-top: 10%;
    }

    /*.ph-logo,.ph-tagsSearch{
        padding-top: 20px;
    }*/

    .ph-tagsSearch,.ph-tags,.ph-search{
        padding-left: 20px;
    }

    .ph-category{
        /*height: 100px;*/
        /*height: 10em;*/
        height: 100%;
    }

    .ph-category .container {
        flex-flow: column;
    }

    .ph-category span{
        right: 20%;
        width: auto;
    }

    .ph-spinner{
        display: none;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        right: 0;
    }

    .m-menu{
        z-index: 1000;
        position: fixed;
        display: block;
        top: 0;
        right: 0;
    }

}
.view_more{
    display: none;
}
.category_title :hover{
    display: inline-block;
}

