/* ==========================================
   Rock, Paper, Scissors - Styles
   Author: klp
   Date: 2026-02-02
   Description: External styles for RPS app
   ========================================== */

/* ==========================================
   GOOGLE FONTS
   ========================================== */
.googleFont1 {
    font-family: 'Bangers', cursive;
    letter-spacing: 0.05em;
}

.googleFont2 {
    font-family: 'Quicksand', sans-serif;
}

/* ==========================================
   SKIN TONE FILTERS
   ========================================== */
.skinToneOrig {
    filter: none;
}

.skinTonePale {
    filter: brightness(1.1) saturate(0.8);
}

.skinToneAfrican {
    filter: brightness(0.6) sepia(0.3) hue-rotate(10deg) saturate(1.2);
}

.skinToneLatino {
    filter: brightness(0.85) sepia(0.2) saturate(1.1);
}

.skinToneHulk {
    filter: brightness(0.6) sepia(0.3) hue-rotate(100deg) saturate(1.2);
}

/* ==========================================
   BASE LAYOUT
   ========================================== */
html {
    background-color: #85b2cc;
    background: linear-gradient(to bottom, #85b2cc, #374F63);
    min-height: 100vh;   
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fdebcb;
    max-width: 900px;
    margin: auto;
    padding: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    min-height: 650px;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   HEADER STYLES
   ========================================== */
header, main {
    text-align: center;
    flex: 1;
}

header {
    margin-bottom: 30px;
}

header h1.googleFont1 {
    letter-spacing: 3px;
}

header h2, header p {
    margin-top: -15px;
}

/* ==========================================
   FOOTER STYLES
   ========================================== */
footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    font-style: italic;
    color: gray;
    border-top: 1px solid gray;
    padding-top: 10px;
    background-color: #D4D4D4;
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: -10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* ==========================================
   LINK STYLES
   ========================================== */
a {
    text-decoration: none;
    color: rgb(89, 86, 164);
    font-weight: bold;
}

footer a:hover {
    color: blue;
    text-decoration: underline;
}

a#resetStatsLink, a#humanLink {
    text-decoration: none;
    font-weight: bold;
    color: black;
}  

a#resetStatsLink:hover, a#humanLink:hover {
    color: blue;
    cursor: pointer;
}

/* ==========================================
   FIGURE GALLERY
   ========================================== */
div#figGalleryDiv {
    margin: auto;
    width: 80%;
}

figure {
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0 5px;
    width: 120px;
    height: 150px;
    background: radial-gradient(circle, #e8e8e8, #999999);
    padding-top: 20px;
    border-radius: 10px;
    border: 1px solid black; 
    margin-bottom: 10px;  
}

figcaption {
    font-weight: bold;
} 

figure img {    
    width: 100px;
    height: 100px;
    object-fit: contain;
    cursor: pointer;
}

/* ==========================================
   GAME STATE STYLES
   ========================================== */
.winner {
    font-size: 1.5em;
    font-weight: bold;
    color: rgb(2, 132, 2);
    background-color: rgb(190, 242, 190);
    background: radial-gradient(circle, #e8e8e8, #7be984);
    border: 4px solid green;
}

.loser {
    font-size: 1.5em;
    font-weight: bold;
    color: red;
    background-color: rgb(255, 182, 182);
    border: none;
    background: radial-gradient(circle, #e8e8e8, #e27c6b);
}

.tie {
    font-size: 1.5em;
    font-weight: bold;
    color: rgb(184, 124, 13);
    background-color: rgb(255, 223, 186);
    border: 4px solid orange;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.visually-hidden {
    display: none;
}

.just-hidden {
    visibility: hidden;
}

.no-pointer img {
    cursor: default;
} 

/* ==========================================
   BUTTON STYLES
   ========================================== */
button {
    padding: 10px 20px;
    border-radius: 10px;
}

/* ==========================================
   MAIN CONTENT SECTIONS
   ========================================== */
#instructionsDiv p {
    margin-top: -10px;
    font-style: italic;
}

div#statsDiv span {
    margin-right: 20px;
    border-right: 1px solid black;
    padding-right: 30px;
}

div#resultsDiv {
    min-height: 150px;
}

div#loadingDiv {
    text-align: center;
    font-size: 1.5em;
    color: red;
}

/* ==========================================
   MODAL STYLES
   ========================================== */
#skinToneModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#skinToneModal.show {
    display: block;
}

.modal-content {
    background-color: #fdebcb;
    margin: 10% auto;
    padding: 30px;
    border: 2px solid #333;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin-top: 0;
    font-family: 'Quicksand', sans-serif;
}

.skin-tone-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.skin-tone-btn {
    padding: 15px;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: white;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s;
}

.skin-tone-btn:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.skin-tone-btn.selected {
    background-color: #85b2cc;
    border-color: #374F63;
    color: white;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
}
