*, *:after, *:before {
    box-sizing: border-box;
}

.wrapper {
    background: white;
	flex: 1;
}

.container {
    overflow: auto;
    margin: auto;
    width: 82rem;
    min-height: 65vh;
    padding: 0 2rem;
}

.quizes-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1rem;
    color: #3b3b3b;
}

.quizes-bottom {
    margin-bottom: 4rem;
}

.change-page {
    cursor: pointer;
    padding: 0.3rem;
    margin: 0 0.4rem;
    user-select: none;
}
.change-page:hover {
    filter: brightness(1.5);
}

.change-page-disabled {
    pointer-events: none;
    opacity: 0.5;
}

.current-page {
    width: 2.5rem;
    padding: 0.3rem;
    margin: 0 0.4rem;
    text-align: center;
    border: 0.1rem solid rgb(201, 201, 201);
    border-radius: 0.2rem;
    outline: none;
    color: #282828;
}

#quizes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 3em;
    margin-top: 1em;
    margin-bottom: 4em;
}


.quiz h3 {
    font-weight: normal;
    font-size: 1.5em;
    padding: 0.6em 0em;
    margin: 0em;
}


.quiz {
    position: relative;
    color: #262626;
    background: rgb(255, 255, 255);
    border-radius: 0.5em;
    /*box-shadow: 2px 0px 6px rgba(0, 0, 0, 0.308);*/
    overflow: hidden;
    border: 1px solid #00000026;
}

.top {
    position: relative;
    background: rgba(255, 255, 255, 0.123);
    background-image: url("../media/background.png");
    background-blend-mode: lighten;
    background-repeat: no-repeat;
    background-size: 100% 84%;
    user-select: none;
    height: 16.8em;
}
.top:hover {
    cursor: pointer;
    transition-duration: 300ms;
    background: rgba(0, 0, 0, 0.397);
    background-image: url("../media/background.png");
    background-blend-mode: darken;
    background-repeat: no-repeat;
    background-size: cover;
}
.top:hover > .overlay {
    transition-duration: 300ms;
    display: inline-block;
    color: white;
}
.overlay {
    position: absolute;
    text-align: center;
    font-size: 1.8em;
    z-index: 1;
    margin: 0em;
    top: 42%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    user-select: none;
    color: rgba(255, 255, 255, 0);
}

.bottom {
    position: relative;
    padding: 0em 1.4em;
    padding-bottom: 0.5em;
    border-top: 0.08rem solid rgba(0, 0, 0, 0);
    z-index: 3;
    background: white;
}

.date {
    font-size: 1.1em;
    color: rgb(63, 63, 63);
    margin: 0.5em 0em;
    font-weight: normal;
}

.quiz {
    display: inline-block;
}

.button-container {
    display: flex;
    align-items: center;
}

.quiz .button-remove {
    display: inline-block;
    background: none;
    color: #6F2C86;
    border: none;
    outline: none;
    cursor: pointer;
    height: 100%;
}

.quiz .button-remove:hover {
    transition-duration: 100ms;
    color: #4b1e5a;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.add-quiz {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 23rem;
    text-decoration: none;
    transition-duration: 200ms;
}
.add-quiz:hover  {
    background: #fbf1ff;
}
.add-quiz:hover  > .add-quiz-body {
    color: #5B0877;
}

.add-quiz-body {
    text-align: center;
    color: #262626;
    transition-duration: 200ms;
}

.add-quiz-body .plus {
    margin: 0;
    line-height: 5rem;
    font-size: 4.2rem;
}

.add-quiz-body .text {
    margin: 0;
    font-size: 1.4rem;
}

.vote {
    display: flex;
    align-items: center;
}
.vote p {
    margin: 0 0.2em;
}


.quiz-info {
    transition-duration: 200ms;
    top:220px;
    left: 0px;
    position: absolute;
    display: inline-block;
    background: rgb(255, 255, 255);
    width: 100%;
    height: 200px;
    z-index: 1;
}
.quiz-info h3, .quiz-info p {
    padding-left: 1.4rem;
    padding-right: 3.4rem;
    text-overflow: ellipsis;
    overflow: hidden;
}
.quiz-info .arrow {
    position: absolute;
    top: 1.6rem;
    right: 1.4rem;
    transform: rotateZ(180deg);
}
.quiz-info .arrow-flip {
    transform: rotateZ(0deg);
}

.info-show {
    transition-duration: 200ms;
    top: 0px;
    left: 0px;
    position: absolute;
    display: inline-block;
    background: rgb(255, 255, 255);
    position: absolute;
    display: inline-block;
    height: 100%;
    z-index: 2;
}

.description {
    margin-top: 0;
    -webkit-line-clamp: 8;
    line-clamp: 2; 
    -webkit-box-orient: vertical;
}

.explore-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: calc(1rem / 16) solid rgba(0, 0, 0, 0.363);
    padding: 0.6rem 6rem;
}
.explore-menu h1 {
    color: #303030;
    margin: 0;
}

.explore-menu-items {
    display: flex;
    align-items: center;
}

.search {
    position: relative;
}

.search img {
    position: absolute;
    right: 2.8rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.3rem;
}
.search img:hover {
    transition-duration: 200ms;
    cursor: pointer;
    filter: brightness(0.3);
}

.search-field {
    width: 24em;
    height: 2.6em;
    padding: 0em 1rem;
    margin: 0 2rem;
    border-radius: 1.2rem;
    outline: none;
    background: #EDEDED;
    box-shadow:0em 0em 0.2em #ab00e900;
    border: 0.063em solid #ab00e900;
    color: #282828;
}
.search-field:hover {
    transition-duration: 200ms;
    border: 0.063em solid #b8b8b8;
}
.search-field:focus {
    transition-duration: 200ms;
    border: 0.063em solid #b8b8b8;
    background: white;
}


.custom-select-wrapper {
    position: relative;
    display: inline-block;
    user-select: none;
}
.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}
.custom-select p {
    margin: 0;
    margin-right: 0.3rem;
    white-space: nowrap;
    color: #5c5c5c;
}
.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem;
    color: #262626;
    background: #ffffff;
    cursor: pointer;
}
.custom-options {
    position: absolute;
    display: block;
    overflow: hidden;
    top: 40%;
    left: 4rem;
    right: 0;
    min-width: 9rem;
    border-radius: 0.4rem;
    border: calc(1rem / 16) solid rgba(0, 0, 0, 0.158);
    background: #fff;
    box-shadow: 0rem 1rem 1.8rem rgba(0, 0, 0, 0.24);
    transition: all 0.2s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 2;
}
.custom-select.open .custom-options {
    top: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    z-index: 2;
}
.custom-option {
    position: relative;
    display: block;
    padding: 0.4rem 0.8rem;
    color: #3b3b3b;
    cursor: pointer;
    transition: all 0.2s;
}
.custom-option:hover {
    cursor: pointer;
    background-color: #cecece;
}
.custom-option.selected {
    color: #ffffff;
    background-color: #6f2c86;
}


.arrow {
    margin: 0.3rem;
    transition-duration: 200ms;
}
.open .arrow {
    transform: rotateX(180deg);
}

@media screen and (max-width: 1400px) {
    .container {
        max-width: 70rem;
        width: 100%;
    }

    .custom-options {
        left: 0;
    }

    #quizes {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 3em;
        margin-top: 1em;
        margin-bottom: 4em;
    }

    .explore-menu {
        padding: 0.6rem 2.5rem;
    }
    .explore-menu h1 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 800px) {
    .container {
        max-width: 40rem;
        width: 100%;
    }

    #quizes {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 3em;
        margin-top: 1em;
        margin-bottom: 4em;
    }

    .add-quiz {
        min-height: 10rem;
    }

    .explore-menu {
        padding: 0.6rem 1rem;
    }
    .explore-menu h1 {
        font-size: 1.5rem;
    }
    .explore-menu-items {
        flex-grow: 1;
    }
    .search {
        flex-grow: 1;
        margin: 0 1rem;
    }
    .search img{
        right: 0.8rem;
    }
    .search-field {
        width: 100%;
        margin: 0;
    }
}

@media screen and (max-width: 700px) {
    .add-quiz:hover  > .add-quiz-body {
        color: #5B0877;
    }

    .add-quiz {
        min-height: unset;
    }
    
    .add-quiz-body {
        display: flex;
        align-items: center;
        text-align: center;
        color: #262626;
        transition-duration: 200ms;
    }
    
    .add-quiz-body .plus {
        margin: 0;
        line-height: 4rem;
        font-size: 2rem;
        margin-right: 0.2rem;
    }
    
    .add-quiz-body .text {
        margin: 0;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 500px) {
    .container {
        max-width: 40rem;
        width: 100%;
    }

    #quizes {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 3em;
        margin-top: 1em;
        margin-bottom: 4em;
    }

    .explore-menu {
        flex-direction: column;
        /*align-items: flex-start;*/
    }
    .explore-menu h1 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        /*font-weight: normal;*/
    }
    .explore-menu-items {
        flex-direction: column;
        width: 100%;
        margin-top: 0.2rem;
    }
    .search {
        width: 100%;
        flex-grow: 1;
        margin: 0;
        margin-bottom: 0.5rem;
    }
    .search input[type="text"] {
        height: 2.5rem;
        font-size: 0.875rem;
    }
    #sort-dropdown {
        
    }
}