html {
    font-family: 'Cinzel', serif;
}

body {
    background: url(../img/regicide-bannerimg.png) repeat;
    background-size: cover;
    animation: slide 30s linear infinite;
    background-blend-mode: multiply;
    
}


#menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
}

#title{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2vw;
    margin-bottom: 2vw;
}

#title img{
    width: auto;
    height: 600px;
}

#startGameButtons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#difficultyControl {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.difficultyLabel {
    color: rgba(217, 185, 144, 0.9);
    font-size: 18px;
    font-weight: bold;
}

#difficultyToggle {
    background-color: rgba(217, 185, 144, 0.7);
    color: rgb(30, 30, 30);
    padding: 0.8rem 1.5rem;
    border: 2px solid rgba(217, 185, 144, 0.9);
    border-radius: 15px;
    font-size: 16px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#difficultyToggle:hover {
    background-color: rgba(217, 185, 144, 0.9);
    transform: scale(1.05);
}

#difficultyToggle.active-normal {
    background-color: rgba(100, 200, 100, 0.7);
    border-color: rgba(100, 200, 100, 0.9);
}

#difficultyToggle.active-hard {
    background-color: rgba(220, 100, 100, 0.7);
    border-color: rgba(220, 100, 100, 0.9);
}

.menuButton {
    background-color: rgba(217, 185 ,144 ,0.7);
    padding: 1.5rem;
    border-radius: 25px;
    width: 250px;
    height: auto;
    font-size: 25px;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    font-weight: bold;
}

#multiButton{
    opacity: .7;
}

#header {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    margin: 0.25rem;
    padding-right: 15%;
    padding-left: 15%;
    margin-bottom: 2%;
}

#enemiesInQueue{
    padding-left: 15vw;
    display:none;
}


#enemiesInQueue img{
    height: 50px;
    width: auto;
    margin: 0 2px 0 2px;
    opacity: 0.7;
}


.topDeck {
    background-color: rgba(255,255,255,.7);
    font-weight: 900;
    border-radius: 25px;
    text-align: center;
    padding: 0.25rem 0.5rem;
    font-size: 14px;
}

#currentEnemies {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding-bottom: 5px;
    gap: 20px;
}

#enemyStats {
    display: none;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

#enemyCardsContainer {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
}

.enemyCard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.enemyCard.selected {
    border: 3px solid #FFD700;
    border-radius: 15px;
    padding: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.enemyCardImg {
    width: 200px;
    height: auto;
}

.enemyCardStats {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.enemyCardHealth {
    background-color: rgba(192, 34, 0, 0.7);
    border: 2px solid #C02200;
    border-radius: 10px;
    padding: 8px 15px;
    text-align: center;
    min-width: 60px;
}

.enemyCardHealthNum {
    font-size: 24px;
    color: #ffffff;
    font-weight: bold;
}

.enemyCardStrength {
    background-color: rgba(90, 48, 39, 0.788);
    border: 2px solid #5A3027;
    border-radius: 10px;
    padding: 8px 15px;
    text-align: center;
    min-width: 60px;
}

.enemyCardStrengthNum {
    font-size: 24px;
    color: #ffffff;
    font-weight: bold;
}

.enemyCard.captured {
    animation-name: captured;
    animation-duration: 1s;
}

.enemyCard.destroyed {
    animation-name: opacityHide;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

.enemyCardButton {
    background-color: rgba(100, 200, 100, 0.8);
    border: 2px solid #228B22;
    color: #000000;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
}

.enemyCardButton:hover {
    background-color: rgba(100, 200, 100, 1);
    box-shadow: 0 0 10px rgba(34, 139, 34, 0.7);
}

.statusTitle {
    font-size: 20px;
}

.statusNum{
    font-size: 40px;
}

.boxForStat{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255,255,255,.85);
    border-radius: 25px;
    width: 130px;
    padding: 5px;
}

#playerHand{
    display: flex;
    flex-flow: row;
    justify-content: space-evenly;
    align-items: center;
    margin: 1rem 12vw;
    padding-right: 2.5vw;
    position:relative;
    width: 900px
} 

#container{
    display:none;
}


#enemyImage img{
    width: 300px;
    height: auto;
}

#enemyHealth{
    color:#C02200;
}

#enemyStrength{
    color: #5A3027;
}

#footer{
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.cardsInPlay{
    width: 150px;
    height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 2px;
    padding-left: 2px;
}

#middle{
    display: none;
    flex-direction: row;
    justify-content: center;
}
 
#playArea{
    display: flex;
    height:220px;
    box-shadow: inset 0px 0px 20px 6px rgb(255, 255, 255);
    flex-flow: row;
    justify-content: space-evenly;
    margin: 10px 30%;
    margin-right: 7vw;
    margin-left: 17vw;
    align-items: center;
    width: 800px;
    background-color: rgba(255,255,255,.5);
}

#playArea.enemy{
    box-shadow: inset 0px 0px 20px 6px #C02200;
}

#statBox{
    display:flex;
    justify-content: center;
    align-items: center;
}

#statActualBox{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    width:250px;
    height: 180px;
    /* font-weight: 900; */
    border-radius: 25px;
    padding: 0.5rem;
    background-color: rgba(144, 238, 144,.7);

}

#statActualBox.enemy{
    background-color: rgba(247, 44, 44, 0.7);
    color: white;
}

.statDesc{
    font-size: 25px;
}

.statNum{
    font-size: 100px;
}

#actionButton{
    display: flex;
    justify-content: end;
    margin: 1rem;
    opacity: 0.5;
    pointer-events: none;
}

.action {
    padding: 1.5rem;
    border-radius: 25px;
    width: 250px;
    height: auto;
    font-size: 25px;
    font-family: 'Cinzel', serif;
    font-weight: bolder;
}

#jokers{
    display: flex;
    align-items: center; 
}

#jokers img {
    display: flex;
    justify-content: left;
    height: 100px;
    width: auto;
    margin-left: 1vw;
}

.joker.taken{
    opacity: 0.25;
}


.modal {
    display: none;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: none;
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

#modalWin{
    display: none;
}

#modalLose{
    display: none;
}

#modalHelp{
    display: none;
}

#showHelpModal{
    display: none;
}

#modalCheat{
    display: none;
}

h3{
    color: white;
    font-size: 50px;
  }

.modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
  margin: 10% auto; /* 15% from the top and centered */
  padding: 25px;
  width: 20%; /* Could be more or less, depending on screen size */
  border-radius: 25px;
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
}

.modal-content.winModal{
    background-color: rgb(119, 174, 119, .9);
    border: 2px solid black;
    text-align: center;
}

.modal-content.winModal h3{
    margin-bottom: 5px;
    font-size: 40px;
}

.modal-content.winModal h4{
    margin: 5px;
}
.modal-content.loseModal{
    background-color: rgb(192, 90, 90, .9);
    border: 2px solid black;
}

.modal-content.cheatModal{
    background-color: rgb(0, 0, 0, .95);
    border: 2px solid black;
    margin: 20% auto; /* 15% from the top and centered */
    animation: none;
}

.tutorialModal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.tutorialModalContent {
    background-color: rgba(217, 185, 144, 0.95);
    margin: 5% auto;
    padding: 35px;
    width: 60%;
    max-width: 800px;
    border-radius: 25px;
    border: 3px solid rgb(139, 105, 70);
    position: relative;
}

.tutorialClose {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 40px;
    font-weight: bold;
    color: rgb(30, 30, 30);
    cursor: pointer;
    transition: color 0.3s ease;
}

.tutorialClose:hover {
    color: rgba(220, 100, 100, 0.8);
}

.tutorialModalContent h2 {
    color: rgb(30, 30, 30);
    font-size: 35px;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.tutorialText h2 {
    color: rgb(30, 30, 30);
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 12px;
    border-bottom: 2px solid rgb(139, 105, 70);
    padding-bottom: 8px;
}

.tutorialText {
    color: rgb(30, 30, 30);
    font-size: 16px;
    line-height: 1.6;
}

.tutorialText p {
    margin: 12px 0;
}

.tutorialModalContent h3 {
    color: rgb(30, 30, 30);
    font-size: 20px;
    margin-top: 18px;
    margin-bottom: 10px;
}

.tutorialText ul {
    color: rgb(30, 30, 30);
    margin: 10px 0;
    padding-left: 30px;
}

.tutorialText ul li {
    margin: 6px 0;
    color: rgb(30, 30, 30);
}

.tutorialText table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgb(139, 105, 70);
}

.tutorialText table th {
    background-color: rgba(139, 105, 70, 0.8);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid rgb(139, 105, 70);
}

.tutorialText table td {
    padding: 12px;
    color: rgb(30, 30, 30);
    border-bottom: 1px solid rgb(200, 170, 130);
}

.tutorialText table tr:hover {
    background-color: rgba(217, 185, 144, 0.3);
}

.tutorialText strong {
    color: rgb(30, 30, 30);
    font-weight: bold;
}

.cheatModal h4{
    margin: 10px;
    font-style: italic;
    font-size: 20px;
    color: white;
}

.helpModal h4{
    margin: 5px;
    margin-bottom:0px;
    font-style: italic;
}

.helpModal p{
    margin-top: 1px;
    margin-bottom: 5px;
    font-size: 17px;
}


.creditModal h5{
    font-size: 20px;
    margin: 5px;
}

#modalHelp {
    position: fixed; /*Stay in place */
    z-index: 1; /* Sit on top */
    left: 60.5%;
    top: 0;
    bottom: 0;
    width: 45vw; /* Full width */
    height: auto; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,.0); /* Black w/ opacity */
    overflow-y: scroll;
    overflow-x: hidden;
    animation-duration: 0.5s;
    animation-iteration-count: infinite;
    opacity: 0;
}

.helpModal{
    display: flex;
    flex-direction: column;
    justify-content: left;
    padding: 25px;
    margin: 25px;
    margin-left: 60px;
    background-color: white;
    border: 2px solid black;
    font-size: 20px;
    font-weight: bold;
    width: 80%; /* Could be more or less, depending on screen size */
    border-radius: 25px 0 0 25px;
}

.helpModal h2{
    margin:0;
    padding:5px;
}

.helpModal .flexJokers{
    display: flex;
    flex-direction: column;
}

.helpJoker{
    height: auto;
    width: 4.5vw;
}

.lessMargin{
    margin: 0px;
    padding: 0px;
}

.helpModal .flexSuits{
    display: flex;
    flex-direction: row;
    }

.helpModal .flexSuits img{
    height: 7.2vw;
    width: auto;
    }

#showHelpModal{
    position: fixed; /*Stay in place */
    z-index: 1; /* Sit on top */
    left: 96%;
    top: 0;
    bottom: 0;
    width: 5vw; /* Full width */
    height: auto; /* Full height */
    overflow: none; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0); /* Black w/ opacity */
    opacity: .7;
}

.showHelp{
    display: flex;
    flex-direction: column;
    justify-content: left;
    margin: 25px;
    margin-top: 10vw;
    background-color: lightgreen;
    border: 2px solid black;
    font-size: 50px;
    font-weight: bold;
    width: 10vw; /* Could be more or less, depending on screen size */
    border-radius: 25px 0 0 25px;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

#enemyImage .victoryImg{
    height:200px;
    width: auto;
    animation-name:opacityShow;
    animation-duration: 8s;
    animation-iteration-count: 1;
}

#cheats{
    display: none;
    background-color: white;
    padding: 5px;
    border-radius: 25px;
}

/*-----------------------------------------------------------------------------*/
/*-----------------------------ANIMATIONS--------------------------------------*/

#enemyImage.captured{
    animation-name:captured;
    animation-duration: 1s;
    animation-iteration-count:infinite
}

#enemyImage.destroyed{
    animation-name: opacityHide;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

#enemyImage.kingArrival{
    animation-name: opacityShowKings;
    animation-duration: 6.5s;
    animation-iteration-count: 1;
}

@keyframes opacityShowKings{
        0% {opacity: 0; transform: scale(2,2)}
        100% {opacity: 1; transform: scale(1,1)}
      }


@keyframes captured{
    0%  { transform: scale(1,1);}
    50%  { transform: scale(1.1,1.3); }
    100% { transform: scale(0);}
  }


@keyframes slide {
    0%{background-position: 0 0;}
    100%{background-position: -2122px 0;}
}

  #modalHelp .modal-content{
    animation-name: none;
  }

  .opacityShow{
    animation-name: opacityShow;
  }

  @keyframes opacityShow{
    0% {opacity: 0;}
    100% {opacity: 1;}
  }

  .holdHelp.opacityHide{
    animation-name: opacityHide;
  }

  @keyframes opacityHide{
    0% {opacity: 1;}
    100% {opacity: 0;}
  }

  .holdHelp{
    animation-name: holdHelp;
  }

  @keyframes holdHelp{
    0% {opacity: 1;}
    100% {opacity: 1;}
  }


.modal .modal-content{
    animation-name: appear;
    animation-timing-function: ease;
  }
  @keyframes appear{
    0%  { transform: scale(0)}
    50%  { transform: scale(1.1,1.3)}
    100% { transform: scale(1,1)}
  }
  
  .holdLose .modal-content.loseModal{
    animation-name: holdLose;
    animation-timing-function: ease;
  }
  @keyframes holdLose{
    0%  { transform: scale(1,1)}
    50%  { transform: scale(.98,1.02)}
    100% { transform: scale(1,1)}
  }

  .holdWin .modal-content.winModal{
    animation-name: holdWin;
    animation-timing-function: ease;
  }
  @keyframes holdWin{
    0%  { transform: scale(1,1)}
    50%  { transform: scale(.95,1.05)}
    100% { transform: scale(1,1)}
  }


  .apply-shake-weak {
    animation: shakeWeak .7s cubic-bezier(.36,.07,.19,.97) both;
}
  @keyframes shakeWeak {
    10%, 90% {
      transform: translate3d(-1px, 0, 0);
    }
  
    20%, 80% {
      transform: translate3d(2px, 0, 0);
    }
  
    30%, 50%, 70% {
      transform: translate3d(-4px, 0, 0);
    }
  
    40%, 60% {
      transform: translate3d(4px, 0, 0);
    }
  }

  .apply-shake-mid {
    animation: shakeMid .9s cubic-bezier(.36,.07,.19,.97) both;
}
  @keyframes shakeMid {
    10%, 90% {
      transform: translate3d(-4px, 0, 0);
    }
  
    20%, 80% {
      transform: translate3d(6px, 0, 0);
    }
  
    30%, 50%, 70% {
      transform: translate3d(-10px, 0, 0);
    }
  
    40%, 60% {
      transform: translate3d(10px, 0, 0);
    }
  }

  .apply-shake-strong {
    animation: shakeStrong 1.2s cubic-bezier(.36,.07,.19,.97) both;
}
  @keyframes shakeStrong {
    10%, 90% {
      transform: translate3d(-10px, 0, 0);
    }
  
    20%, 80% {
      transform: translate3d(10px, 0, 0);
    }
  
    30%, 50%, 70% {
      transform: translate3d(-20px, 0, 0);
    }
  
    40%, 60% {
      transform: translate3d(20px, 0, 0);
    }
  }

/*-----------------------------------------------------------------------------*/
/*---------------------FOR DIFFERENT SCREEN SIZES------------------------------*/

@media (max-width:2100px) {

    #statActualBox{
        width:200px;
        height: 130px;
        font-weight: 900;
        border-radius: 25px;
        padding: 0.5rem;
    }
    
    .statDesc{
        font-size: 20px;
    }
    
    .statNum{
        font-size: 75px;
    }

    #playArea{
        margin-left: 22vw;
        height:200px;
        width: 600px;
    }
    .cardsInPlay{
        width: 100px;
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    #playerHand{
        margin: 1rem 5vw;
        width: 750px
    } 

    .action {
        padding: 1.5rem;
        width: 200px;
        font-size: 15px;
    }
}

@media (max-width:1920px) {

    #title img{
        height: 400px;
    }

    #enemyImage img{
        width: 250px;
    }

    #showHelpModal{
        width: 4vw; /* Full width */
    }
    
    .showHelp{
     font-size: 40px;
    }

    #statActualBox{
        width:200px;
        height: 130px;
        font-weight: 900;
        border-radius: 25px;
        padding: 0.5rem;
    }
    
    .statDesc{
        font-size: 20px;
    }
    
    .statNum{
        font-size: 75px;
    }

    #playArea{
        margin-left: 22vw;
        height:200px;
        width: 600px;
    }
    .cardsInPlay{
        width: 100px;
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    #playerHand{
        margin: 1rem 5vw;
        width: 750px
    } 

    .action {
        padding: 1.5rem;
        width: 200px;
        font-size: 15px;
    }
}

@media (max-width:1550px) {

    #title img{
        height: 300px;
    }

    .modal-content img{
        width:20vw;
        height:auto;
    }

    h3{
        color: white;
        font-size: 40px;
      }

      .showHelp{
        margin: 25px;
        margin-top: 10vw;
        background-color: lightgreen;
        border: 2px solid black;
        font-size: 35px;
        font-weight: bold;
        width: 6vw; /* Could be more or less, depending on screen size */
    }

    .topDeck {
        background-color: rgba(255,255,255,.7);
        font-weight: 900;
        border-radius: 25px;
        text-align: center;
        padding: 0.5rem;
        font-size: 13px;
    }    

    #enemiesInQueue img{
        height: 75px;
        width: auto;
        margin: 0 2px 0 2px;
        opacity: 0.7;
    }

    #enemyImage img{
        width: 170px;
    }

    
    .statusTitle {
        font-size: 30px;
    }

    .statusNum{
        font-size: 65px;
    }

    .boxForStat{
        border-radius: 25px;
        width: 200px;
        padding: 8px;
    }   

    .menuButton {
        width: 175px;
        height: auto;
        font-size: 15px;
        padding: 1.0rem;
    }

    #statActualBox{
        width:175px;
        height: 105px;
        font-weight: 900;
        border-radius: 25px;
        padding: 0.5rem;
        margin-right: 8vw;
    }
    
    .statDesc{
        font-size: 20px;
    }
    
    .statNum{
        font-size: 50px;
    }

    #playArea{
        height:150px;
        width: 500px;
        margin-left: 27vw;
    }
    .cardsInPlay{
        width: 75px;
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    #playerHand{
        margin: 1rem 5vw;
        width: 600px
    } 

    #jokers img {
        display: flex;
        justify-content: left;
        height: 50px;
        width: auto;
    }

    .action {
        padding: 1rem;
        width: 150px;
        font-size: 15px;
        text-align: center;
    }
    
}

@media (max-width:720px), (max-height:512px) {

    .topDeck {
        font-size: 12px;
    }

    #enemyImage img{
        width: 150px;
        height: auto;
    }

    .statusTitle {
        font-size: 25px;
    }
    
    .statusNum{
        font-size: 50px;
    }
    
    #statActualBox{
        width:125px;
        height: 55px;
        font-weight: 900;
        border-radius: 25px;
        padding: 0.5rem;
        margin-right: 8vw;
    }
    
    .statDesc{
        font-size: 13px;
    }
    
    .statNum{
        font-size: 20px;
    }

    #playArea{
        height:100px;
        width: 500px;
        margin-left: 27vw;
    }
    .cardsInPlay{
        width: 75px;
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    #playerHand{
        margin: 1rem 5vw;
        width: 400px
    } 

    #jokers img {
        display: flex;
        justify-content: left;
        height: 50px;
        width: auto;
    }

    .action {
        padding: 1rem;
        width: 150px;
        font-size: 15px;
        text-align: center;
    }
    
}
