/* ==================================
   FONTS
================================== */

@font-face {
    font-family: 'Lexend Tera';
    src: url('../fonts/LexendTera-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ==================================
   GLOBAL STYLES
================================== */

html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Lexend Tera', sans-serif;
    color: white;
    background-color: #1e1e1e;
}

main {
    flex: 1;
}

.main {
    display: flex;
    justify-content: space-between;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}


.fade-in {
    opacity: 0;
    animation: fadeIn ease 2s forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================
   HEADER
================================== */

header {
    background-color: #2d2d2d;
    height: 155px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

header .winther-visuals {
    font-size: 40px;
    text-shadow: 1px 0 0 #000, 0 1px 0 #000, -1px 0 0 #000, 0 -1px 0 #000;
    padding: 50px;
}

header .about-button,
header .photos-button,
header .videos-button,
header .contact-button {
    display: inline-block;
    background-color: #1e1e1e;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-transform: uppercase;
    margin: 0 30px;
    cursor: pointer;
}

header .about-button:hover,
header .photos-button:hover,
header .videos-button:hover,
header .contact-button:hover {
    background-color: #444;
    transition: background-color 0.3s ease;
}

header h1 {
    font-size: 40px;
    font-weight: lighter;
    text-align: center;
    margin: 0;
    padding: 20px;
}

header a {
    text-decoration: none;
    color: white;
}

header a:visited {
    color: white;
}

/* ==================================
   HOME PAGE
================================== */

#front-page {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
}

.front-page-pic {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem;
    margin: 0.5rem;
    width: 30rem;
    height: auto;
}

.pic img {
    max-width: 100%;
    height: auto;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
}

.front-page-info {
    background-color: #191919;
    width: 30rem;
    height: min-content;
    padding: 1rem;
    margin: 1rem;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
    font-family: 'Lexend Tera', sans-serif;
    font-weight: lighter;
    justify-content: center;
    align-items: center;
}

.front-page-info p {
    text-align: left;
    margin: 2rem;
    margin-left: 0;
}

.front-page-info h1 {
    font-size: 3rem;
    text-align: left;
    text-transform: uppercase;
    font-weight: lighter;
    margin-top: 2rem;
}

/* ==================================
   FOOTER
================================== */

footer {
    height: min-content;
    background-color: #2d2d2d;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer a {
    text-decoration: none;
}

footer .insta-button,
footer .youtube-button,
footer .mail-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

footer .insta-icon,
footer .youtube-icon,
footer .mail-icon {
    width: 65px;
    height: 65px;
    margin-bottom: 10px;
}

footer .insta-text,
footer .youtube-text,
footer .mail-text {
    background-color: #1e1e1e;
    padding: 5px 15px;
    text-align: center;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
}

footer .insta-button:hover .insta-text,
footer .youtube-button:hover .youtube-text,
footer .mail-button:hover .mail-text {
    background-color: #444;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* ==================================
   LOGIN
================================== */
#login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    flex: 1;
}

#login-form {
    background-color: #2d2d2d;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-sizing: border-box;
}

#login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #444;
    background-color: #2d2d2d;
    color: white;
    border-radius: 5px;
    box-sizing: border-box;
}

#login-form input:focus {
    border-color: #888;
    outline: none;
}

#login-form button {
    width: 100%;
    background-color: #1e1e1e;
    color: white;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

#login-form button:hover {
    background-color: #444;
}

#login-form button:focus {
    outline: none;
}


/* ==================================
   ADMIN PANEL
================================== */
#admin-panel-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background-color: #222;
    color: white;
    padding: 20px;
}

.sidebar h1 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

/* Buttons */
.menu-button, .logout-button {
    width: 100%;
    padding: 10px;
    background-color: #555;
    color: white;
    border: none;
    cursor: pointer;
    text-align: left;
}

.menu-button:hover, .logout-button:hover {
    background-color: #777;
    transition: background-color 0.3s ease;
}

/* Main Content */
.main-content {
    background-color: #1e1e1e;
    padding: 20px;
}

#upload-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #2d2d2d;
    box-sizing: border-box;
}

#upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

#upload-form label {
    margin-bottom: 10px;
    text-align: left;
}

#upload-form input[type="file"] {
    width: 10rem;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    background-color: #2d2d2d;
    color: white;
}

#upload-btn {
    width: 12rem;
    background-color: #1e1e1e;
    color: white;
    padding: 10px;
    border: 1px solid #444;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#upload-btn:hover {
    background-color: #444;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    list-style: none;
}

.image-item {
    background-color: #151515;
    padding: 10px;
    border: 1px solid #333;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-item img {
    width: 100%;
    max-height: 200px;
    margin-bottom: 10px;
}

.image-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.delete-btn, .portfolio-btn {
    width: 45%;
    padding: 5px 10px;
    text-align: center;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    border: none;
}

.delete-btn {
    background-color: #dc143c;
}

.portfolio-btn {
    background-color: #2d5d3a;
}

.delete-btn:hover {
    background-color: #fb7979;
    transition: background-color 0.3s ease;
}

.portfolio-btn:hover {
    background-color: #438454;
    transition: background-color 0.3s ease;
}

/* ==================================
   CONTACT
================================== */

#contact-container {
    padding: 20px 20px;
    text-align: center;

}

.form-container {
    background-color: #151515;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

#contact-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
}

#contact-form input, form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0 20px;
    border: 1px solid #444;
    background-color: #2d2d2d;
    color: white;
    box-sizing: border-box;
}

#contact-form input:focus, form textarea:focus {
    border-color: #888;
    outline: none;
}

#contact-form textarea {
    height: 150px;
    resize: none;
    box-sizing: border-box;
}

#contact-form button {
    width: 12rem;
    background-color: #1e1e1e;
    color: white;
    padding: 10px;
    border: 1px solid #444;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #444;
}


/* ==================================
   PORTFOLIO PHOTOS
================================== */

.portfolio-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
}

.portfolio-item {
    flex: 1 1 250px;
    display: block;
    position: relative;
    align-items: center;
    justify-content: center;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.portfolio-item img:hover {
    transform: scale(1.05);
}

/* ==================================
   PORTFOLIO VIDEOS
================================== */

#videos-container {
    text-align: center;
    padding: 40px 20px;
    background-color: #1e1e1e;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.video-item {
    flex: 1 1 500px;
    max-width: 560px;
    background-color: #191919;
    padding: 1rem;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.video-item iframe {
    width: 100%;
    height: 315px;
    border-radius: 4px;
}

/* ==================================
   ABOUT PAGE
================================== */

#about-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
}


#about-container {
    background-color: #191919;
    width: 100%;
    max-width: 800px;
    height: min-content;
    padding: 0.5rem;
    margin: 0.5rem;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
    font-family: 'Lexend Tera', sans-serif;
    font-weight: lighter;
}

#about-container h1 {
    font-size: 2.5em;
    text-align: left;
    margin: 1rem;
    text-transform: uppercase;
}

#about-container p {
    margin: 1rem;
    text-align: left;
}

#about-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#about-image-container img {
    width: 25rem;
    max-width: 100%;
    height: auto;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==================================
   RESPONSIVE DESIGN
================================== */

@media (max-width: 768px) {
    main {
        flex: 1;
    }

    /* Container */
    .container {
        padding: 10px;
    }

    /* Header */
    header {
        flex-direction: column;
        height: auto;
        padding: 20px 10px;
    }

    header .winther-visuals {
        font-size: 28px;
        padding: 20px 10px;
        text-align: center;
    }

    header .about-button,
    header .photos-button,
    header .videos-button,
    header .contact-button {
        display: block;
        margin: 10px auto;
        width: 80%;
    }

    /* Home Page */
    .main {
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
    }

    .front-page-pic,
    .front-page-info {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .front-page-info .text {
        margin-top: 60px;
    }

    /* Footer */
    footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 10px;
    }

    footer .insta-button,
    footer .youtube-button,
    footer .mail-button {
        flex-direction: row;
        align-items: center;
    }

    footer .insta-icon,
    footer .youtube-icon,
    footer .mail-icon {
        margin-bottom: 0;
        margin-right: 10px;
    }

    /* Contact form */

    #contact-container {
        padding: 10px;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .form-container {
        width: 100%;
        max-width: 100%;
        padding: 20px 10px;
        box-sizing: border-box;
        overflow-x: hidden;
    }


    #contact-form button {
        width: 100%;
    }

    /* Admin panel */
    #admin-panel-container {
        flex-direction: column;
        overflow-x: hidden;
    }

    .sidebar {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .main-content {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .image-gallery {
        justify-content: center;
    }

    .image-item {
        width: 100%;
        max-width: 300px;
    }

    /* Portfolio Photos */
    .portfolio-gallery {
        flex-direction: column;
        align-items: center;
    }

    .portfolio-item {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }

    /* Portfolio Videos */
    #videos-container {
        padding: 20px;
    }

    .video-grid {
        flex-direction: column;
        align-items: center;
    }

    .video-item {
        width: 100%;
        max-width: 300px;
    }

    /* About Page */

    #about-container {
        width: 100%;
        max-width: 100%;
        padding: 20px 10px;
        box-sizing: border-box;
    }

    #about-container h1 {
        font-size: 2em;
        text-align: center;
    }

    #about-container p {
        margin-top: 20px;
        text-align: center;
    }
}
