.main {
    grid-template:
        'navbar navbar navbar navbar' auto
        '. . . .' 80px
        '. video toc .' auto
        'footer footer footer footer' 1fr / 20px 4fr 1.5fr 20px;

    background-color: #f3f0dd;
    height: auto;
    min-height: 100vh;
}

.videos {
    display: block;
}
.icon{
    height: 40px;
}


.video {
    position: relative;
    width: 95%;
    display: none;
    grid-area: elearning;
}

.starting-holder {
    width: 50%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.starting-holder .question-title {
    margin-top: 0;
}

.points-holder,
.remaining-time-holder {
    padding: 1rem;
    padding-top: 1.5rem;
    text-align: center;
}
.points-holder h5,
.remaining-time-holder h5{
    font-weight: bold;
    font-size: 14px;
}
.points-holder span,
.remaining-time-holder span{
    font-size: 1.5rem;
    font-weight: bold;
    color: #36B39F;
}

select[name="romanian_videos"]{
  width:100%;
  padding:9px 5px;
  border-radius: .25rem;
  background-color: white;
  border-color: rgba(0,0,0,.1);
  color: black !important;
  text-align-last:center;
  outline:none !important;
  -moz-appearance:none; /* Firefox */
  -webkit-appearance:none; /* Safari and Chrome */
  appearance:none;
  padding: .375rem .75rem;
  line-height: 2rem;;
}

#romanian-videos-holder{
  position: relative;
  margin-bottom:1rem;
}

#romanian-videos-holder::after{
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  position: absolute;
  top:50%;
  right:20px;
  border: 0;
  font-weight: 600;
  line-height: 1;
  vertical-align: 0;
  display: block;
  color: black;
  transform: translateY(-50%);
}

@media screen and (max-width:1000px){
  #romanian-videos-holder{
    margin-top:1rem;
  }
}


/*
video::-webkit-media-controls-play-button {}
video::-webkit-media-controls-play-button {}
video::-webkit-media-controls-timeline {}
video::-webkit-media-controls-current-time-display{}
video::-webkit-media-controls-time-remaining-display {}
video::-webkit-media-controls-time-remaining-display {}
video::-webkit-media-controls-mute-button {}
video::-webkit-media-controls-toggle-closed-captions-button {}
video::-webkit-media-controls-volume-slider {}
*/
.content {
    line-height: 1;
}

.active {
    display: block;
}
.card.buttons-card {
    margin-bottom: 2rem;
}
.icon-sm {
    width: 25px;
    margin-right: 10px;
}
.video-btn {
    background: #507679;
    color: white;
    font-weight: bold;
    width: 100%;
    display: flex;
    align-items: center;

}
.read-btn {
    background: #d6a473;
    color: white;
    font-weight: bold;
    width: 100%;
    display: flex;
    align-items: center;
}
.video .questions,
.video .popup-text-container {
    display: flex;
    justify-content: center;
}
.questions-holder {
    background: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 500px;
    align-content: center;
    justify-content: center;
    width: 95%;
    display: flex;
    margin-bottom: 5rem;
}
.question-title {
    padding: 0 1rem;
    margin-top: 0;
    margin-bottom: 2rem;
    color: black;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}
.question-title-count{
    padding: 0 1rem;
    margin-top: 3rem;
    margin-bottom: 0.8rem;
    color: black;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}

.question {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}





.question.active {
    display: flex;
}

.answers {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    min-width: 25%;
}

.answer::before{
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    border: 1px solid #bdbdbd;
    background: white;
    margin-right: 10px;
}
.answer {
    border-radius: 5px;
    background-color: #efefef;
    margin-block-end: 1.5rem;
    font-size: 16px;
    text-align: left;
    color: black;
    padding: 10px 20px 10px 10px;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
    -moz-user-select: -moz-none;
    -webkit-user-select: none;
    /*box-shadow: 0px 3px 5px 1px rgba(0, 0, 0, 0.1);*/
}

.answer img {
    height: 1.5rem;
}

.answer.right-answer {
    background-color: var(--good-answer-color);
    color: white;
}

.answer.right-answer-border {
    border: 5px solid var(--good-answer-color);
    padding: 5px 15px;
}

.answer.wrong-answer {
    background-color: var(--wrong-answer-color);
    color: white;
}
.next-question-btn {
    padding: 10px 35px 10px 25px;
    font-weight: bold;
    align-self: flex-start;
    clip-path: polygon(0 0, 68% 0, 67% 2%, 68% 3%, 69% 5%,70% 8%, 100% 100%, 0% 100%);
}

.next-question-btn:disabled{
  opacity: .3;
  cursor: not-allowed;
}

.finished-badge {
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.finished-badge > img {
  /*max-height: 35%;*/
  max-width: 100%;
}

.success-finaltest-message{
  font-weight: bold;
  color:rgb(0,177,155);
}

.unsuccess-finaltest-message{
  font-weight: bold;
  color: rgb(232,83,82);
}

.showing-right-answers .answer {
    cursor: default;
}

.success-finaltest-button{
  font-weight: bold;
  min-width: 300px;
  font-size: 20px;
}

.hidden {
    display: none !important;
}

.card {
    border: none;
    -webkit-box-shadow: 0px 3px 5px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 3px 5px 1px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 3px 5px 1px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

.clickable {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.card-title {
    font-size: 1.6rem;
    border-bottom: none;
    margin: 0;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.card-title.card-subtitle {
    font-size: 1.3rem;
}

.card-item-title {
    /*font-size: 1.25rem;*/
    font-size: 14px;
    font-weight: 600;
}

.card > hr {
    display: none;
    margin: 0;
}

.card-items {
    margin-top: 10px;
    display: none;
    padding: 0.5rem 1rem;
}

a.video-change {
    color: #000;
    text-decoration: none;
}

a.video-change:hover {
    text-decoration: none;
}

/*
.card.opened > .card-title {
    border-bottom: 1px black solid;
}
*/
.card.opened > hr {
    display: block;
}

.card.opened > .card-items {
    display: block;
}

.card-item {
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    line-height: 2rem;
}

.toc {
    /* margin-top: -79px; */
    color: #000;
}

.your-points-container {
    display: flex;
    width: 100%;
    color: black;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 4rem 0;
}

.info {
    display: flex;
    justify-content: space-between;
    grid-area: lead;
}

.your-points-container > h5 {
    font-size: 2rem;
    font-weight: bold;

}
.your-points-container > h1 {
    font-size: 4rem;
    font-weight: bold;

}

.navigation-card {
    background: #53797c;
    color: white;
    font-weight: bold;
}
.navigation-card .btn {
    font-weight: bold;
    width: 100%;
}
.navigation-card .back-btn {
    background: #f3f0dd;
    color: #53797c;

}
.navigation-card .next-btn {
    background: #e1ae79;

}
.my-badge {
    max-width: 100%;
}

.btn-new-game {
    width: 100%;
    line-height: 2rem;
}

.video-change.active {
    color: #36b39f;
}

.popup {
    background-color: white;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 50%;
}

.video .popup-text-container {
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: calc(100% - 31px);
    background: rgba(0, 0, 0, 0.65);
    align-items: center;
}

.popup-text {
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}

@media only screen and (min-width: 1000px) {
    /*
    .your-points-container {
        width: 50%;
        justify-content: flex-end;
    }
    */

    .video .questions {
        position: absolute;
        top: 25px;
        left: 0;
        width: 100%;
        height: calc(100% - 31px);
        background: rgba(0, 0, 0, 0.65);
    }
}

@media only screen and (min-width: 1300px) {
    /*
    .your-points-container {
        width: 25%;
    }
    */
}

@media only screen and (max-width: 1000px) {
    .videos {
        grid-template:
        'lead lead' 1fr
        'elearning elearning' auto
        'toc toc' auto / 4fr 1.5fr;
    }
    .video {
        width: 100%;
    }

    .toc {
        margin-top: 0;
    }

    .info {
        display: block;
    }
    /*
    .question-title {
        color: #000;
    }
    */

    .video .questions {
        box-shadow: 0px 3px 5px 1px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
        margin-bottom: 15px;
        border-radius: 0.25rem;
    }

    .video .popup-text-container {
        top: 55px;
        height: calc(100% - 60px);
    }

    .popup-text {
        font-size: 14px;
    }

    .popup {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        max-width: 80%;
    }
}
