/*
    Landon Hansen
    9/15/2023
    Styles for the Wing-Off website
*/

@font-face {
    font-family: Poppins;
    src: url(assets/fonts/Poppins/Poppins-Regular.ttf);
}

@font-face {
    font-family: Montserrat;
    src: url(assets/fonts/Montserrat/static/Montserrat-Regular.ttf);
}

/* Custom Wing-Off font */
@font-face {
    font-family: "Back Home";
    src: url(assets/fonts/back_home_2/Back\ Home.otf);
}

html {
    scroll-behavior: smooth;
}

body {
    /* background-color: red; */
    /* font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; */
    font-family: Montserrat;
    line-height: 1.5rem;
    font-size: 18px;

    --main-color: rgb(175, 27, 27);
}

article {
    padding: 5px;
}

section {
    margin-top: 0;
    margin-bottom: 30px;
    margin-right: 5px;
    margin-left: 5px;
}

h1, h2, h3, h4, h5, h6 {
    display: block;
    font-weight: bold;
    
    padding-top: 5px;
    padding-bottom: 5px;
    
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.8rem;
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }

nav {
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    top: 0;

    padding-left: 0px;
    padding-right: 20px;

    /* position: absolute; */
    /* background-color: rgb(88, 88, 88); */
    background-color: var(--main-color);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, .2);
    height: 60px;
    
    box-sizing: border-box;
    width: 100%;

    z-index: 3;
}

iframe {
    width: 100%;
    max-width: 700px;

    height: 35vh;
    max-height: 400px;
}

.logo-text {
    color: white;
    font-size: 36px;
    font-family: Poppins;

    white-space: nowrap;

    opacity: 1;

    transition: opacity 500ms;
}

.logo {
    height: 40px;
    margin: 10px;
    margin-top: 15px;
}

@media only screen and (max-width: 275px ) {
    .logo-text {
        opacity: 0;
    }
}

.disable-select {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.content {
    margin-top: 10px;
    padding: 5px;

    /* min-height: 100vh; */
}

a {
    color: inherit;
    text-decoration: none;
}

.withBullets {
    list-style: disc;
    margin-left: 20px;
}

.title-background {
    display: flex;

    width: 100%;
    
    padding-bottom: min(250px, 20vh);
    padding-top: min(250px, 20vh);
    
    justify-content: center;
    align-content: center;
    text-align: center;
    flex-flow: column wrap;

    color: white;
    background-color: whitesmoke;

    /* background-position-x: 100%; */
    background-position-y: 50%;
    background-image: url(assets/images/pexels-andres-segura-13795320.webp);
    background-size: cover;

    font-family: Poppins;
}

.main-title-h1 {
    font-size: 60px;
    font-family: "Back Home";
    letter-spacing: 2px;
    /* font-weight: bolder; */

    font-weight: normal;
    margin-bottom: 10px;
}

.social-icons > a > img {
    margin: 5px;
    margin-top: 10px;

    align-self: center;
    height: 50px;

    filter: invert(100%);
}

.intextbutton {
    text-align: center;
    margin-top: 28px;
    /* margin-bottom: 75px; */
}
.intextbutton > a {
    background-color: var(--main-color);
    color: white;

    box-shadow: none;
    border-radius: 5px;
    border: none;

    padding: 7px;
    font-size: 24px;
    font-family: Poppins;

    cursor: pointer;
    text-decoration: none;
}
.intextbutton > a::after {
    content: " >>";
    font-size: 20px;
}

.intextbutton.disabled {
    opacity: .3;
    cursor: not-allowed;
}

.intextbutton.disabled > a {
    cursor: not-allowed;
    pointer-events: none;
}

table {
    width: 100%;
    text-align: center;
    font-size: 16px;
}

td {
    padding: 5px;
}

thead {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

ul.bordered > li {
    padding: 10px;
    border: 1px solid rgb(238, 238, 238);
    border-collapse: collapse;
}

details {
    border-radius: 4px;
    padding: 5px;
    margin: 5px;
}

details > *:not(summary) {
    margin-left: 20px;
    margin-right: 20px;
}
  
summary {
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0.5em;
    cursor: pointer;
}

.slideshow {
    position: relative;
    width: 100%;
    max-width: 75%;
    overflow: hidden;
    
    margin: 40px;
    margin-left: auto;
    margin-right: auto;

    background-color: rgba(0,0,0,.1);

    transition: max-width 1s;
}

.countdown {
    position: absolute;
    display: block;
    
    z-index: 2;
    bottom: 0;

    background-color: red;

    height: 5px;
    width: 100%;
}

.slideshowelements {
    width: calc(100% * var(--num-children));
    height: 100%;
    display: flex;

    flex-direction: row;
    overflow: visible;
    
    opacity: 0;

    transform: translateX(calc(calc(-100% / var(--num-children)) * var(--current-index)));
    transition: transform 1s, opacity 2s;
}

.slideshowelements.ready {
    opacity: 1;
}

.slideshowelements > span {
    height: 100%;
    display: block;
    overflow: hidden;
}

.slideshowelements > span > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Footer */

footer {
    display: flex;
    flex-flow: column wrap;

    background-color: var(--main-color);
    color: white;

    justify-content: flex-start;
    align-content: center;

    margin-top: 45px;

    padding-top: 10px;
    padding-bottom: 10px;

    width: 100%;
    box-sizing: border-box;

    /* background-color: whitesmoke;
    color: black; */

    text-align: center;
    font-size: .9rem;
    line-height: 2.5rem;

    font-family: Poppins;
}

footer > div {
    display: block;
    max-width: 150px;

    padding-left: 20px;
    padding-right: 20px;
}

footer > .footerSection {
    margin-bottom: 20px;
}

.footerLabel {
    /* font-weight: bold; */
    font-size: 1.2rem;
}

/* Contact Form */

form {
    width: 95%;
    max-width: 800px;

    /* background-color: whitesmoke; */
    font-weight: bold;

    padding: 10px;
    padding-bottom: 10px;
    /* padding-top: 20px; */
    margin: 20px;
    margin-left: auto;
    margin-right: auto;

    border-radius: 5px;

    font-size: 20px;
    line-height: 40px;
}

form > * {
    display: block;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

form > label {
    margin-top: 20px;
}
form > label.required::after {
    content: "*";
    color: red;
}

form > input, textarea {
    padding: 5px;
    font-size: 18px;

    max-width: 70%;
    min-width: 70%;
    min-height: 24px;
    max-height: 400px;

    border-radius: 0;
}
form > input {
    border: none;
    box-shadow: 0 2px 0 lightgray;
}

form > textarea {
    border: 2px solid lightgray;
}

form > input[type="submit"] {
    cursor: pointer;

    width: 75%;
    height: 40px;

    /* background-color: rgb(72, 92, 116); */
    background-color: var(--main-color);
    color: white;
    border: none;

    margin-top: 15px;
    border-radius: 4px;

    font-size: 1.05em;

    transition: opacity 1s;
}

form > input[type="submit"][disabled] {
    opacity: .3;
    cursor: not-allowed;
}

#contactformsent {
    text-align: center;
    margin-left: auto;
    margin-right: auto;

    width: 65%;
    margin-top: 10px;
    height: 0px;

    color: black;
    overflow-y: hidden;
    /* background-color: blue; */

    opacity: 0;
    transition: opacity 1s, height 1s;
}

#contactformsent.show {
    opacity: 1;
    height: 11rem;
}

#contactformsent.show::after {
    display: block;
    content: "";
    background-color: red;
    width: 100%;
    height: 2px;

    animation: shrink 15s linear;
    animation-fill-mode: forwards;
}

@keyframes shrink {
    from {
        
    }
    to {
        width: 0;
    }
}

/* Honey Pot */
.address {
    display: none;
}