/*
Theme Name: KROPT
Theme URI: https://kropt.dk
Description: Officiel hjemmeside for foreningen KROPT
Version: 1.0
Author: KROPT
Text Domain: kropt
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;700&family=Roboto:wght@400&display=swap');

body {
    background-color: #111111;
    color: #f5f5f5;
    font-family: 'Roboto', sans-serif;
    padding-top: 50px;
}

header {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
}

nav ul.menu {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #f5f5f5;
}

nav ul.menu li {
    position: relative;
}

nav ul.menu li a {
    font-family: 'Poppins', sans-serif;
    font-weight: 10;
    color: #f5f5f5;
    text-decoration: none;
    text-transform: lowercase;
    font-size: 18px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 5px;
    padding: 0 10px;
    max-width: 100vw;
    margin: 0 auto;
    justify-items: center;
}

.image-grid img {
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img.small {
    grid-row: span 1;
    grid-column: span 1;
    width: 200px;
    height: 200px;
}

.image-grid img.large {
    grid-row: span 2;
    grid-column: span 2;
    width: 250px;
    height: 250px;
}

.slide-section {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100%;
    background-color: #5a1b24;
    transition: right 0.5s ease-in-out;
    z-index: 1001;
    overflow: hidden;
}

.slide-section.active {
    right: 0;
}

.slide-content {
    padding: 20px;
}

.slide-content h2 {
    margin-top: 0;
}

#closeSlide {
    background-color: white;
    color: black;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.close-icon {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #f5f5f5;
    z-index: 1002;
    display: none;
}

.slide-section.active .close-icon {
    display: block;
}

.contact-link {
    display: inline-block;
    background-color: #5a1b24;
    color: #f5f5f5;
    text-decoration: underline;
    font-weight: 700;
    font-size: 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.contact-link:hover {
    color: #111111;
}

.contact-info {
    margin-top: 30px;
}

.contact-info p {
    margin: 5px 0;
    font-size: 18px;
}

.email-link {
    color: #f5f5f5;
    text-decoration: underline;
}

.email-link:hover {
    color: #d3d3d3;
}

footer {
    position: fixed;
    top: 10;
    right: 0;
    bottom: 0;
    left: 0;
}

.social-footer {
    padding: 20px 0;
    text-align: center;
    z-index: 1000;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icon img {
    width: 30px;
    height: auto;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}
