
/* Variables for Dark Mode */
:root {
    --primary-color: black;
    --hover-color: grey;
    --light-bg: whitesmoke;
    --dark-bg: #121212;
    --font-color: white;
  }

/* General styles*/
body {
    background: whitesmoke;
}
body.dark-mode {
    --primary-color: lightgray;
    --secondary-color: #121212;
    --font-color: white;
    --background-color: #121212;
    background: var(--background-color);
    color: var(--font-color);
  }
  
  body.dark-mode nav ul li a {
    color: var(--font-color);
  }
  
  body.dark-mode nav ul li a:hover {
    background-color: var(--primary-color);
  }
.title-container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px
 }
 h1{
     text-align: center;
     font-size: x-large;
 }
 .sword-image{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: whitesmoke;
 }
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; 
}

/* Image styling */ 
#spidermanmeme {
    max-width: 100%;
    height: auto;
}
figure {
    display: inline-block;
    text-align: center;
}
figcaption {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}
.links {
    text-align: center;
    margin: 0 100px;
    padding: 10;
}
#spotifylogo, #instagramlogo, #githublogo {
    position: absolute;
    display: none;
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

#spotifylogo:hover, #instagramlogo:hover, #githublogo:hover {
    transform: scale(1.2);
}

/* Navigation */
nav {
    background-color: rebeccapurple;
    overflow: hidden;
  }
  
  nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
  }
  
  nav ul li {
    display: inline;
  }
  
  nav ul li a {
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    display: block;
  }
  
  nav ul li a:hover {
    background-color: darkorchid;
  }

  /* Media Queries */
@media (max-width: 768px) {
    .title-container {
        height: auto;
        padding: 20px;
    }

    h1 {
        font-size: large;
    }

    .image-container {
        flex-direction: column;
        height: auto;
    }

    #spidermanmeme {
        width: 100%;
    }

    .links {
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .title-container {
        height: auto;
        padding: 10px;
    }

    h1 {
        font-size: medium;
    }

    .sword-image {
        flex-direction: column;
        justify-content: flex-start;
    }

    .image-container {
        flex-direction: column;
        height: auto;
    }

    #spidermanmeme {
        width: 100%;
    }

    .links {
        margin: 0 10px;
    }
}

/* button styling */

button {
    background-color: black; 
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
  }
  
  button:hover {
    background-color: white;
    color: black;
    border: 2px solid #4CAF50;
  }
  #theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: black;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 1000; /* Ensure it's above other elements */
  }
  
  #theme-toggle:hover {
    background-color: white;
    color: black;
    border: 2px solid #4CAF50;
  }
  /* Freeciv game styles */
#freeciv-game {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
}

#freeciv-game iframe {
    border: 1px solid #000;
}