html {
    background-image: url("flashcards_large.gif");
    background-repeat: repeat;
    -webkit-animation: backgroundScroll 15s linear infinite;
    -webkit-animation-fill-mode: forwards;
    animation: backgroundScroll 20s linear infinite;
    animation-fill-mode: forwards;
    background-color: rgb(255, 255, 255);
    color: white;
}

h1{
    margin-bottom: 0px;
}
p.caption {
    font-size: small;
    margin-top: 0;
}


body {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.85);
    margin: 0px 15%;
    font-family: 'Courier New', 'Courier', monospace;
    font-weight: bold;
    padding: 50px 5%;
    min-height: 91vh;
}

footer{
    font-size: small;
    padding-top: 50px;
}


.photo, .photo-small {
    width: 100%
}

@media(min-width: 1000px) {
    .sideText {
        transform: rotate(90deg);
        left: 53%;
        top: 0px;
        position: relative;
        text-align: right;
        font-size: 30pt;
        margin: 0;
        padding: 0;
    }
    
    .photo-small {
        width: 50%;
    }
}

.pageicon {
    position: relative;
    display: inline-block;
}

.pageicon .tooltiptext {
  width: 60px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
 
  position: absolute;
  z-index: 1;
  top: 80%;
  left: 50%;
  margin-left: -30px;
}

.pageicon:hover .tooltiptext {
  visibility: visible;
}


@-webkit-keyframes backgroundScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 384px 384px;
    }
}

@keyframes backgroundScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 384px 384px;
    }
}

.cardbutton{
    height: 40px;
    width: 95px;
}

#nextButton{
    width: 400px;
    font-size: 16pt;
}

#cardtext{
    color: black;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
        user-select: none; /* Non-prefixed version, currently
                        supported by Chrome, Edge, Opera and Firefox */
}

#card {
    min-height: 400px;
    width: 400px;
    background-color: beige;
    display: flex;
    align-items: center; 
    justify-content: center;
    inline-size: 400px;
    overflow-wrap: anywhere;
    font-size: 18pt;
}

.menubox {
    outline: 1px solid white;
    padding: 5px;
    
    margin-top: 10px;
    margin-bottom: 10px;
}

@media(max-width: 1000px) {
    body {
        margin: 0 40px;
        padding: 10px 10px;
    }

    html {
        background-image: url("flashcards_small.gif");
    }

    .sideText {
        font-size: 16pt;
    }
}


@media(max-width: 600px) {
    body {
        margin: 0 20px;
        padding: 10px 10px;
    }

    html {
        background-image: url("flashcards_extrasmall.gif");
    }

    #card{
        min-height: 400px;
        width: 100%;
    }

    #nextButton{
        width: 100%;
    }
}