/* Student: Myla Havryliuk */
/* Date: 10/08/2024 */
/* File Name: styles.css */

/* CSS Reset */
body, header, nav, main, footer, img, h1, h3 {
    margin: 0;
    padding: 0;
    border: 0;
}
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
body {
    background-color:  #f3f2f2;
    font-family: 'Arsenal', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#wrapper {
    width: 100%;
    margin: 0 auto;
}

img {
    max-width: 100%;
    display: block;
}

/* Header Section */
.hero {
    position: relative;
    background: url('images/logo1600x400.png') no-repeat center center;
    background-size: cover;
    padding: 5em 0;
    text-align: center;
    color: #000000;
    margin-top: 0;
}
.hero img {
    width: 100%;
    height: auto;
    position: relative;
    display: block;
    top:0;
    left: 0;
    margin-top: 0;
}
.text-overlay {
    position: absolute; 
    top: 35%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    text-align: center; 
}
.text-overlay h1 {
    font-family: 'Anton', sans-serif;
    font-size: 3em; 
    margin: 0; 
    letter-spacing: 0.2em;
    color: white;
    background-color: rgba(0,0,0,0.5);
    display: inline-block;
    border-radius: 5px;
}
.text-overlay h3 {
    font-family: 'Arsenal', sans-serif;
    font-size: 2.5em; 
    margin-top: 0.5em; 
    color: white; 
    font-weight: bold;
    background-color: rgba(0,0,0,0.5);
    display: inline-block;
    border-radius: 5px;
}

/* Style rules for mobile viewport */


/* Style rules to show mobile class and hide tab-desk class */
.mobile {
    display: block;
}

.tab-desk {
    display: none;
}


/* Style rules for header area */
.mobile h1, .mobile h3 {
    padding: 2%;
    text-align: center;
}

.mobile h1 {
    font-family: 'Anton', cursive;
}

.mobile h3,h2 {
    font-family: 'Arsenal', serif;
}

main {
    font-family: 'Arsenal', serif;
}

/* Navigation */
nav {
    background-color: #cbdbe3;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
nav ul {
    margin: 0;
    padding: 0;
}
nav li {
    display: inline-block;
    margin-right: 1em;
}
nav li a {
    display: inline-block;
    color: #000000;
    padding: 0.5em 2em;
    text-decoration: none;
    font-weight: bold;
}
nav li a:hover {
    background-color: #000000;
    color: #cbdbe3;
}
.large-font {
   font-size: 2.5em;
   font-weight: bold;
}
nav .logo {
    width:100px;
    height: auto;
    vertical-align: middle;
    margin-right: 2.5em;
    margin-left: 0;
    display: inline;
    }

.top-nav {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.top-nav li {
    margin: 0 10px;
}

.top-nav a {
    text-decoration: none;
    color: black;
    font-size: 20px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 3px 0;
    transition: 0.3s;
    }

.round {
    border-radius: 6px;
}

#info ul {
    margin-left: 10%;
}

main {
    padding: 2%;
    font-family: 'Arsenal', sans-serif;
    flex-grow: 1;
    margin-top: 20px;
    margin-bottom: 10.5em;
}
main p, main h2 {
    font-size: 1.25em;
    text-align: center;
    font-family: 'Arsenal',sans-serif;
}

.link {
    color: #4d3319;
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
}

.action {
    font-size: 1.75em;
    font-weight: bold;
    text-align: center;
}

#video-section {
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
}

video {
    border: 2px solid #ccc;
    border-radius: 10px;
}
/* Styles for the game catalog */
#catalog {
    padding: 20px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.game-category {
    margin-bottom: 40px;
}

.game-scroll {
    display: flex;
    overflow-x: auto;
    gap: 100px;
    padding: 10px 0;
    text-align: center;
    justify-content:center;
}

.game-item {
    display: block;
    width: 200px;  
    text-align: center;
    text-decoration: none;
    color: inherit;
    justify-content:center;
}

.game-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

figure {
    text-align: center; 
    width: 100%; 
    margin: 40px auto; 
}

figcaption {
    font-size: 1.2rem; 
    font-family: 'Arsenal', sans-serif; 
    text-align: center; 
    margin-top: 10px; 
    margin: 40px auto;
    width: 100%; 
    display: block; 
    padding: 5px; 
    color: black; 
}

/* Style for category titles */
h3 {
    font-size: 2.8rem; 
    font-family: 'Anton', sans-serif; 
    margin-bottom: 10px; 
    margin-top: 10px;
}

h4{
    font-size: 1.8rem; 
    font-family: 'Anton', sans-serif; 
}

h5{
    font-size: 1.5rem; 
   font-family: 'Arsenal', sans-serif; 
   font-weight: bold
    }

.game-category {
    margin-bottom: 40px; 
}

.game-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px; 
    margin-top: 50px;

}

.game-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    margin:0;
}

.game-text {
    max-width: 600px;
    margin:10px 0;
    padding: 0;
    align-items: center;
}

.game-text h1 {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    margin-top: 30px;
}

.game-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.game-text a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold
}

.game-text a:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
}

caption {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

thead th {
    background-color: #f4f4f4;
    color: #333;
    padding: 10px;
    border-bottom: 2px solid #ddd;
}

tbody tr {
    border-bottom: 1px solid #ddd;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

td, th {
    padding: 10px;
   }

#contact {
    text-align: center;
    margin-bottom: 40px;
}

#contact p {
    font-size: 1.1em;
    color: #555;
}

#contact a {
    color: #007acc;
    text-decoration: none;
    font-weight: bold;
}

#contact a:hover {
    text-decoration: underline;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

#contact-form h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #444;
    text-align: center;
}

#contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contact-form label {
    font-weight: bold;
    color: #555;
    font-size: 1em;
}

#contact-form input, 
#contact-form textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f7f9fc;
    transition: border-color 0.3s ease;
}

#contact-form input:focus, 
#contact-form textarea:focus {
    border-color: #007acc;
    outline: none;
    background-color: #fff;
}

#contact-form textarea {
    resize: none;
    min-height: 120px;
}

#contact-form button {
    background-color: #007acc;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#contact-form button:hover {
    background-color: #005b99;
    transform: translateY(-2px);
}

.tel-link {
    background-color: #2a1f14;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    margin-top: 0; 
    margin-bottom: 0;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

/* Style rule for anchor within tel-link class */
.tel-link a {
    color: #f6eee4; 
    text-decoration: none; 
    font-weight: bold; 
}

.faq-question {
    cursor: pointer;
    color: #000; 
    font-size: 18px; 
    text-align: center; 
    font-weight: normal; 
}

.faq-question:hover {
    text-decoration: underline; 
    }

.faq-answer {
    color: #000; 
    font-size: 16px; 
    text-align: center; 
    margin-top: 5px; 
}

.faq-answer.hidden {
    display: none; 
}

#filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    font-size: 14px;
}

#filters select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

main {
    padding: 20px;
    font-family: 'Roboto', Arial, sans-serif;
}

h2 {
    text-align: center;
    color: #333;
}

form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 5px;
}

form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 500;
}

form input, form select, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

form button:hover {
    background-color: #555;
}


/* Review card styles */
.review-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px auto;
    max-width: 600px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.review-card h3 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
}

.review-card .review-rating {
    font-size: 14px;
    color: #f39c12; 
}

.review-card p {
    font-size: 14px;
    color: #666;
}


/* Footer */
footer {
    position: relative;
    width: 100%;
    height: 80px;
    text-align: center;
    font-size: 0.85em;
    background-color:#cbdbe3;
    color: black;
    padding: 1% 0;
    margin-top: auto;
}
footer a {
    color: black;
    text-decoration: none;
}
.footer-content {
    text-align: center;
}

.footer-content p {
    display: inline-flex;
    align-items: center;
    gap: 10px; 
    margin: 0;
}

.social-icon {
    width: 24px; 
    height: 24px;
    transition: transform 0.2s ease-in-out;
}

.social-icon:hover {
    transform: scale(1.1); 
    }

/* Media Queries for Mobile Devices */
@media screen and (max-width: 768px) {
    .text-overlay h1 {
        font-size: 2rem;
    }

    .text-overlay h3 {
        font-size: 1.5rem;
        position: relative;
    }
    
    nav{
        display: flex;
        flex-wrap: wrap;  
    }

    nav ul {
        flex-direction: column;
        gap: 0.5em;
    }

    nav li a {
        font-size: 0.875rem;
        padding: 0.5em;
    }
 .hamburger-menu {
        display: flex;
    }

    .top-nav {
        display: none;
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 40px;
        right: 0;
        width: 100%;
    }

    .top-nav li {
        margin: 10px 0;
        text-align: center;
    }

    .top-nav.active {
        display: flex;
    }
    
    .game-info {
        flex-direction: column;
        align-items: center;
    }

    .game-text {
        text-align: center;
        padding: 1em;
    }

    .game-text h1 {
        font-size: 1.8rem;
    }

    .game-text p {
        font-size: 1rem;
    }
    
    body {
        width: 100%;
        overflow: auto; 
    }

    .game-scroll {
        flex-wrap: nowrap; 
        overflow-x: scroll; 
    }
        
     table {
        font-size: 14px;
    }

    td, th {
        padding: 8px;
        }

        
    footer {
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
  h1, h3, p {
        font-size: 1rem; 
    }
    .text-overlay {
        padding: 10px;
    }
    
    .text-overlay h3 {
        font-size: 1rem;
    }
    
    nav{
        display: flex;
        flex-wrap: wrap;  
    }

    nav li a {
        font-size: 0.75rem;
    }
        
nav, footer {
        font-size: 0.9rem;
}
    .text-overlay h1 {
        font-size: 1.75rem;
    }
    }
    

/* Media Query for Tablet Viewport */
@media screen and (min-width: 620px) and (print) {
    /* Tablet Viewport: Show tab-desk class, hide mobile class */
    .tab-desk {
        display: block;
    }

    .mobile {
        display: none;
    }

    /* Tablet Viewport: Style rules for nav area */
    nav {
        display: flex;
        flex-wrap: wrap;  
    }
    
    nav li {
        border-top: none;
        display: inline-block;
        font-size: 1.25em;
    }

    nav li a {
        padding: 0.5em;
    }
}

/* Media Query for Desktop Viewport */
@media screen and (min-width: 1000px) and (print) {
    /* Desktop Viewport: Style rules for nav area */
    nav li {
        font-size: 1.5em;
    }

    nav li a {
        padding: 0.5em 1.5em; 
    }

    nav li a:hover {
        color: #cbdbe3;
        background-color: #f3f2f2;
    }
    
    .top-nav {
    display: flex;
    list-style: none;
    gap: 20px;
}

    /* Desktop Viewport: Style rules for main content */
    #info ul {
        margin-left: 5%;
    }
    .btn {
    grid-column: 1 / span 2;
  }
}

/* Media Query for Large Desktop Viewports */
@media screen and (min-width: 1921px) {
    
    body {
        background: linear-gradient(to bottom, #f3f2f2, #cbdbe3); 
        
    }

    #wrapper {
        max-width: 1920px; 
        margin: 0 auto; 
    }

    main {
        background-color: #f3f2f2;
    }
    nav{
        display: flex;
        flex-wrap: wrap;  
    }
}

/* Media Query for Print */
@media print {

    body {
        color: black; 
    }

    #wrapper {
        width: 100%; 
        margin: 0; 
    }

    nav, footer {
        display: none !important; 
    }
}
