@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Peralta&display=swap');

:root {
  /* change the values below to your colors from your palette */
  --primary-color: #1dbae6;
  --secondary-color: #fcb418;
  --accent1-color: #929291;
  --accent2-color: #037dc6;

  /* change the values below to your chosen font(s) */
  --heading-font: "Montserrat", Helvetica, sans-serif;
  --paragraph-font: Arial, Verdana, sans-serif;

  /* these colors below should be chosen from among your palette colors above */
  --headline-color-on-white: var(--primary-color); /* headlines on a white background */
  --headline-color-on-color: black; /* headlines on a colored background */
  --paragraph-color-on-white: black; /* paragraph text on a white background */
  --paragraph-color-on-color: black; /* paragraph text on a colored background */
  --paragraph-background-color: var(--primary-color);
  --nav-link-color: var(--primary-color);
  --nav-background-color: black;
  --nav-hover-link-color: white;
  --nav-hover-background-color: var(--primary-color);
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--paragraph-font);
    background: var(--accent1-color);
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 60vh;
}

.main-header {
    margin-top: 0;
}

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    width: 100vw;
    position: relative;
    background-color: var(--nav-background-color);
    border: none;
    border-radius: 0;
    margin: 0;
    max-width: none;
    height: 80px;
}

.logo img {
    height: 60px;
    max-height: 70px;
    display: block;
}

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 30px;
    height: 100%;
}

.navbar a {
    color: var(--nav-link-color);
    text-decoration: none;
    margin-right: 10px;
    font-size: 1.35rem;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 18px;
    box-sizing: border-box;
}

.navbar .logo {
    margin-left: 30px;
}

.navbar a:first-of-type {
    margin-left: 0;
}

.nav-links a:last-child {
    margin-right: 30px;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    margin: 40px 0 20px 0;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.2rem;
}

.description {
    text-align: center;
    max-width: 600px;
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.play-now-btn {
    display: block;
    margin: 30px auto;
    padding: 20px 40px;
    font-size: 2.5rem;
    background: #d6eed6;
    border: 2px solid #222;
    border-radius: 12px;
    color: #111;
    text-decoration: none;
    text-align: center;
}

.main-footer {
    border: none;
    border-radius: 0;
    margin: 0;
    max-width: none;
    width: 100vw;
    background-color: var(--nav-background-color);
    color: var(--primary-color);
    padding: 20px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 1.1rem;
    font-family: var(--heading-font);
}

/* Game page styles */
.rules-section, .user-selection, .computer-selection, .score-section {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.choices-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.choices-row-comp {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.choice-box {
    border: 2px solid #222;
    border-radius: 12px;
    width: 110px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--accent2-color);
    transition: background 0.2s, filter 0.2s;
}

.choice-box:hover {
    cursor: pointer;
    filter: brightness(0.75);
}

.choice-box-comp {
    border: 2px solid #222;
    border-radius: 12px;
    width: 110px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--accent2-color);
}

.choices-row-comp {
    border: 2px solid #222;
    border-radius: 16px;
    padding: 20px 0;
    background: var(--secondary-color);
}

.score-section {
    border: 2px solid #222;
    border-radius: 16px;
    padding: 10px 0 10px 0;
    background: #fff;
    position: relative;
}

.score-section h2 {
    margin-top: -5px;
    margin-bottom: 30px;
}

.score-row {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 10px;
}

.score-box {
    border: 2px solid #222;
    border-radius: 8px;
    padding: 8px 18px;
    background: var(--secondary-color);
    color: black;
}

/* Font settings for headings and nav */
h1, h2, h3, .navbar, .nav-links, .navbar a {
    font-family: var(--heading-font);
}

/* Font settings for all other text */
body, p, .description, .choice-box, .score-box, .footer-content, button, .submit-btn {
    font-family: var(--paragraph-font);
}

/* Navigation color settings */
.navbar a:hover {
    color: white;
    background-color: var(--accent2-color);
}

.choice-img {
    width: 90px;
    max-height: 65px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.choice-img-comp {
    width: 90px;
    max-height: 65px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.hide {
    visibility: hidden;
}

.logo a:hover {
    background: none !important;
    cursor: pointer;
}

.computer-selected {
    background-color: darkred;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
}

.user-selected {
    background-color: darkred; 
    border: 2px solid white; 
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.7);
}

.attribute {
    color: black; 
    font-weight: bold; 
    display: inline-block;
    padding: 10px 15px;  
    margin: 5px 0;     
}
