/* Global styles */

@font-face {
    font-family: 'bitcount';
       src: url('./assets/fonts/BitcountInk.ttf') format('truetype'); 
}

* {
    box-sizing: border-box;
}

:root {
    --yellow: rgb(238, 205, 21);
    --teal: rgb(7, 82, 82);
    --bg-dark: rgb(8, 112, 112); 
}

body { 
    background-color: var(--bg-dark);
    font-family: Consolas, 'Lucida Console', monospace;
    font-size: 1.4rem; 
    text-align: center;
    margin: 0;
    padding: 0;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
}

ul {
    list-style-type: square;
    padding-left: 25px; 
}

ul li::marker {
    color: var(--yellow);
}

img {
    transition: transform 0.3s ease; 
    height: auto; 
    max-width: 120px;
    padding: 10px;
    display: inline-block;
}

h1, h2 {
    text-align: center;
    font-family: 'bitcount', sans-serif;
    margin: 10px 0;
}

h1 {
    font-size: 3rem; 
}

h2 {
    font-size: 2.8rem;
}

h3 {
    color: var(--yellow);
    font-size: 1.7rem;
}

/* Sections */

.wrap {
    margin: 20px auto; 
    max-width: 1200px;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; 
}

#title {
    padding: 20px;
    background-color: var(--teal);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#newGame, #funfact {    
    border: 3px dashed red;
    background-color: var(--bg-dark);
    cursor: pointer;
    border-radius: 15px; 
}

#newGame {
    font-family: 'bitcount', sans-serif;
    font-size: 2.5rem;
    padding: 20px;
    margin: 2rem;
    transition: background 0.3s;
}

#newGame:hover {
    background-color: var(--teal);
}

#funfact {
    display: flex;
    justify-content: center; 
    align-items: center; 
    font-family: Consolas, monospace;
    color: var(--yellow);
    padding: 15px;
    min-height: 100px; 
    width: 100%; 
    max-width: 600px;
    margin: 10px auto;
}

#yourChoice, #pcChoice, #rules, #results, .highlight {
    border-radius: 15px;
}

.highlight {
  
    animation: pop 0.3s ease-out forwards; 
    border: 2px solid white !important; 
    transform: scale(1.1); 
}

#rules {
    flex: 1;
    min-width: 250px; 
    text-align: left;
    background-color: teal;
    border: 3px dotted var(--teal);
    padding: 20px;
}

#choices {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 15px;
    min-width: 300px;
}

#yourChoice, #pcChoice {
    flex: 1;
    border: 5px dotted var(--yellow);
    background-color: teal;
    padding: 20px;
    transition: transform 0.2s;
}

#yourChoice img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

#results {
    width: 100%;
    margin-top: 20px;
    background-color: #000;
    border: 3px dotted var(--teal);
    font-family: "Comic Sans MS", cursive; /* Bradley Hand često nije instaliran */
    color: antiquewhite;
    padding: 20px;
}

/* Table */
table {
    border-collapse: collapse;
    margin: 20px auto;
    width: 90%;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #444;
}

#winner {
    font-family: 'bitcount', sans-serif;
    font-size: 2.5rem;
    color: var(--yellow);
    display: block;
    margin: 20px 0;
}

#footer {
    font-size: 0.8rem;
    background-color: var(--teal);
    padding: 15px;
    margin-top: 40px;
}


@keyframes pop {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
