@import url('https://fonts.googleapis.com/css2?family=Recursive:wght@300;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ranchers&display=swap');

* {
    /* border: 1px solid black;  */
    margin: 0;
    padding: 0;
}

html {
    font-size: 10px;

    --gradient-3gray: rgb(10, 10, 10), rgb(30, 30, 30), rgb(40, 40, 70);
}

body {
    font-size: 1.6rem;

    background: 
        linear-gradient(135deg, rgba(240, 240, 240, 1), rgba(240, 240, 250, 0.8)),
        url(https://i.ibb.co/1s3hj87/screenshot-2020-07-30-02-05-47.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    
}

/* Common elements */

h1, h2, h3, h4, button {
    font-family: Recursive, Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

button {
    font-size: 2rem;
}

p, label, input {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 1.8rem;
    text-align: justify;
}

input[type="text"], input[type="number"] {
    padding-left: 10px;
}

a {
    font-family: Ranchers, Arial, Helvetica, sans-serif;
    text-decoration: none;
}

a:any-link {
    color: #111111;
}

figure {
    border: 5px solid #111111;
    border-radius: 3px;
    background-color: #111111;
}

figcaption {
    margin: 5px auto;

    font-size: 2rem;
    text-align: center;

    background-color: #111111;
    color: azure;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

input[type=number] {
    -moz-appearance: textfield;
}

@media(max-width: 600px) {
    iframe {
        max-width: 100%;
        max-height: 100%;
    }
}

/* Header */

#header {
    /* position: fixed; */
    position: -webkit-sticky;
    position: sticky;
    top: 0px;

    margin: 10px auto;
    padding: 5px;
    max-width: 1600px;

    display: flex;
    justify-content: space-between;

    background-color: azure;

    border-radius: 5px;
}

@media(max-width: 1050px) {
    #header {
        justify-content: space-around;
    }
}

@media(max-width: 680px) {
    #header {
        flex-direction: column;
    }
}

#header-div {
    display: flex;

    align-items: center;
}

@media(max-width: 680px) {
    #header-div {
        align-self: center;
    }
}

#header-img {
    display: block;

    width: 80px;
    height: 80px;

    /* margin: 0 auto; */
    border: 3px solid #111111;
    /* border-image: linear-gradient(135deg, var(--gradient-3gray)) 27; */
    border-radius: 50%;
}

#header h1 {
    /* top: 50%; */
    
    background: linear-gradient(90deg, var(--gradient-3gray));

    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    /* text-shadow:
        orange 2px 2px 0,
        orange -2px 2px 0,
        orange -2px -2px 0,
        orange 2px -2px 0; */
}

/* Navigation bar */

#nav-bar {
    /* right: 150px; */

    min-width: 500px;

    display: flex;
    justify-content: space-around;
    align-items: center;

    /* border: 2px solid #111111; */
}

@media(max-width: 1050px) {
    #nav-bar {
        flex-direction: column;
        min-width: 150px;
    }
}

@media(max-width: 680px) {
    #nav-bar {
        flex-direction: row;
    }
}

.nav-link{
    font-size: 2.5rem;
}

/* Main content of the page */

main {
    margin: 10px auto;
    max-width: 1400px;
    /* height: 2000px; */
}

main h2 {
    margin: 70px 25px;
    text-align: center;
}

@media(max-width: 680px) {
    main h2 {
        margin: 70px 0;
    }
}

/* About info */

#p-about {
    margin: 70px 50px;
    padding: 5px;
}

@media(max-width: 680px) {
    #p-about {
        margin: 70px 0;
    }
}

/* Video and description */

#video-div {
    margin-bottom: 100px;
    
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

@media(max-width: 1100px) {
    #video-div {
        flex-direction: column;
    }
}

#video-div figure {
    margin: 0px 25px;
}

@media(max-width: 1100px) {
    #video-div figure {
        margin: 0px auto;
    }
}

#video-div p { 
    margin: 0px 25px;
    padding: 5px;

    /* border-radius: 5px; */

    flex-basis: 50%;
    align-self: center;

    background-color: azure;
}

@media(max-width: 1100px) {
    #video-div p {
        margin-top: 25px;
        width: 600px;
    }
}

@media(max-width: 680px) {
    #video-div p {
        margin-left: 0px;
        margin-right: 0px;
        width: auto;
    }
}

/* Features listing */

#features {
    margin: 70px auto;

    display: flex;
    flex-direction: column;
}

#features h3 {
    margin: 0px 25px;

    text-align: center;

    font-size: 2rem;
}

@media(max-width: 680px) {
    #features h3 {
        margin: 70px 0;
    }
}

#features div {
    margin: 50px;

    border-bottom: 5px solid black;
}

@media(max-width: 680px) {
    #features div {
        margin: 50px 0;
        padding: 5px;
    }
}

#features div h4 {
    font-size: 1.8rem;
}

#features div:nth-child(2) h4:before {
    content: "🧼";
    font-size: 5rem;
}

#features div:nth-child(3) h4:before {
    content: "📒";
    font-size: 5rem;
}

#features div:nth-child(4) h4:before {
    content: "⛔";
    font-size: 5rem;
}

/* Buy and Sell section */

#buy-sell-points-section {
    margin: 70px auto;
    
    display: flex;

    justify-content: space-around;
}

@media(max-width: 900px) {
    #buy-sell-points-section {
        flex-direction: column;
        align-items: center;
    }
    
}

.product-container {
    padding: 10px;
    margin: 10px;
    width: 275px;

    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 100px repeat(2, 25px 65px) 100px;

    background-color: #EEEEEE;
}

.product-container .h3-container {
    height: 75px;

    align-self: start;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #daa520;
}

.product-container div h3 {
    text-align: center;
}

.product-container input {
    height: 50px;

    align-self: start;
}

.buy-button, .sell-button, .adr4-button {
    height: 50px;

    align-self: end;

    grid-row: -2 / -1;

    background: 
        linear-gradient(45deg,
        rgba(2,0,36,0) 0%,
        rgba(233,233,255,0) 40%,
        rgba(233,233,255,1) 50%,
        rgba(233,233,255,0) 60%,
        rgba(0,212,255,0) 100%),
        rgb(16, 73, 148);
    background-size: 400% 100%;
    background-position: 0% 50%;

    color: azure;
    border: none;
    
}

@keyframes button-anim {
	100% {
		background-position: 100% 50%;
	}
}

.buy-button:hover,
.sell-button:hover,
.adr4-button:hover {
    animation: button-anim 0.75s;
}

.buy-button:active,
.sell-button:active,
.adr4-button:active {
    transform: scale(0.95)
}

/* Subscribe form */

#form {
    width: 400px;
    margin: 70px auto;
    padding: 10px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 75px) 50px;
    
    background-color: #EEEEEE;
}

@media(max-width: 450px) {
    #form {
        width: auto;
        grid-template-rows: repeat(2, 1.5fr) 1fr;
    }
}

#form p {
    grid-column: 1 / 3;

    text-align: center;
}

#form label {
    margin-right: 15px;
    justify-self: end;
    align-self: center;
}

#form input[type="email"] {
    align-self: center;
}


#form input[type="submit"] {
    grid-column: 1 / 3;

    text-align: center;
}

/* Footer */

#footer {
    padding: 15px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;

    background: linear-gradient(-45deg, rgba(255, 255, 255, 1) 150px, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));

    border-radius: 5px;
}

#footer-links {
    display: flex;
    justify-content: space-around;

    min-width: 200px;
}

/* Special spans */

.tee-pnts-market {
    color: white;
    text-shadow:
    1px 1px 5px black,
    1px -1px 5px black,
    -1px 1px 5px black,
    -1px -1px 5px black;
}

#span-kezo, #span-fapman {
    font-size: 3rem;
    font-weight: 700;
    color: #c2a267;
    -webkit-text-stroke: 1.5px black;
}

#span-fapman {
    color: #e30000;
}