/* NETWORK+ GLOBAL STYLING */
* {
    cursor: url('../img/physgun.png') 45 33, auto;
}

a:hover, button:hover {
    cursor: url('../img/physgun.png') 45 33, pointer;
}

#cards h1, #quiz h1, #prog h1, #resource h1 {
    text-align: center;
    padding-bottom: 3vh;
}

@media (max-width: 480px) {
    .flashcard {
        width: 95vw;
        font-size: 1rem;
    }
    table {
        width: 100%;
        margin: 0;
    }
}

/* SUB-NAV */
#sub-nav {
    z-index: 100;
    position: sticky;
    top: 0;
    width: 100%;
    text-align: center;
    border-bottom: 3px solid white;
    background-color: black;
}

#sub-nav a {
    user-select: none;
    display: inline-block;
    padding: 10px;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    font-size: 1.2rem;
    border: 1px solid black;
}

#sub-nav a:hover {
    color: black;
    background-color: wheat;
    text-shadow: none;
}

/* INTRO */
#intro-head-bg {
    position: relative;
    background-image: url('../img/gm_construct.jpg');
    background-color: wheat;
    background-blend-mode: multiply;  
    background-size: 100% 100%;
    background-position: center;
    overflow: hidden;
}

#intro-head-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../img/gm_construct.jpg');
    background-color: rgb(169, 153, 124);
    background-blend-mode: multiply;    
    background-size: 100% 100%;
    background-position: center;
    overflow: hidden;

    filter: blur(3px);
    transform: scale(1.1);

    z-index: 0;
}

#intro-head-bg > * {
    position: relative;
    z-index: 1;
}

#intro-head {
    font-size: 3rem;
    text-align: center;
    padding: 3rem;
    color: white;
    text-shadow: 0 0 6px black;
}

#intro-head h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
}

#intro-head p {
    font-size: 1.5rem;
}

table {
  width: 30rem;
  margin: 1rem auto;
  margin-bottom: 5rem;
  border-collapse: collapse;

}

th, td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
    background-color: rgb(0, 0, 0, 0.8);
    font-size: 1rem;
}

th {
    color: white;
    text-align: center;
    font-size: 2rem;
}

.file-download {
    color: white;
}

.file-download:hover {
    color: lightblue;
}

.test-details dt {
  color: white;
}

.test-details dd {
  color: red;
  padding-bottom: 5px;
}



/* FLASHCARDS */
#cards h1 {
    text-shadow: 2px 2px black;
}

#counter {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px black;
}

#cards {
    /* border: 2px dashed red; */
    border-top: 3px solid white;
    padding: 5vh;    
}

.flashcard {
    display: none;
    user-select: none;
    width: min(85vw, 550px);
    aspect-ratio: 3 / 2;
    margin: 0 auto;
    perspective: 1000px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    border: 2px solid wheat;
    border-radius: 14px;
}

.flashcard.active {
  display: block;
}

.flashcard.no-transition {
    transition: none;
}

.card-face {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.front {
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 0 0 6px black;
    font-size: 5rem;
}

.back {
    background-color: wheat;
    color: #111827;
    transform: rotateY(180deg);
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    /* border: 2px dashed orange; */
}

#prev, #next, #shuffle, #list {
    transition: all 0.2s ease-in-out;
    color: white;
    background-color: black;
    border-radius: 2.5px;
    width: 5rem;
    height: 2.5rem;
    text-decoration: none;
} 

#prev:hover, #next:hover, #shuffle:hover, #list:hover {
    color: black;
    background-color: wheat;
}

/* PRACTICE QUIZ */
#quiz {
    border: 2px dashed blue;
    padding: 5vh;
}

/* PROGRESSION */
#prog {
    border: 2px dashed green;
    padding: 5vh;
}

/* OTHER RESOURCES */
#resource {
    border: 2px dashed yellow;
    padding: 5vh;
}