* {
    box-sizing: border-box;
}

html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* sets the font and its font backups for browser support */
    line-height: 1.5; /* line spacing */
    font-size: 21px; /* increases the font size from default throughout the whole html */
    scroll-behavior: smooth; /* makes jumping to links a smooth scrool and not in an instant */
    margin: 0; /* resets margin of html */
    padding: 0; /* resets padding of html */
}

body {
    color: white;
    background-color: #181C2A; /* makes the bg a different color */
    background-image: url('images/ps-bg-with-opacity.png'); /* adds bg image over the bg color. Works well with the opacity on the img */
    background-attachment: fixed; /* keeps bg still when scrolling */
    background-size: cover; /* resizes the bg image to cover the whole site */
    background-repeat: no-repeat; /* makes the bg image not repeat */
    background-position: center; /* centers background image */
    height: 100%;
    margin: 0; /* used here to make sure that there is no spacing above the top of the header*/
}

.hyperlink a:hover {
    color: #5cc0f9;
}

/* -------------------Trick--------------------------------- */
/* Trick to make footer stay at bottom of the viewport: */
body {
    position: relative;
}
  
body::after {
    content: '';
    display: block;
    height: 100px; /* Set same as footer's height */
}
/* --------------------------------------------------------- */

footer {
    text-align: center;
    background-color: #3A1078;
    width: 99.9%; /* makes sure to not overlap with right side bar of browser */
    position: absolute;
    bottom: 0;
    height: 100px;
}

li, a {
    color: white;
}

#ps4 ul li {
    margin-bottom: 20px; /* adds spacing below each list */
}

/*--------------------------- Header Section -----------------------------------*/
header {
    display: flex; /* aligns items next to each other in flex-box format */
    justify-content: flex-end; /* sets items to the right/end side */
    background-color: #3A1078; /* sets the background color of the header */
    width: 99.9%; /* makes sure to not overlap with right side bar of browser */
}

.logo {
    display: flex;
    align-items: center;
    margin-right: auto; /* sets the logo to the left side */
}

/* makes logo a link to home page */
.logo a {
    color: white; /* sets the color of the title link to white */
}

.logo img {
    margin-right: -30px; /* makes img closer to site title */
    margin-left: -30px; /* makes img closer to left side of the header */
}

.logo h1 {
    font-style: italic;
    font-size: 35px;
    text-shadow: 0 0 10px #3795BD, 0 0 20px #3795BD, 0 0 30px #3795BD; /* adds a glowing shadow effect to h1 in the logo class */
}

.logo a {
    text-decoration: none; /* gets rid of underline */
}

.nav-links li {
    list-style: none; /* gets rid of underline */
    display: inline-block; /* lines up items horizontally next to each other */
    padding: 0px 20px; /* spaces out items */
    font-size: 22px;
    border-right: 1px solid white; /* shows right border to see separation better */
    margin-bottom: 40px; /* when screen is zoomed in, makes sure the buttons do not overlap with each other */
    margin-top: 5px; /* spacing from the top of the list */
}

.nav-links li:last-child {
    border-right: none; /* gets rid of right border for the last item in the list */
}

.nav-links ul li a {
    color: white;
    font-weight: bold;
    transition: all 0.3s ease 0s; /* delays the color transition when hovering */
    padding: 1rem; /* better spacing between each link */
    text-align: center;
}

.nav-links ul li a:hover:not(.active) { /* only does this when you hover over the non-current pages */
    background-color: #1f024a; /* makes hover bg color blueish */
    border-radius: 25px; /* rounded corners */
}

.active {
    background-color: #3795BD; /* changes the bg color of the current page in the navigation bar */
    border-radius: 25px;
}


/*----------------------------- Main Section -------------------------------- */
main {
    max-width: 1100px; /* Set the maximum width of the main content */
    margin: 0 auto;    /* Center Main horizontally */
    padding: 20px;     /* Optional: add padding for spacing */
    background-color: #181C2A;
    border-style: groove; /* shows side borders */
    border-top-style: hidden; /* hides the top of the border */
    border-bottom-style: hidden; /* hides the bottom of the border */
}

main h2 {
    text-decoration: underline; /* adds underline to all h2 headings */
}

.center-heading{ /* will change the alignment of h2 on best games page */
    text-align: center;
}


/*----------table of contents----------*/
#ps1, #ps2, #ps3, #ps4, #ps5, #eyetoy, #psvr, #pscam, #ff7, #gta, #lou, #msp, #gow {
    scroll-margin-top: 30px; /* gives spacing when jumping to that section from anchor links */
}

#toc {
    color: #5cc0f9;
}

/* Dropdown Button */
.dropbtn {
    background-color: #0074D9;
    color: #FFFFFF;
    padding: 25px 35px;
    font-size: 21px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }
  
  /* Dropdown button on hover & focus */
  .dropbtn:hover, .dropbtn:focus {
    background-color: #01457f;
  }
  
  /* The container <div> - needed to position the dropdown content */
  .dropdown {
    position: relative;
    display: inline-block;
  }
  
  /* Dropdown Content (Hidden by Default) */
  .dropdown-content {
    display: none;
    position: relative;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
  }

  .dropbtn, .dropdown-content { /* adds spacing from the left */
    margin-left: 10px;
}
  
  /* Links inside the dropdown */
  .dropdown-content a {
    color: black;
    padding: 12px 50px;
    display: block;
    transition: all 0.3s ease 0s; /* smooth transition when hovering over anchor elements */
  }
  
  /* Change color of dropdown links on hover */
  .dropdown-content a:hover {
    background-color: gray;
    color: white;
    font-size: larger;
}
  
  /* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
  .show {display:block;}



/*--------------images-----------------*/
.text-wrap-container {
    overflow: hidden; /* makes sure that the image does not overlap onto the next paragraph */
}

.float-left { /* places image to the left */
    float: left;
    border-radius: 20px;
    margin-right: 15px;
    margin-bottom: 15px; /* spacing below text */
    margin-top: 25px; /* lines up with text */
}

.float-right { /* places image to the right */
    float: right;
    border-radius: 20px;
    margin-left: 15px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.img-center { /* places image in the center */
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 70px;
    border-radius: 20px;
    width: 60%; /* responsive image */
    height: 60%; /* responsive image */
}


/*------------ title areas -------------*/
.title-with-img {
    position: relative;
    text-align: center;
    border-bottom: 3px solid gray;
    overflow: hidden; /* when resizing, text won't go over border line */
}
.title-with-img img {
    border-radius: 20px;
    width: 70%; /* responsive image */
    height: 70%; /* responsive image */
}

.title-without-img {
    text-align: center;
    border-bottom: 3px solid gray;
    font-size: larger;
}

/*------------- Video --------------------*/
.video {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video iframe { /* makes the iframe responsive */
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/*---------------- Form ---------------------*/
.poll-box form fieldset {
    background-color: #131577; /* changes the background color of the poll fieldset */
}