@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f6f6f6;
    color: #1e1f26;
    font-family: 'Roboto', sans-serif;
    height: 100vh;;
}

body.dark {
    background-color: #1e1f26;
    color: #f6f6f6;
}

.container {
    width: 100%;
}

.title {
    display: inline-block;
    font-weight: 700;
    font-size: 120px;
    letter-spacing: -4px;
}

.text {
    display: inline-block;
    font-size: 28px;
    margin: 10px 0;
    font-weight: 300;
}

.synonyms-and-antonyms-wrap {
    margin-top: 40px;
}

.text.synonyms,
.text.antonyms {
    font-weight: 400;
    letter-spacing: -1px;
}

.text.synonyms {
    color: #006955;
}

.text.antonyms {
    color: #D64E52;
}

.play-front,
.play-back,
.next-btn {
    cursor: pointer;
}

.front,
.back {
    padding: 20px;
    width: 800px;
    height: 100%;
}

.hidden-block {
    display: none;
}

.card-inner {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.card-img {
    max-height: 100vh;
    max-width: 100%;
}

.img-wrap {
    position: relative;
    width: 100%; /* Adjust as needed */
    height: 0;
    padding-bottom: 100%; /* Aspect ratio */
    background-color: #3c3c3c; /* Gray color for placeholder */
  }
  
  .img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #3c3c3c; /* Gray color while loading */
  }
  

.prompt-img-wrapper {
    position: absolute;
    display: flex;
    bottom: 10px;
    right: 10px;
    height: 50px;
    align-items: end;
}

.prompt-img-icon {
    border: 1px solid #fff;
    padding: 5px 10px;
    border-radius: 50%;
    opacity: .5;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.prompt-img-text {
    margin: 0 10px;
    padding: 5px 10px;
    align-items: center;
    justify-content: center;
    background-color: #3b3b3b91;
}

.knowledge-indicator {
    position: absolute;
    bottom: 10px;
    display: flex;
}

.knowledge-indicator .dash {
    display: inline-block;
    width: 20px;
    height: 5px;
    margin-right: 5px;
    opacity: .5;
}

.knowledge-indicator .green {
    background-color: #006955;
}

.knowledge-indicator .red {
    background-color: #D64E52;
}

.knowledge-indicator .strip {
    display: inline-block;
    height: 5px;
    opacity: .5;
}

.btn-wrap {
    position: absolute;
    bottom: 0;
    right: 0;
}

button {
    all: unset;
}

.card-btn {
    color: #E7EEE7;
    background-color: transparent;
    padding: 40px 100px;
    cursor: pointer;
    transition: all .1s;
    letter-spacing: 6px;
    font-size: 14px;
}

#know:hover {
    background-color: #006955;
}

#dontKnow:hover {
    background-color: #D64E52;
}

.play:hover {
    background-color: #696752;
}

.play {
    position: absolute;
    top: 0;
    right: 0;
}


/* menu */

.menu-wrap {
    position: absolute;
    top: 0;
}

#menuToggle {
    display: block;
    position: relative;
    top: 50px;
    left: 50px;

    z-index: 1;

    -webkit-user-select: none;
    user-select: none;
}


.menu-checkbox {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;

    cursor: pointer;

    opacity: 0;
    /* hide this */
    z-index: 2;
    /* and place it over the hamburger */

    -webkit-touch-callout: none;
}

/*
  * Just a quick hamburger
  */
#menuToggle span {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: #E7EEE7;
    opacity: .5;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        opacity 0.55s ease;
}

#menuToggle span:first-child {
    transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

/* 
  * Transform all the slices of hamburger
  * into a crossmark.
  */
#menuToggle input:checked~span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: #1e1f26;
}

#menuToggle input:checked~.menu-line-hamburger.dark {
    background: #E7EEE7;
}

/*
  * But let's hide the middle one.
  */
#menuToggle input:checked~span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

/*
  * Ohyeah and the last one should go the other direction
  */
#menuToggle input:checked~span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
}

/*
  * Make this absolute positioned
  * at the top left of the screen
  */
.menu {
    position: absolute;
    width: 370px;
    margin: -100px 0 0 -50px;
    padding: 50px;
    padding-top: 125px;
    color: #1e1f26;
    background: #f6f6f6;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    /* to stop flickering of text in safari */

    transform-origin: 0% 0%;
    transform: translate(-100%, 0);

    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

.menu.dark {
    color: #f6f6f6;
    background: #1e1f26e3;
}


/*
  * And let's slide it in from the left
  */
#menuToggle input:checked~#menu {
    transform: none;
}

.menu-btn {
    cursor: pointer;
    display: block;
    transition: all .1s;
}

.change-btn {
    padding: 10px 20px;
    margin: 5px 0;
    border-radius: 10px;
    background-color: #1e1f26;
    transition: all .3s;
}

.change-btn:hover {
    background-color: #282931;
}

/* .menu-btn:hover {
    color: #696752;
}

#menuToggle {
    opacity: 0;
    transition: all .1s;
}

#menuToggle:hover {
    opacity: 1;
} */

/* end menu */

@media (min-width: 480px) {
    .prompt-img-wrapper{
        display: none;
    }
}

@media (min-width: 1280px) {
    .back .text.definition {
        margin-top: 20%;
    }

    .knowledge-indicator {
        bottom: auto;
    }
}

@media (max-width: 480px) {
    .card-inner {
        display: block;
    }

    .front,
    .back {
        width: 100%;
        padding: 0 10px
    }

    .title {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .text {
        font-size: 18px;
        margin: 5px 0;
    }

    .synonyms-and-antonyms-wrap {
        margin-top: 10px;
    }

    .synonyms-and-antonyms-wrap .text{
        margin: 1px 0;
    }

    .btn-wrap {
        display: flex;
        margin-bottom: 20px;
    }

    .card-btn {
        padding: 20px 40px;
    }

    #know:hover {
        background-color: initial;
    }
    
    #dontKnow:hover {
        background-color: initial;
    }
    
    .play:hover {
        background-color: initial;
    }

    #know:active {
        background-color: #006955;
    }
    
    #dontKnow:active {
        background-color: #D64E52;
    }

    .play {
        margin-top: 30px;
        opacity: .5;
    }
    
    .play:active {
        background-color: #696752;
    }

    .card-img {
        pointer-events: none;
    }

}