:root {
  --rad: .7rem;
  --dur: .3s;
  --color-light: #fff;
  --color-brand: #87819D;
  --height: 3rem;
  --btn-width: 4rem;
  --bez: cubic-bezier(0, 0, 0.43, 1.49);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}
body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background: linear-gradient(to bottom, #725BD3, #3B2F6D);
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
    
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

p {
    color: #fff;
    margin-top: 0;
   margin-bottom: 1rem;
}
a {
    text-decoration: none;
    background-color: transparent;
}
ol,
ul,
dl {
  margin-top: 0;
  
}

ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
/* Navigatsioon*/
.header {
  background-color: #000000;
  box-shadow: 1px 1px 4px 0 rgba(0,0,0,.1);
  position: fixed;
  width: 100%;
  z-index: 3;
}

.header ul {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background-color: #000000;
}

.header li a {
  display: block;
  padding: 20px 20px;
 
  text-decoration: none;
  color: white;
}

.header li a:hover,
.header .menu-btn:hover {
  background-color: #725BD3;
}

.header .logo {
  display: block;
  float: left;
  font-size: 1em;
  padding: 10px 15px;
  text-decoration: none;
}

/* menu */

.header .menu {
  clear: both;
  max-height: 0;
  transition: max-height .2s ease-out;
}

/* menu icon */

.header .menu-icon {
  cursor: pointer;
  display: inline-block;
  float: right;
  padding: 28px 20px;
  position: relative;
  user-select: none;
}

.header .menu-icon .navicon {
  background: #ffffff;
  display: block;
  height: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 18px;
}

.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
  background: #ffffff;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

.header .menu-icon .navicon:before {
  top: 5px;
}

.header .menu-icon .navicon:after {
  top: -5px;
}

/* menu btn */

.header .menu-btn {
  display: none;
}

.header .menu-btn:checked ~ .menu {
  max-height: 240px;
  text-align: center;
  
}
.header .menu-btn:checked ~ .menu li {
  border-bottom: 1px solid #868686;
  
}
.header .menu-btn:checked ~ .menu li :last-child {
  border-bottom: none;
  
}
.header .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.header .menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  top: 0;
}

/* 48em = 768px */

@media (min-width: 48em) {
  .header li {
    float: left;
  }
  .header li a {
    padding: 20px 30px;
  }
  .header .menu {
    clear: none;
    float: right;
    max-height: none;
  }
  .header .menu-icon {
    display: none;
  }
}


/* Karussell*/
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}


/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/*  Gallerii  */
.heading-box {
  max-width: 100rem;
 
    padding: 0 2rem 2rem;
}
.heading1 {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.5;
    padding: 3.5rem 0;
    color: #ffffff;
    text-align: start;
}
.slider-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: nowrap;
}

.slider {
  width: 100%;
  max-width: 700px;
  overflow: hidden;
  position: relative;
  
}

/* Card Container */
.card-container {
  display: flex;
  transition: transform 0.4s ease;
  transform: translateX(0);
}

/* Individual Cards */
.card {
  min-width: 100%;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  box-shadow: inset 0rem 0rem 20px 0px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 50% dark overlay */
  z-index: 1;
}
.card h2 {
  position: relative;
  z-index: 2; /* Place text above the overlay */
}

/* Unique Background Images for Each Card */
.card:nth-child(1) {
  background-image: url('img/civ7.jpg');
  background-size: cover;
  background-position: center;
}
.card:nth-child(2) {
  background-image: url('img/tekken.jpg');
  background-size: cover;
  background-position: center;
}
.card:nth-child(3) {
  background-image: url('img/f1.jpg');
  background-size: cover;
  background-position: center;
}
.card:nth-child(4) {
  background-image: url('img/stalker.jpg');
  background-size: cover;
  background-position: center;
}
@media (min-width: 768px) {
  .card {
    height: 500px; /* Increase card height */
  }
}

/* Large Screens */
@media (min-width: 1200px) {
  .card {
    height: 600px; /* Further increase card height */
  }
}
@media (min-width: 1200px) {
  .slider {
    max-width: 900px; /* Adjust width for large screens */
  }
}
/* Hide the radio buttons */
input[type="radio"] {
  display: none;
}

/* Positioning the radio buttons at the bottom of the slider */
.nav {
  text-align: center;
  margin-top: 15px;
}

/* Customizing label as the slide indicator */
.nav label {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  margin: 5px;
  cursor: pointer;
}

/* Checked state for slider */
#slide1:checked ~ .card-container {
  transform: translateX(0);
}

#slide2:checked ~ .card-container {
  transform: translateX(-100%);
}

#slide3:checked ~ .card-container {
  transform: translateX(-200%);
}

#slide4:checked ~ .card-container {
  transform: translateX(-300%);
}

/* Active slide indicator */
#slide1:checked ~ .nav label[for="slide1"],
#slide2:checked ~ .nav label[for="slide2"],
#slide3:checked ~ .nav label[for="slide3"],
#slide4:checked ~ .nav label[for="slide4"] {
  background-color: #333;
}


div.gallery {
  border: 1px solid #ccc;
}

div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  width: 100%;
  height: auto;
  
}

div.desc {
  padding: 15px;
  text-align: center;
}
.responsive {
  padding: 0 6px;
  float: left;
  width: 24.99999%;
}

@media only screen and (max-width: 700px) {
  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 100%;
  }
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

/* Footer*/
.footer-container {
    text-align: center;
      
}
.footer {
  display: flex;
  flex-flow: row wrap;
  padding: 20px 20px 0px 20px;
  color: #ffffff;
  background-color: #000000;
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
}
.footer .logo {
  display: block;
  float: left;
  padding: 10px 20px;
  width: 100%;
  height: auto;
}
.footer > * {
  flex:  1 100%;
}

.footer__addr {
  margin-right: 1.25em;
  
}

.footer__addr h2 {
  margin-top: 1.3em;
  font-size: 15px;
  font-weight: 400;
}

.nav__title {
  font-weight: 400;
  font-size: 15px;
}
.nav__title_icons {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;

}
.nav__title_content {
  display: flex;
  
}
.nav__title_content p {
  padding-left: 1rem;
}
.footer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  max-width: max-content;
  background-color: rgb(33, 33, 33, 0.07);
  border-radius: 100px;
  color: #ffffff;
  line-height: 0;
  margin: 0.6em 0;
  font-size: 1rem;
  padding: 0 1.3em;
}

.footer ul {
  list-style: none;
  padding-left: 0;
}

.footer li {
  line-height: 2em;
}

.footer a {
  text-decoration: none;
}

.footer__nav {
  display: flex;
	flex-flow: row wrap;
}

.footer__nav > * {
  flex: 1 50%;
  margin-right: 1.25em;
}

.nav__ul a {
  color: #ffffff;
}
/* Navigation Socials*/
.nav__socials {
  display: flex;
  flex-direction: row;
  
}
.nav__socials i {
  padding-right: 1rem;
  color: white;
}

.nav__ul--extra {
  column-count: 2;
  column-gap: 1.25em;
}
.nav__socials i:hover {
  color: #725BD3; /* Keeps the color the same on hover */
}
.nav__socials i {
  color: white; /* Replace black with any color you want */
}
.legal {
  display: flex;
  flex-wrap: wrap;
  color: #999;
  justify-content: center;
}
  

@media screen and (min-width: 24.375em) {
  .legal .legal__links {
    margin-left: auto;
  }
}

@media screen and (min-width: 40.375em) {
  .footer__nav > * {
    flex: 1;
  }
  
  .nav__item--extra {
    flex-grow: 2;
  }
  
  .footer__addr {
    flex: 1 0px;
  }
  
  .footer__nav {
    flex: 2 0px;
  }
}
.footer i {
  font-size: 2rem;
}

/*     CONTACT PAGE            */
/* Style inputs with type="text", select elements and textareas */
input[type=text], select, textarea {
  width: 100%; /* Full width */
  padding: 12px; /* Some padding */ 
  border: 1px solid #ccc; /* Gray border */
  border-radius: 4px; /* Rounded borders */
  box-sizing: border-box; /* Make sure that padding and width stays in place */
  margin-top: 6px; /* Add a top margin */
  margin-bottom: 16px; /* Bottom margin */
  resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
}

/* Style the submit button with a specific background color etc */
input[type=submit] {
  background-color: #725BD3;
  color: #F2FBF8;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
  background-color: #3B2F6D;
}

/* Add a background color and some padding around the form */
.container-bg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}
.container {
  border-radius: 5px;
  width: 60%;
  padding: 20px;
}
.container label {
  color: #F2FBF8;
}

.contact-block {
  width: 40%;
  float: right;
}
.contact-info-phone {
  width: 50%;
  float: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.contact-info-phone i {
    padding: 1rem;
    font-size: 4rem;
    color: #F2FBF8;
}
.contact-info-email {
  width: 50%;
  float: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.contact-info-email i {
    padding: 1rem;
    font-size: 4rem;
    color: #F2FBF8;
}
.contact-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Alert styling */
.alert {
  color: white;
  background-color: green;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  width: fit-content;
  margin: 10px auto;
}

/* Hide alert initially */
.hidden {
  display: none;
}

/*     GAMES PAGE            */

.game_container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 20px;
  
}

.text-box {
  flex: 0 0 60%;
  padding: 2rem ;
  box-sizing: border-box;
}

.image-box {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

/* TEST*/
.gal-container {
	max-width: 100rem;
	margin: 0 auto;
	padding: 0 2rem 2rem;
}
.heading {

	font-size: 3rem;
	font-weight: 500;
	line-height: 1.5;
	
	padding: 3.5rem 0;
	color: #ffffff;
}
.heading span {
	display: block;
}

.gallery-box {
	display: flex;
	flex-wrap: wrap;
	/* Compensate for excess margin on outer gallery flex items */
	margin: -1rem -1rem;
}

.gallery-box-item {
	/* Minimum width of 24rem and grow to fit available space */
	flex: 1 0 24rem;
	/* Margin value should be half of grid-gap value as margins on flex items don't collapse */
	margin: 1rem;
	box-shadow: 0.3rem 0.4rem 0.4rem rgba(0, 0, 0, 0.4);
	overflow: hidden;
}

.gallery-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease-out;
}
.gallery-image:hover {
	transform: scale(1.15);
}
