@import url('https://fonts.googleapis.com/css2?family=Jersey+10&display=swap');
:root {
    font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;;
    background-color: #333538;
    color: white

}

body {
    display: flex;
    flex-direction: column;
    margin: 0;

    width: 100vw;
    height: 100vh;
}

dialog {
    padding: 0; 
    border: none;
    outline: none;

    background-color: transparent;
    animation: open 0.2s ease-in-out;
}
dialog::backdrop {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  animation: open 0.2s ease-in-out;
}
dialog img {
    border-radius: 20px;
    width: 100%;
}

@keyframes open {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

header {
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #27282B;
    color: #31C1FF;
    width: 100vw;
    height: clamp(50px, 10vh, 100px);

}




h1, h2, h3, h4, h5, h6 {
    font-family: 'Jersey 10', sans-serif;
}
h1 {
    font-size: clamp(50px, 9vh, 100px);
    line-height: 1.1;
    margin: 0 auto;
    text-align: center;
    white-space: nowrap;
}
h2 {
    font-size: clamp(30px, 10vw, 60px);
    line-height: 1.1;
    margin: 0 auto;
    text-align: center;
}
h3 {
    font-size: 2rem;
    margin-bottom: 0;
    margin-top: 0;
}
button {
    margin: 10px;
    border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 25px;
  font-weight: 500;
  font-family: "Jersey 10", sans-serif;
  background-color: #181818;
  color:#31C1FF;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}
button:hover {
    cursor: pointer;
    /*Adds a hover animation to the images so now u have animation for pressing on it and animation for hovering over it */
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    filter: brightness(1.05);
}
button:active {
    background-color: #fff8f8;
}
main {
    display: flex;
    flex-direction: row;

    margin: 20px;
    flex: 1;
    gap: 20px;
    min-height: 0;
}



#gun-news {
    flex: 0 1 600px;
    
  
  overflow-y: auto;
}
#gun-new {
    flex: 0 1 600px;
    overflow-y: auto;
}

#screenshots {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: end;
}

#screenshots > .images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    

    background-color: #27282B;
    border: 5px solid #27282B;
    border-radius: 10px;
}

#screenshots > .images img {
    transition: all 0.25s ease-in-out;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
#screenshots > .images img:hover {
    cursor: pointer;
    /*Adds a hover animation to the images so now u have animation for pressing on it and animation for hovering over it */
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    filter: brightness(1.05);

    width: 100%;
    height: 100%;
    border-radius: 10px;
}

@media (max-width: 800px) {
    main {
        flex-direction: column-reverse;
        min-height: initial;
    }
    
    
    #gun-news {
        flex: 1 1 200px;
        overflow-y: initial;
    }
    h1 {
        font-size: min(15vw, 9vh)
    }

}